added an example of using pigpio to implement the SENT interface #419
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Single edge nibble transmission (SENT) is an automotive standard single wire interface for robust communication
with sensors in a car, but the standard can be used anywhere for robust sensor communication. It has error detection
including CRC checking and can send multiple channels of data on the same wire.
This example started with the pigpio PWM example and expanded it to work with SENT. The biggest addition was the
addition of the threading module to allow complete 3us tick time SENT frames to be sampled and processed with the raspberry
pi.
The code was tested on the raspberry pi zero with 3us and larger tick time SENT signal. (3us is the smallest tick time of the standard)
There is a write up and short video about it on the
Blog: https://surfncircuits.com/2020/11/27/implementing-a-single-edge-nibble-transmission-sent-protocol-in-python-for-the-raspberry-pi-zero/
For more info.
https://en.wikipedia.org/wiki/SENT_(protocol)
Thanks for the help with sending pull requests. Let me know if you need anything else or any questions.