This is an Arduino sketch for a Bluetooth stroboscope controller. It receives commands from the HC-05 module and generates required flashing signal.
This sketch is running on the 5V Arduino Pro Mini. The HC-05 module is connected directly to RX and TX pins. Flashing output is directed to S750's audio in.
Name | Code | Payload | Example |
---|---|---|---|
Single flash | 0x1 | - | 0x1 |
Stop | 0x2 | - | 0x2 |
Continuous flashing (Hz) | 0x3 | unsigned byte of Hz value | 0x3 0x5 — start flashing at 5 Hz frequency |
Continuous flashing (BPM) | 0x4 | 2 bytes of unsigned short BPM value in Little endian | 0x4 0x4 0x1 — start flashing at 260 (0x104) BMP frequency |