Pic "tele-presence vehicle" design and software
A PIC 16F877A was chosen since it is used in many projects on the Web and has many features and including RS232 I/O USART firmware.
The software was designed
using the Oshonsoft Basic
compiler and simulator (this is splendid software, very easy to learn, and
only €25)
A very good value PIC project board came from http://palmelectronics.net/EVA-001.html
only spoiled by the poor documentation (that in the advert
is all you get!).
- but I have been pleased with the hardware quality and value.The schematics
extracted from the advert are here
I have tested the palmelectronics board by modifying the Oshonsoft examples (the Oshonsoft and Palmelectronics boards use different ports for similar external circuits) - my notes are here
A Basic program similar to this early version causes the Pic to mimic the pulse train in th RC transmitter.It sends to the transmitter five 300usec +5V pulses.The four 0V gaps are varied 1 to 2 millisec, one for each channel. A remaining long gap makes the period up to 20msec.
The Oshonsoft PIC
basic program responds to single ASCI characters from a click on a region
of an image map sent according to the code in the tables below.
e.g. If the Sweex sends the character M (Decimal value 77 or Hex value 4D)
to the PIC the pic changes the gap_1 and gap_2 pulse lengths so as to center
the 2 axis webcam
gap_1 = Channel 1
- rotate webcam to left or right
gap_2 = Channel 2 - nod webcam up and down
gap_3 = Channel 3 - steering position
gap_4 = Channel 4 - power level - forward (+volts) or back (-volts)
^ 94 %5E |
webcam control
steering |
slow |
fast |
reverse power |
|||||||||||||||||||||||||||
( 40 %28 |
U 85 %55 |
) 41 %29 |
|||||||||||||||||||||||||||||
u 117 %75 |
|||||||||||||||||||||||||||||||
< 60 %3C |
L 76 %4C |
l 108 %6C |
M 77 %4D |
r 114 %72 |
R 82 %52 |
> 62 %3E |
|||||||||||||||||||||||||
d 100 64 |
|||||||||||||||||||||||||||||||
[ 91 %5B |
D 68 %44 |
] 93 &5D |
|||||||||||||||||||||||||||||
V 86 %56 |
|||||||||||||||||||||||||||||||
character decimal hex |