HM-10 Module + Raspberry Pi Pico W + CircuitPython

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
deny_v
 
Posts: 1
Joined: Sun Mar 19, 2023 1:51 am

HM-10 Module + Raspberry Pi Pico W + CircuitPython

Post by deny_v »

Hi y'all,

I am trying to hook up a HM-10 module to my raspberry pi pico w to be able to send bluetooth signals via my iPhone 14 pro max. I am wiring it as the diagram says I am and I have coded it as the following.

Code: Select all

import board
import digitalio
import time
import busio

led = digitalio.DigitalInOut(board.GP28)
led.direction = digitalio.Direction.OUTPUT


uart = busio.UART(board.GP0,board.GP1,baudrate=9600)

while True:
    data = uart.read(32)

    if data is not None:
        data_string = ''.join([chr(b) for b in data])
        if data_string=='1':
            led.value = True
            uart.write('on')
        if data_string=='0':
            led.value = False
            uart.write('off')
When I use my phone to check for a bluetooth signal I see nothing. I am very lost on what to do and I can't seem to find any answers on the internet. Any help would be greatly appreciated.

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: HM-10 Module + Raspberry Pi Pico W + CircuitPython

Post by mikeysklar »

We don't use the HM-10, but Adafruit has a ton of guides for getting data into an iOS device via BLE using the nRF52840 boards.

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”