ZAXTER.
Click to return home.


ZAXTER. ©

Use SI/OP to gain control of very cheap RC "remote control" toys.
 
 This type of RC only has metal spring tabs for making connection with a post to control direction.
http://zaxter.me/siop/another_remote.jpg
 Find a route for wires in/out of remote and solder a wire to each common spring and the four post on bottom of PCB.

 Then decide which output pins of what port you are going to use for your RC and make a connection to your circuit, or use solderless proto board for this test. Using a CD4066BE switch makes it an easy design at a very low cost.

http://zaxter.me/siop/RC-4066.jpeg
 
 Corvette RC was only like $16-18 and worth the money just for components.

http://zaxter.me/siop/RC-4066.jpg

http://zaxter.me/siop/RC_remote101.jpeg
user101@siop:~$ cat rate rate2 turns
.0005
.05
5
'Values of rate & rate2 are flat files used for PWM "Pulse-width modulation" control'
'Value of turns "routine loops" is held in yet another flat file which you can alter.'
    "This does not correlate to amount of wheel turns at all."
http://zaxter.me/siop/PWM101.jpeg

Alter sample scripts code to match your port, pin and path choice:
 

#!/bin/bash
#This script moves RC forward with PWM based on rate, rate2 and turns.
x=1
y=$(cat /home/user101/turns)
while [ $x -le $y ]
do
x=$(( $x + 1 ))
correlative_number=$(for N in /home/user101/rate ; do cat $N ; echo  -n " " ; done )
correlative_numbers=$(for N in /home/user101/rate2 ; do cat $N ; echo  -n " " ; done )
echo 1 > /home/siop/port1/output/pin1
sleep $correlative_numbers
echo 0 > /home/siop/port1/output/pin1
sleep $correlative_number
done

#!/bin/bash
# This script moves RC backwards with PWM based on rate, rate2 and turns.
x=1
y=$(cat /home/user101/turns)
while [ $x -le $y ]
do
x=$(( $x + 1 ))
correlative_number=$(for N in /home/user101/rate ; do cat $N ; echo  -n " " ; done )
correlative_numbers=$(for N in /home/user101/rate2 ; do cat $N ; echo  -n " " ; done )
echo 1 > /home/siop/port1/output/pin14
sleep $correlative_numbers
echo 0 > /home/siop/port1/output/pin14
sleep $correlative_number
done

#!/bin/bash
#fb.sh script moves RC forward and backwards with PWM.
x=1
while [ $x -le 9 ]
do
x=$(( $x + 1 ))
echo 1 > /home/siop/port1/output/pin1
sleep .05
echo 0 > /home/siop/port1/output/pin1
sleep .0005
done
sleep 5
z=1
while [ $z -le 12 ]
do
z=$(( $z + 1 ))
echo 1 > /home/siop/port1/output/pin14
sleep .05
echo 0 > /home/siop/port1/output/pin14
sleep .0005
done

 This last sample code is moving the RC back and forth on my desk, trying to go from center of desk to edge.
 This video show it in action  which opens new window from youtube.
#!/bin/bash
#fb2.sh script moves RC forward, left and backwards/right 10 times without PWM.
x=1
while [ $x -le 10 ]
do
x=$(( $x + 1 ))
echo 1 > /home/siop/port1/output/pin1
echo 1 > /home/siop/port1/output/pin16
sleep .1
echo 0 > /home/siop/port1/output/pin16
sleep .12
echo 0 > /home/siop/port1/output/pin1
sleep .5
echo 1 > /home/siop/port1/output/pin14
echo 1 > /home/siop/port1/output/pin17
sleep .3
echo 0 > /home/siop/port1/output/pin14
echo 0 > /home/siop/port1/output/pin17
sleep 1
done

Being used with a school project http://zaxter.us/siop/corvette_RC.jpeg here.

Using a C program for X11 to control RC movement
Click to open video at youtube.
http://zaxter.me/siop/cursor_control.jpeg
#include <X11/Xlib.h>
#include <X11/keysym.h>
Link to code source.

Use the following to compile cursor_control.c
gcc cursor_control.c -o cursor_control -lX11


http://zaxter.me/siop/proto_typed_icon.png
Why buy SI/OP?