Library for Manchester encoding using UART's hardware.
Dependents: ManchesterUART_Transmitter ManchesterUART_Receiver
Manchester encoding using UART's hardware
This library implements Manchester code using UART. Each data byte is encoded into two bytes representing two nibbles of the original data. UART's hardware is then used to generate the Manchester encoded bit stream. Prior to decoding, the receiver converts the received bit stream to bytes using its UART. Start and stop patterns are sent to identify the boundaries (begin and end) of a data frame.
ACKNOWLEDGEMENT: The library is based on an article published by Adrian Mills.
Import programManchesterUART_Transmitter
Transmitter demo for the Manchester encoding library using UART's hardware.
Import programManchesterUART_Receiver
Receiver demo for the Manchester encoding library using UART's hardware.
NOTE: To perform a simple test (without radio link) connect the txPin on transmitter board to the rxPin on the receiver board and make sure that grounds are also connected one another.
Revisions of ManchesterUART.cpp
Revision | Date | Message | Actions |
---|---|---|---|
2:8cb6a0a77e56 | 2018-10-17 | Number of start patterns in preamble can be set. | File Diff Annotate |
1:b869674fe56e | 2018-07-30 | Preamble length can be modified. | File Diff Annotate |
0:e076052bcffd | 2017-11-22 | Initial release. | File Diff Annotate |