A picaxe 014M is used to provide a serial interface to a simple RC car transmitter. A ULN2803 is used to trigger each of the channels on the transmitter. (Pulling the appropriate line on the transmitter to low starts a transmission pulse. That operation continues until that line goes high.)
This should be adaptable to any non ratiometric RC car. (IE a cheap one!)
The code is pretty simple:
Details about the project are at:
http://profmason.com/?p=471
have fun!
This should be adaptable to any non ratiometric RC car. (IE a cheap one!)
The code is pretty simple:
Code:
symbol forw = 2
symbol back = 3
symbol right = 4
symbol left = 5
setfreq m8
main:’Get a value from the terminal
serin 4,N1200,b0
’serout 0,N1200,(#b0)
if b0 = 56 then goforward
if b0 = 57 then goforwardright
if b0 = 55 then goforwardleft
if b0 = 51 then gobackwardright
if b0 = 50 then gobackward
if b0 = 49 then gobackwardleft
if b0 = 53 then gostop
low backrctransmitterinterface.JPG
low right
low left
low forw
goto main
gostop:
low back
low right
low left
low forw
goto main
goforward:
low back
low right
low left
high forw
goto main
gobackward:
high back
low right
low left
low forw
goto main
goforwardright:
low back
high right
low left
high forw
rcpcbfront.jpg
goto main
goforwardleft:
low back
low right
high left
high forw
goto main
gobackwardleft:
high back
low right
high left
low forw
goto main
gobackwardright:
high back
low right
high left
low forw
goto main
Details about the project are at:
http://profmason.com/?p=471
have fun!
Attachments
-
52.5 KB Views: 109
-
17.3 KB Views: 181