RF reciever
computer guy
Posts: 1,113
Can the propeller receive an RF signal on an input pin and respond accordingly.
This is for a robot.
Thank you
Post Edited (computer guy) : 5/9/2007 9:07:03 AM GMT
This is for a robot.
Thank you
|-------| |-------|----RF ((( |-PROP--| |-------|-----------SERVO_1 |-------|-----------SERVO_2 |-------|
Post Edited (computer guy) : 5/9/2007 9:07:03 AM GMT
Comments
Craig
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I would love to change the world, but they won't give me the source code
People say that if you play Microsoft CD's backwards, you hear satanic things, but that's nothing, because if you play them forwards, they install Windows.
I spent a minute looking at my own code by accident. I was thinking "What the heck is this guy doing?"
The signal will come from a transmitter(RF aeroplane control) and the prop will respond to the signals by controlling servos.
Thank you
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
What would you suggest?
The easiest solution is to tap the pulse position modulation (ppm) signal from a normal RC receiver, this is normally fairly easy to do, you just add a wire to one point on the circuit.
This page describes the signals sent to the servos and those received by the receiver that you can decode:
www.mp.ttu.ee/risto/rc/electronics/radio/signal.htm
Graham
I am not sure what you are after, but I have some working spin code for a Nordic nRF2401 tranciever module ...
see
http://store.qkits.com/moreinfo.cfm/TXRX24G
or
http://www.sparkfun.com/commerce/product_info.php?products_id=151
($13 at Qkits ... $22 at Sparkfun ... sheesh! I get them from Qkits, but I am sure the ones from Sparkfun ~must~ be better )
I love these things, complete monolithic RF trancievers antenna and all! They do all of the work for you, are highly addressable, and have quite good range! They are insane to debug though, so some working code will go a long way to help keep your sanity. They are perfect for robot telemetry and control for a bunch of reasons (see the data sheets for features). If you are interested let me know. I just got it working last night as part of a Propeller demo / presentation I am giving to a robotics club I am with. If you want it, give me a couple of days to package it up and submit it to the objects download section.
Allen
Opps, never mind ... I missed your post where you stated the signal will be via RF aeroplane control sorry.
Post Edited (tellurian) : 5/10/2007 4:16:26 PM GMT
I hope you put a couple resistors on the rx/tx lines. The prop can't take a 5v signal directly. (I've learned that the hard way )
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I would love to change the world, but they won't give me the source code
People say that if you play Microsoft CD's backwards, you hear satanic things, but that's nothing, because if you play them forwards, they install Windows.
I spent a minute looking at my own code by accident. I was thinking "What the heck is this guy doing?"
Notice that JoeCreate said "The radios are 3.3v 2.4Ghz with a TTL Serial interface". They do connect directly to the Prop since they're 3.3V devices. They don't need protective series resistors. Sometimes these (and a few other 3.3V parts) are bought with a 5V interface like the PING or the HM55B compass or Selmaware's xBee AppMod. These do require the series resistors to protect the Prop from the possible 5V logic level.
If i get an RF airoplane controller and an XBee transiever the XBee will be able to revieve the signal from the RF controller and respond acordingly.
Thank you
You have several options for what you're attempting:
1. Using the aero' Tx/Rx:
a) Wire each servo channel from the Rx to the PChip; 'read' the pulse width (usually between 750ms & 2100ms); do something with the data!
or
b) Tap into the Rx to get the actual RF signal stream; wire that to the PChip; interpret the stream (different between manufacturers); do something with it
2. Create your own Tx/Rx pair with (say) a Nordic nRF2401 or Maxstream XBee; you decide what data gets sent/received
Personally I've already used method 1.a) - very simple to get working, and I already had the Tx/Rx.
I'm now about to start with option 2, as I have a need to pass data in BOTH directions.
HTH.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheers,
Simon
BTW: I type as I'm thinking, so please don't take any offense at my writing style
www.norfolkhelicopterclub.co.uk
You'll always have as many take-offs as landings, the trick is to be sure you can take-off again ;-)
Is it alright if the controller uses a BS2 and robot uses a Prop or would the timing be out of sync.
Thank you
Don't know much about the BS2, but think you'll need to watch voltage levels (BS2=5V?, PChip=3.3V)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheers,
Simon
BTW: I type as I'm thinking, so please don't take any offense at my writing style
www.norfolkhelicopterclub.co.uk
You'll always have as many take-offs as landings, the trick is to be sure you can take-off again ;-)
Thank you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheers,
Simon
BTW: I type as I'm thinking, so please don't take any offense at my writing style
www.norfolkhelicopterclub.co.uk
You'll always have as many take-offs as landings, the trick is to be sure you can take-off again ;-)
The pinout spacing is certainly a pain on the XBee's.· You only need 4 pins so worst-case they could be wire-wrapped (does anyone do that anymore?)· I had to get a board made to be able to interface it with my own stuff.· ExpressPCB.com ...· Here is the board I had printed to get things started.
I don't design boards as a profession, expecially RF related boards, so feel free to point out any glaring no-no's.
Post Edited (JoeCreate) : 5/11/2007 3:49:29 PM GMT
Otherwise as well as sorting out the software you have to build a transmitter with sticks and all that entails.
If for any reason you really did feel you needed to use a zigbee or similar then you could interface with an RC transmitter through its buddy port, the transmitter transmitts nothing (you remove the crystal) but supplies the PPM signal directly through the buddy lead that way you could have a mixture of RC type control and anything else you wanted through the same RF channel.
Graham
Thank you
You can get the RSSI value out of the XBee's so both sides can know when you are getting too far away from eachother.
Another great reason to go with the zigbee units.
I really like this idea and think i will stick with it.
Thank you
Post Edited (computer guy) : 5/26/2007 7:57:00 AM GMT
Hey i am talking to myself.
Bump
Hey could the propeller read a USB signal.
I'm thinking wireless XBox controller.
Thank you
Thing is -- the Prop probably can do that if you dedicate a cog to it (the Prop can do just about any damn thing if you dedicate a cog to it, I think...). The real question is how much of the receiving do you want to do by software?
Ultimately when it comes to RF, your best solution depends on:
1- What's your max. intended range?
2- What's your bandwidth? As in, how many (effective) bits per seconds do you want to send?
3- Is it 1-way or 2-way?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://forums.parallax.com/showthread.php?p=650217
meow, i have my own topic now? (sorta)
you may want to look at a different radio from maxstream if you want your plane to be any real distance from you