Convert Receiver channels to PPM with arduino
Re: Convert Receiver channels to PPM with arduino
i tried powering the D4R-II with a regulated 5v source and also with a direct lipo 2S source....
when i check the voltage of the ppm signal, i have 2,78V all the time
if i plug a jack cable on the student radio, the ppm signal has a voltage of 4,35V.
may be the D4R-II does not has a signal strong enough
My problem is that i don't have any oscilloscope do see how is the signal.
it exists oscilloscope on windows PC working with the microphone input of the sound card, but before i must make me a voltage divider to get less than 0,7v to protect mu sound card.... and remember how to use an oscilloscope... the last time i used one, it was 25 years ago!!!
if someone can help me....
when i check the voltage of the ppm signal, i have 2,78V all the time
if i plug a jack cable on the student radio, the ppm signal has a voltage of 4,35V.
may be the D4R-II does not has a signal strong enough
My problem is that i don't have any oscilloscope do see how is the signal.
it exists oscilloscope on windows PC working with the microphone input of the sound card, but before i must make me a voltage divider to get less than 0,7v to protect mu sound card.... and remember how to use an oscilloscope... the last time i used one, it was 25 years ago!!!
if someone can help me....
- MikeB
- 9x Developer
- Posts: 17990
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Convert Receiver channels to PPM with arduino
It may be the voltage from the D4R-II does not go high enough.
You could try adding a diode (1N4001) in the GROUND conection between the d4R-II and the radio, anode to D4R-II, cathode to ground on the radio. This would move the output from the D4R-II up by around 0.6 volts, so a logic '0' would be 0.6 volts, but a logic '1' would be 3.9 volts (up from 3.3 volts).
Mike.
You could try adding a diode (1N4001) in the GROUND conection between the d4R-II and the radio, anode to D4R-II, cathode to ground on the radio. This would move the output from the D4R-II up by around 0.6 volts, so a logic '0' would be 0.6 volts, but a logic '1' would be 3.9 volts (up from 3.3 volts).
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: Convert Receiver channels to PPM with arduino
I am using a d4r-ii with my setup. It works just fine. For power I am using an old 4 cell receiver pack. Maybe somehow the ppm in line is loading it down?
-ghost
Sent from my LG-P999 using Tapatalk 2
-ghost
Sent from my LG-P999 using Tapatalk 2
Re: Convert Receiver channels to PPM with arduino
ok, i have to find a diode! i know i have some "Schottky diode", but they are not good for this application because they would add only around 0,3v, or even less...
sure i will find something in a old electronic board ....
sure i will find something in a old electronic board ....
Re: Convert Receiver channels to PPM with arduino
can you confirm you use the D4r-II to receive info from a slave TX, then the D4R-II send the ppm signal to the trainer jack of the master TX?gohsthb wrote:I am using a d4r-ii with my setup. It works just fine. For power I am using an old 4 cell receiver pack. Maybe somehow the ppm in line is loading it down?
-ghost
and it works for you?
Re: Convert Receiver channels to PPM with arduino
ok,
so using the FR sky voltage sensor (it's a voltage devider), i manage to get the ppm signal going out CH1 when CH3 and CH4 are "bridged" on my D4R-II receptor
it looks like a normal ppm signal...
with another voltage divider, another stereo phone jack wire, i could compare the ppm signal of a slave radio with the ppm signal of the D4R-II rx, but i don't have all the stuff right now!
i really don't understand why it does not works!
so using the FR sky voltage sensor (it's a voltage devider), i manage to get the ppm signal going out CH1 when CH3 and CH4 are "bridged" on my D4R-II receptor
it looks like a normal ppm signal...
with another voltage divider, another stereo phone jack wire, i could compare the ppm signal of a slave radio with the ppm signal of the D4R-II rx, but i don't have all the stuff right now!
i really don't understand why it does not works!
Re: Convert Receiver channels to PPM with arduino
So for the fun, i had to look for some resistors to make another voltage devider, giving more or less the same voltage result for both ppm signal
the D4R-II gave me 2,78V so with the FRsky votage sensor on 3S position it give me 0,72V
the 9X ppm signal gave me 4,35V. i find a 10K (but 8,87K in reality) big resistor, and a 47K resistor on a electronic board... this devider give me a 0,75V
buy this way i will be able to compare the signal with the same voltage level. And also will try to not fry my laptop sound card!
i manage to make the circuit:
the result is nice:
the red one is the signal from the D4R-II
the green one is the signal from the turnigy 9X.
I'm really a newbie in electronic, but the red one looks cleaner, but they are the same!
so if the only diference is the voltage level, i must find a way to make a bigger voltage level coming out the D4R-II EASYLY!!!!
any idea?
the D4R-II gave me 2,78V so with the FRsky votage sensor on 3S position it give me 0,72V
the 9X ppm signal gave me 4,35V. i find a 10K (but 8,87K in reality) big resistor, and a 47K resistor on a electronic board... this devider give me a 0,75V
buy this way i will be able to compare the signal with the same voltage level. And also will try to not fry my laptop sound card!
i manage to make the circuit:
the result is nice:
the red one is the signal from the D4R-II
the green one is the signal from the turnigy 9X.
I'm really a newbie in electronic, but the red one looks cleaner, but they are the same!
so if the only diference is the voltage level, i must find a way to make a bigger voltage level coming out the D4R-II EASYLY!!!!
any idea?
Re: Convert Receiver channels to PPM with arduino
trying to think a little, i remember i bought long time ago this thing:
http://www.hobbyking.com/hobbyking/stor ... v_5v_.html
i connected it between the D4R-II receiver and the jack going to the master radio....
but still nothing!
WHY!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
http://www.hobbyking.com/hobbyking/stor ... v_5v_.html
i connected it between the D4R-II receiver and the jack going to the master radio....
but still nothing!
WHY!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Re: Convert Receiver channels to PPM with arduino
this signal amplifier does not do the job!
the voltage signal is 4,2V (with a simple voltmeter), but when i connect the same voltage devider, to see the signal on the scope: BRRRRRRRRRR!!!!!!
it's normal it does not works!!!! nothing compared to a normal PPM signal
if someone can tell me how to make an amplifier for this signal!
regards
the voltage signal is 4,2V (with a simple voltmeter), but when i connect the same voltage devider, to see the signal on the scope: BRRRRRRRRRR!!!!!!
it's normal it does not works!!!! nothing compared to a normal PPM signal
if someone can tell me how to make an amplifier for this signal!
regards
Re: Convert Receiver channels to PPM with arduino
i'm note sure to understand what to do:MikeB wrote:It may be the voltage from the D4R-II does not go high enough.
You could try adding a diode (1N4001) in the GROUND conection between the d4R-II and the radio, anode to D4R-II, cathode to ground on the radio. This would move the output from the D4R-II up by around 0.6 volts, so a logic '0' would be 0.6 volts, but a logic '1' would be 3.9 volts (up from 3.3 volts).
Mike.
in "my things", i find a M4 diod, wich is, i think, the same as a 1N4001 diod,
i tried 2 differents options, but nothing better.
in option 1
the voltage go down to around 0,53V, wich is the voltage when i test the diode with my multimeter
in option 2:
the voltage is near 0, wich is logical as the diode stop everything
regards
- MikeB
- 9x Developer
- Posts: 17990
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Convert Receiver channels to PPM with arduino
I was thinking your option 2, but it doesn't work.
With the double 'scope trace (red and green) above, are these signals with the jack plug plugged into the 'Teacher' transmitter?
Mike.
With the double 'scope trace (red and green) above, are these signals with the jack plug plugged into the 'Teacher' transmitter?
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: Convert Receiver channels to PPM with arduino
MikeB wrote:I was thinking your option 2, but it doesn't work.
With the double 'scope trace (red and green) above, are these signals with the jack plug plugged into the 'Teacher' transmitter?
Mike.
the red one is the signal from the D4R-II connected only to my sound card with one side of the stereo input. the rx is binded with one of my 2 turnigy 9x
the green one is the PPM signal from the other turnigy 9X in "student" mode (power switch on "OFF" position, but trainer jack plugged).
thanks for your help mike....
having a look on google, the solution can be an "Operational Amplificador" with 2 resistors, but first i must find one in a electronic board!!! i live in a small village where nobody sell electronic components!
- MikeB
- 9x Developer
- Posts: 17990
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Convert Receiver channels to PPM with arduino
Can you repeat the 'scope measurements with the signal connected to the 'Teacher" Tx? See whether the signals are being loaded in some way.
Mike.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: Convert Receiver channels to PPM with arduino
hello mike,
i can do it, but not today.... my wife came back home with the kids!
regards
i can do it, but not today.... my wife came back home with the kids!
regards
-
- Posts: 23
- Joined: Mon Oct 20, 2014 11:00 pm
- Country: -
Re: Convert Receiver channels to PPM with arduino
got this working a treat thanks to all involved.. especially Buzz.... whoever he is.. thanks
-
- Posts: 23
- Joined: Mon Oct 20, 2014 11:00 pm
- Country: -
Re: Convert Receiver channels to PPM with arduino
works a treat using this to convert an 8 channel flysky receiver to input ppm to a d.i.y. arduino flight controller so i have full 8 channels ppm to it.. there was not enough data line inputs on my pro mini arduino to give me 8 pwm channels... so basically i have converted a pwm receiver to ppm... Nice...
Re: Convert Receiver channels to PPM with arduino
Yes it is a nice project.. I have this working as a a wireless buddy box system. I connected a frsky receiver to it as you could see in my posts above.. Glad it was useful to you..
João
João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9
Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9
Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
-
- Posts: 23
- Joined: Mon Oct 20, 2014 11:00 pm
- Country: -
Re: Convert Receiver channels to PPM with arduino
João
were you involved with this much specifically the arduino firmware..? as i just curious to know if the failsafe works, and if the throttle channel default failsafe setting can be altered.. i got a bit mixed up when setting my channels and my pitch seems to be my faisafe channel at 900 'us
or if you know of any other firmware similar to this...
were you involved with this much specifically the arduino firmware..? as i just curious to know if the failsafe works, and if the throttle channel default failsafe setting can be altered.. i got a bit mixed up when setting my channels and my pitch seems to be my faisafe channel at 900 'us
or if you know of any other firmware similar to this...
Re: Convert Receiver channels to PPM with arduino
no, I only built it and posted it here.. This was a while ago and I don't remember very well.. I think I tested a few and found one that worked best..
João
João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9
Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9
Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
-
- Posts: 23
- Joined: Mon Oct 20, 2014 11:00 pm
- Country: -
Re: Convert Receiver channels to PPM with arduino
yeah it seems to work ok i was quite surprised actually i built this in one night.. there is some seting in the arduino sketch to alter the failsafe settings i will try tomorrow
thanks for the quick reply..
thanks for the quick reply..
-
- Posts: 4
- Joined: Sun Jun 05, 2016 1:17 pm
- Country: France
Re: Convert Receiver channels to PPM with arduino
hi all,
and thanks for this OLD interesting post
im trying to use the code from : https://github.com/davidbuzz/BuzzsArdui ... _to_ppm328
but i'am really really new with arduino things
i think the file.h is only a part of a library and seem arduino need a .cpp file to make this complete
i just want to test this to convert a turnigy 9x original receiver in a ppm one
its just for undertsand where i fail because i ordered a commercial converter
and its funny to try
i hope somebody can help me for this
best regards
Eric
and thanks for this OLD interesting post
im trying to use the code from : https://github.com/davidbuzz/BuzzsArdui ... _to_ppm328
but i'am really really new with arduino things
i think the file.h is only a part of a library and seem arduino need a .cpp file to make this complete
i just want to test this to convert a turnigy 9x original receiver in a ppm one
its just for undertsand where i fail because i ordered a commercial converter
and its funny to try
i hope somebody can help me for this
best regards
Eric
Re: Convert Receiver channels to PPM with arduino
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9
Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9
Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
-
- Posts: 4
- Joined: Sun Jun 05, 2016 1:17 pm
- Country: France
Re: Convert Receiver channels to PPM with arduino
thx
i read it since a long time
but when i try to verify the code, i always got an error for ppm_encoder.h
i reinstalled the Arduino IDE and everything seem ok now..
i will have a look inside the code and will try this now
many thanks, you saved my afternoon
Eric
i read it since a long time
but when i try to verify the code, i always got an error for ppm_encoder.h
i reinstalled the Arduino IDE and everything seem ok now..
i will have a look inside the code and will try this now
many thanks, you saved my afternoon
Eric
Re: Convert Receiver channels to PPM with arduino
Good
I wish someone would save mine on another project
João
I wish someone would save mine on another project
João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9
Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9
Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
-
- Posts: 4
- Joined: Sun Jun 05, 2016 1:17 pm
- Country: France
Re: Convert Receiver channels to PPM with arduino
i wish i could do it! tell me where is your project on the forum, i will have a look and if i can do something for you, i will do it!
but you seem much more comptetent than i am! let's try!
anyway thx again
Eric
but you seem much more comptetent than i am! let's try!
anyway thx again
Eric
Re: Convert Receiver channels to PPM with arduino
It is not related to the model flying.. it is something for my guitar amplifier.. I can't code, so I am not very competent
João
João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9
Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9
Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
-
- Posts: 4
- Joined: Sun Jun 05, 2016 1:17 pm
- Country: France
Re: Convert Receiver channels to PPM with arduino
if its more "electronic" maybe i can help
Eric
Eric
Re: Convert Receiver channels to PPM with arduino
It is a coding problem only
but thanks anyway
João
but thanks anyway
João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9
Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9
Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
- deaconFlyer
- Posts: 76
- Joined: Fri Apr 05, 2013 11:22 am
- Country: Canada
- Location: Ontario
Re: Convert Receiver channels to PPM with arduino
There are several drag and drop coding visual programs out there. If you can describe what you want to do in detail, the actual code wireframes out quickly.
If you can describe exactly what you want to happen, and when it is to happen, and when it is to no longer happen you are literally a few steps off a program.
If you can describe exactly what you want to happen, and when it is to happen, and when it is to no longer happen you are literally a few steps off a program.