These three posts have been moved into this new thread from big JME's thread radio control system http://www.picaxeforum.co.uk/showthread.php?t=14221&page=14
---------------------------------------
G'day big JME,
This is a rather long post and i notice your last post was about 10 months ago. Just wondering if you got it all up and running?
I found this thread because i am thinking of working on a similar project. I am not ready to start my own thread yet because wont have time to work on it as a full project but i do want to start playing around with sub sections of the larger project!
Firstly i noticed you were going to use xbee... then in a later post you had changed. I couldn't find the post where you changed your mind could you tell me why pros cons??
The project i am considering....
I basically want to try and fly a small RC plane using picaxe and a wii nunchuck. Last night i got a 18m2 chip to read data from the nunchuck then serout it to a second 18m2 which controlled two servos using the variables sent from the first 18m2. i got it working as a tilt pan application using both joystick and accelerometer although it is a bit jittery. i think the issue is that i have servo control picaxe running at 4Mhz and the picaxe reading i2c from nunchuck operating at 8Mhz then sending data at 4Mhz.
So thats what i have done..
and
This is the general plan.
-One nunchuck (transmitter)
-One 20X2 picaxe chip for i2c read of nunchuck and serout (transmitter)
-One 20X2 picaxe chip for serin and servo control (receiver)
-Two xbee 2mW chip antenna modules (one at each end)
-Other general electronics
I am thinking i will use the accelerometer to control the throttle and allierons. And the joystick to control elevator and rudder.
From doing a bit of reading i think the 20X2's should work better together as they can operate at up to 64Mhz i think i might try at 16Mhz and they can control servos at the same speed rather than having to drop back to 4Mhz.
I have seen people working on similar projects with arduino but i don't understand there code.
my main question is whats wrong with using xbee?
Cheers
Joel
---------------
After a little bit more of my own research the issue with Xbee seems to be the latency???
I do have another idea though!
What about picaxe to PPM?? I am thinking if i can get one picaxe to read the nunchuck, then send the data via PPM to the trainer port of my RC transmitter then i don't need to mess around with the second half of the project. I have done a quick search on the forum and Google and it seems like it will be achievable.... but would require the use of a scope to analysis the output of my transmitter to know how the data should be sent. Unfortunately i don't have a scope. maybe its time to invest?
I have a spektrum transmitter, which i think uses similar standards to JR. If anyone can point me in the direction of one the protocol spektrum uses, and two anyone who has been successful in this type of application i would love some guidance.
maybe i should start a new post? (This is it)
-----------
Hi All. Thought I would give an update on this post. I think I will start a new one tomorrow.
So today I had a play around with a picaxe to ppm. As above it was my new idea to save playing with RF. I was able to get the 18m2 chip to send pulses out and using a mono 3.5 jack my laptop and a oscilloscope program I could generate the signal required.
I was hoping to send ppm data to a spectrum DX5e using the trainer port. This requires 8 high pulses minimum .7ms and max 1.7ms with stop pulses of .3ms. The range between .7 and 1.7 is the stick position nothing to full. The lead in is 22.5ms - the 8 pulses depending how long they are.
I tried a simplified version of this using 8 pulsout and 8 pause commands. In each block of code I left 7 pulses at .7ms and one at 1.7ms. I believe this worked ok in its simple form. The problem is when I put a serin line of code the program spent too long waiting, receiving then doing and the lead pulse was too long. I'll post some code tomorrow.
On the plus side I did get the servos working without jitters. I read in the manual that the 18m2 could handle 16Mhz and the servo command also works at 16MHz on M2 parts. To get the servo too move equally I used b8=b2*10/15+75.
So unless anyone has any ideas to overcome my PPM problem I think I am on the search for a Tx and Rx capable of operating at 16Mhz T4800 accurately with a range of 100- 500m
Thanks.
---------------------------------------
G'day big JME,
This is a rather long post and i notice your last post was about 10 months ago. Just wondering if you got it all up and running?
I found this thread because i am thinking of working on a similar project. I am not ready to start my own thread yet because wont have time to work on it as a full project but i do want to start playing around with sub sections of the larger project!
Firstly i noticed you were going to use xbee... then in a later post you had changed. I couldn't find the post where you changed your mind could you tell me why pros cons??
The project i am considering....
I basically want to try and fly a small RC plane using picaxe and a wii nunchuck. Last night i got a 18m2 chip to read data from the nunchuck then serout it to a second 18m2 which controlled two servos using the variables sent from the first 18m2. i got it working as a tilt pan application using both joystick and accelerometer although it is a bit jittery. i think the issue is that i have servo control picaxe running at 4Mhz and the picaxe reading i2c from nunchuck operating at 8Mhz then sending data at 4Mhz.
So thats what i have done..
and
This is the general plan.
-One nunchuck (transmitter)
-One 20X2 picaxe chip for i2c read of nunchuck and serout (transmitter)
-One 20X2 picaxe chip for serin and servo control (receiver)
-Two xbee 2mW chip antenna modules (one at each end)
-Other general electronics
I am thinking i will use the accelerometer to control the throttle and allierons. And the joystick to control elevator and rudder.
From doing a bit of reading i think the 20X2's should work better together as they can operate at up to 64Mhz i think i might try at 16Mhz and they can control servos at the same speed rather than having to drop back to 4Mhz.
I have seen people working on similar projects with arduino but i don't understand there code.
my main question is whats wrong with using xbee?
Cheers
Joel
---------------
After a little bit more of my own research the issue with Xbee seems to be the latency???
I do have another idea though!
What about picaxe to PPM?? I am thinking if i can get one picaxe to read the nunchuck, then send the data via PPM to the trainer port of my RC transmitter then i don't need to mess around with the second half of the project. I have done a quick search on the forum and Google and it seems like it will be achievable.... but would require the use of a scope to analysis the output of my transmitter to know how the data should be sent. Unfortunately i don't have a scope. maybe its time to invest?
I have a spektrum transmitter, which i think uses similar standards to JR. If anyone can point me in the direction of one the protocol spektrum uses, and two anyone who has been successful in this type of application i would love some guidance.
maybe i should start a new post? (This is it)
-----------
Hi All. Thought I would give an update on this post. I think I will start a new one tomorrow.
So today I had a play around with a picaxe to ppm. As above it was my new idea to save playing with RF. I was able to get the 18m2 chip to send pulses out and using a mono 3.5 jack my laptop and a oscilloscope program I could generate the signal required.
I was hoping to send ppm data to a spectrum DX5e using the trainer port. This requires 8 high pulses minimum .7ms and max 1.7ms with stop pulses of .3ms. The range between .7 and 1.7 is the stick position nothing to full. The lead in is 22.5ms - the 8 pulses depending how long they are.
I tried a simplified version of this using 8 pulsout and 8 pause commands. In each block of code I left 7 pulses at .7ms and one at 1.7ms. I believe this worked ok in its simple form. The problem is when I put a serin line of code the program spent too long waiting, receiving then doing and the lead pulse was too long. I'll post some code tomorrow.
On the plus side I did get the servos working without jitters. I read in the manual that the 18m2 could handle 16Mhz and the servo command also works at 16MHz on M2 parts. To get the servo too move equally I used b8=b2*10/15+75.
So unless anyone has any ideas to overcome my PPM problem I think I am on the search for a Tx and Rx capable of operating at 16Mhz T4800 accurately with a range of 100- 500m
Thanks.