Help with ppm encoding

Hello dear community,

I'm new in the Arduino world so please be gentle.

I have this idea of being able to control control with my voice some accessories servos on my rc planes like landing gear or flaps during flight.

For this I will use this voice control board connected to an arduino mini and using the *.ino file attached as starting point.
I am also following some tutorials on Youtube like this one.

I can see in the video It is pretty straight forward to control one or more servo from the board using output pins. That will be a pwm output and I can use a ppm encoder (like this) to generate a ppm signal to further use in my radio, I can use the trainer input jack for that. However, and this is where I need you help, I would like to encode the signal straight on the board and output ppm signal from arduino directly if possible.

Ideally I would like to define also what channels to be encoded. For example I want the first 4 channels to be always used from the radio itself and all the auxiliary channels coming from ppm to be channels 5-8 lets say. However this last bit is not so critical as I can map the channels in the teacher / student menu.

Please remember that I am a beginner and explain to me in simple words/ examples.

Many thanks upfront, Paul

055-Voice-Recognition-Module.ino (634 Bytes)

paultbg:
...control one or more servo from the board using output pins. That will be a pwm output...

I think you're assuming here that you must use PWM pins for servos.
Not true.
Try the servo sweep example that comes with the IDE.

Please post your code inline according to the forum guidelines, so we can actually see it.
Leo..

O.k. basics first. What RC transmitter? Trainer systems aren't all the same. In particular if you want Ch 1-4 to be from the standard controls with your external controls to be Ch5-8 then the transmitter itself needs the ability to select which channels from the "slave", i.e. the trainer port, are transmitted. Some do, some don't.

Since there's already an Arduino involved you can do the PPM encoding in there without needing a separate encoder. But it all depends on what the transmitter can do with the trainer PPM signal.

Steve

slipstick:
O.k. basics first. What RC transmitter? Trainer systems aren't all the same. In particular if you want Ch 1-4 to be from the standard controls with your external controls to be Ch5-8 then the transmitter itself needs the ability to select which channels from the "slave", i.e. the trainer port, are transmitted. Some do, some don't.

Since there's already an Arduino involved you can do the PPM encoding in there without needing a separate encoder. But it all depends on what the transmitter can do with the trainer PPM signal.

Steve

Hello Steve
The radio that i"m using is my trusty FrSky XQ7.
I guessed that the Arduino can do the PPm encoding but I don't know how to, that was my questions.
Many thanks for your reply.

Have you tried searching for something like "Arduino generate PPM signal"? Or you could go straight to GitHub - smilexth/Generate-PPM-Signal: Generate PPM Signal Output with Arduino

That code seems to have been reused in loads of projects so there's not much point trying to reinvent it. All you need to do is to put values out of your voice thingy into an array and that code will do the rest. At least that's what it looks like, I've never used it myself.

Never heard of an XQ7, did you mean the Taranis Q-X7?

Steve

Hello

Many thanks @slipstick for your reply, indeed is the Qx7, my fingers run amok when I hurry.

As I said, I'm a beginner in Arduino projects and I really would need more details on this.

I know how to upload the project to the Arduino board but I'm not sure about the rest.
How to connect the voice module to the Arduino board ? What pins? And where the PPM output will be, on what pin?

Can you please advise? It may sound obvious for you but is not the same for me.
Many thanks

Sorry but it's sounding like you want someone to write it all for you and that's not the business we're in round here. You do something and we help you to get it working.

If you really don't understand anything about programs and basic wiring/electronics you have a lot of learning to do, studying and understanding the examples from the IDE etc, before you can even start this fairly complex project. As far I can tell no-one has ever done a project exactly like it so you're not going to find a complete working layout and code to copy. You can find parts of it like the PPM encoder code I've shown you and the example programs for the voice module but they'll need work to put them together and make them do exactly what you need and you're going to have to do most of that work yourself.

Sorry if that sounds a bit harsh but...

Steve