Hi Jonny,
This was a fun project, as with many other attempts of using the RC receiver, the code spent far too much time waiting for the 6 channels to report data and it took up 6 different IO ports on the BAP. So I did a search on the web to find out if anyone sold a receiver that you could simply get the data from, instead of having to capture the servo signals. Did not find any, but an expanded search did find hacks that allowed you to modify a receiver to get at the signals. The hacks centered around finding the clock signal of an internal chip and bringing that out. That iwhatht this project was based on.
Earlier I thought about doing a different approach, which was to use a second processor like the BAP-1M that you would plug all of the servos into and have it dedicated to reading in the signals, then have some simple protocol to the main processor that allowed it to grab the data whenever it needed it. I did not go this route as the 1M only had 8 IO pins and I also wanted to the spectrum which has 7 channels plus probably 2 for I2C or the like. Plus there was no board designed for these. Could probably do my own, but… Should maybe consider doing this again with an Arduino…
Sorry about leaving the XBee code in that project. That project was set up that allowed me just to change a define or two and use different input devices. Also it was set up that I could at times have 2 different devices, where the first device to talk to the robot (PS2 or XBee), wins… There are several reasons preferredeXBee XBees. The first was it was easy to have the same remote control different robots. This is probably true with the RC as well, you simply have to purchase multiple receivers, although I am not sure how that works with some like the spectrum. Would you have to rebind the two each time you wish to use a different one? Also I like the Bidirectional communications, where I can get feedback, back to the remote. Also I can use a PC to talk to the robots as well, and you can also set up to have the robot potentially talk to multiple recipients. Example the remote control for commands, and to a PC to display or log data…
No problem taking up my time. I like dinking around and am often playing with multiple different projects at the same time. Let me know if want any help here.
Kurt