https://github.com/impulseadventure/rc-pwm-spi
RC Receiver PWM to SPI for ATtiny / Digispark
https://github.com/impulseadventure/rc-pwm-spi
9x8cv2 attiny digispark pwm radio radio-control rc receiver slave spi turnigy
Last synced: over 1 year ago
JSON representation
RC Receiver PWM to SPI for ATtiny / Digispark
- Host: GitHub
- URL: https://github.com/impulseadventure/rc-pwm-spi
- Owner: ImpulseAdventure
- License: mit
- Created: 2018-02-19T16:22:46.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-20T07:17:16.000Z (over 8 years ago)
- Last Synced: 2025-01-09T07:51:05.529Z (over 1 year ago)
- Topics: 9x8cv2, attiny, digispark, pwm, radio, radio-control, rc, receiver, slave, spi, turnigy
- Language: C++
- Homepage: https://www.impulseadventure.com/elec/attiny-spi-rc-pwm.html
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RC-PWM-SPI
RC Receiver PWM to SPI for ATtiny / Digispark
Example SPI slave implementation
This code implements a simple SPI slave receiver interface
combined with multi-channel pulse-width modulation (PWM)
measurement. Each channel's pulse width is measured in
microseconds and returned in a channelized register interface.
This code can be useful for using a remote-control transmitter
to control an Arduino / ATtiny microcontroller.
- A watchdog timeout is used to detect the loss of the transmitter.
- Optimized IO commands are used in the ISRs to keep the
critical sections as fast as possible.
- This example demonstrates 6 channel monitoring, but this can
be increased/decreased if needed.