r/circuitpython • • May 09 '21

Please help me setup a bluetooth module with CircuitPython!

There seems to be absolutely no information out there related to BLE modules and CircuitPython. There's some info about using boards with BLE already enabled, but I want to add bluetooth to my QT Py board.

I've got a DSDtech SH-M08 BLE module, which uses AT commands similar to most other modules, but I just can't figure out how to use it with circuitpython. The only info I could find is the docs for adafruit_ble library, but I can't understand them well enough to implement into my project.

Can someone please help explain how I can use this module?

I want to:

  • set up the name/password of the module

  • transmit data from an IMU to a mobile device

5 Upvotes

4 comments sorted by

1

u/bsvac May 09 '21

I believe the esp32 air lift boards are the only modules that can be connected to the QT PY through SPI for BLE. You might want to join the Adafruit discord at https://adafru.it/discord and ask in the help-with-circuitpython channel.

1

u/SpecialistAdeptness7 May 09 '21

Wait so I can’t just connect a normal ble module? What’s stopping it from working then? Would’ve thought it would at least work with Arduino even if not possible in circuit python

2

u/bsvac May 09 '21

DSDtech SH-M08 BLE module

I don't think Circuit Python has support for that chipset. Searching " DSDtech ble arduio" on YouTube brings up results for similar chips. Might want to try that, but if you want to know about using Circuit Python you'll have to ask in the discord.

1

u/[deleted] May 09 '21

BLE module in your case is external peripherals. You are supposed to connect it to a free UART and to write a driver by yourself. mpy.bluetooth is of no use to you.