I seeking advice on the sketch type I should use. I don’t mind doing the research but have been having some problems finding the correct advice.
What I am trying to do is use existing free RC channels (4 ea) PWM output to an Arduino Uno.
I then need the Uno to communicate via serial tx rx to a DFplayer Mini. A mp3 player module needs to change between audio tracks and other available functions. (Two PWM channels) #1 channel 3 position switch to select files. #2 channel 2 position switch normally off repete last track.
I also need the Uno to communicate via 12C to an Adafruit 20W amp board to change the vol and to mute. (One PWM channel) 3 position switch Mute/Medium vol./Max vol.
I will also need to activate an Arduino compatible relay to operate a light. (One PWM channel) 2 position switch On/Off.
Ultimately the finished code will be inserted to an Adafruit Pro Trinket Mini that will operate amp board and mp3 player.
I am pretty new at writing sketches as I’ve been able to use examples until now to get by.
I’ll do my best to research, write, and test but can someone suggest a set of library’s and different Arduino modes that need to be utilized.
The reason for using RC reciever PWM out to microprocessor is it will be used on a drone.
I the PWM signals are only needed one way out to microprocessor.
Microprocessor then needs to communicate via serial tx/rx to DFPlayer mini and 12C to Amp board.
So would I be able to hook 4 wires plus ground up from RC reciever to microprocessor?
Then be able to distinguish between 2 or 3 PWM signal’s value per channel?
Then send appropriate one way data to other boards via 2 different data types?
I actually have this already wired up to a breadboard ready to code. Just need to hook up the reciever to the proper Uno pins to start.
I can add a pic of the prototype if neede?
Can anyone help on such a project?
Any help is very apperciated!