mikebland / sbustopwm Goto Github PK
View Code? Open in Web Editor NEWArduino as SBUS to PWM decoder
Arduino as SBUS to PWM decoder
Greetings!
Am I doing something silly? The project won't compile for me in Arduino 1.8.15. The error logs indicates that a number of variables are being redefined. Here's the first instance:
multiSim:120:31: error: redefinition of 'uint8_t* Ports [16]'
uint8_t *Ports[NUMBER_CHANNELS] = {
^
/Users/andrewcarlisle/Documents/Arduino/SbusToPpm/SbusToPpm.ino:89:10: note: 'uint8_t* Ports [16]' previously defined here
uint8_t *Ports[NUMBER_CHANNELS] = {
^~~~~
With thanks,
Andrew
Hi Mike,
Can it be also set to decode SBUS to 16 or 12 CPPM channels on one single output?
Thank you.
Hi,
It's a bit unclear why it converts to ppm, while usually it supposed to convert to pwm.
I know that arduino can read inverted sbus signal directly on softserial, so no HW inverter will be needed.
Just wondering if it would be better to reduce PWM rate by skipping every second channel data during output. Could work like this;
Skip output of channel if servo signal was generated based on previous frame and servo data haven't changed,
This should result in less latency for some of the channels and servo action would be spread on two different time periods = less peak power, at least for analog servos. However for FrSky, one would have to make sure to use more than eight channels to achieve 18ms output. Actually this is all FrSky related and not relevant if the goal is a generic SBUS decoder.
I'm looking for a project with smaler hardware like Attiny85 Digispark for a 4 channel SBus decoder
and it must also be work with the RC cahnnel 9-12 or 13-16.
My issue is now, can we do this with this project code ?
If yes, can you give us user's a layout of the hardware and a example for the changes of the code ?
Thanks a lot.
When FS on FRSKY then all chanell sets on min value instead of FS value. Probably is because there is SBUS signal but with no pulse . When signal pin is disconnected then FS values are proper.
Anyway very usefull code.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.