Little script for a Particle Photon connected to an HM-10 via hardware serial (Serial1
).
The wiring is quite easy:
RX
on Photon goes toTX
on HM-10TX
on Photon goes toRX
on HM-103V3
on Photon goes toVCC
on HM-10GND
on Photon goes toGND
on HM-10
I used the "Sounfounder Bluetooth 4.0 HM-10 Master Slave Module". Every other HM-10 should work also.