-
Notifications
You must be signed in to change notification settings - Fork 74
Sensor protocol
btsimonh edited this page Jun 27, 2019
·
2 revisions
The firmware should detect the baud rate. Common baud rates are ~23000 (STM32) and ~51000 (YST GD32)
data recieved from the sensors is between 6 bytes and 10 bytes.
On a 23000 baud board:
data for 'calibrate':
1E0 000 000 060 000 000
'normal' data: 108 000 000 000 000 000
word 0: 'colour' 0x01 -- headlamp flash when IR foot detector closed 0x02 - orange 0x04 - green 0x08 - red 0x10 - suppress headlamps 0x06 - yellow
word 1 - unknown
word 2 - flashcount
word 3 - calibrate - 0x00 or 0x60
word 4 & 5 - unknown
- Home
- Building and flashing
- Raspberry Pi integration
- Physical Hardware
- Projects