Remote Control Can Talk to a Picaxe
I had asked in a forum post if a picaxe could "read" a servo output comming from another source... Thanks to the OddBot, as he nailed it. By the way, O.B. I simply ran the receiver off the same 5V supply I was using for the Picaxe board --No resistor bridge needed, everyone was happy with the same 5 volts. Here is the original post.
In this case I am using a VEX brand transmitter, but understand, really it is exactly the same as a RC car or model airplane transmitter --All outputs from the receiver are for servos.
I was really quite surprised at how easily this is done. I simply connected the data wire and ground from the receiver servo connector to a digital input pin of the picaxe. I skipped the positive wires, all that is needed is the one data wire and for the grounds to be tied together. Also, on the board, I have a 10K pull-down resistor tied to the input. (I don't know if this is needed or not)
Now for the even easier part!!! (The code I used in the video)
That's it! --Really. Using the pulsin command simply sticks a number in to the word variable between 0 and 255 in relation to where the stick on the transmitter is.
So there you go, folks... It works, its simple and if you buy one of those huge controllers with all the extra switches and buttons and the LCD and all, you will just look that much cooler!