-
Notifications
You must be signed in to change notification settings - Fork 16
Developer's Guide
Curtis Malainey edited this page Jul 1, 2018
·
8 revisions
The library is built in almost a mirror image of the ANT network processor protocol, if you know what message you should be using in there, then the object in the library will bear a similar name. Note, not all object currently support their full feature set, for example, extended broadcast messages are not supported.
- Use a level shifter if using a 5V arduino.
- 1 (VCC) -> 3.3V Rail
- 2 (GND) -> GND
- 3 (RXD) -> (TX)
- 4 (TXD) -> (RX)
- 5 (RTS) -> (CTS) (Serial Flow Control Pin) (if available)
- 6 (RST) -> GPIO its the reset pin, (grounding will reset the radio, personally I prefer using the ResetMessage)
- 10 (SLEEP) -> GND (will go to a GPIO later once library supports sleeping, just a power consumption tool)
- 17 (PORTSEL) -> GND (Sets to Async rather than SPI)
- 18 (BR1) -> 3.3V Rail (controls BAUD rate) (this configuration will give you a 9600 BAUD Async connection to the radio)
- 19 (BR2) -> GND (controls BAUD rate)
- 20 (BR3) -> 3.3V Rail (controls BAUD rate)
See D52 Datatsheet for pinout
- J101.06 -> RESET
- J101.01 -> VCC (3.3V)
- J101.02,J101.08,J102.20 -> GND
- J101.09 -> nSUSPEND
- J101.10 -> SLEEP
- J101.17 -> PORTSEL
- J101.19 -> BR2
- J101.04,J101.15 -> TXD0
- J101.03,J101.11 -> RXD0
- J101.18 -> BR1
- J101.20 -> BR3
- J101.05 -> RTS
In order to change the baud rate to the device, you must change whether pins 18,19 and 20 are grounded or pulled to VCC. The given configurations are on thisisant.com under documents.