site nav

Home

My Other sites:
My Flickr Photos
My Bebo Profile

New:

Rowing / Lifeguarding
Diving

Historic:

Diary:
Erasmus Exchange Diary

Robotics:
My Robots
xi (Cross-eye) - My Photovore Bot
StyleCam Snap Hack

Robosapien:
Main
Dissection Photos
Connection Details
LED Mod
Brain Photos
My Hack
Hack page 2
Hack page 3
Hack page 4
RS Circuit Diag
RS Components

RoboSapien V2:
Main

RoboQuad:
Main

My Robosapien Hacking
<[Back to LED mod] [Forward to stage 2]>
Stage 1: developing communication between a PICmicro and Robosapien
I have started work on my hack by tapping three wires into robosapien's control board, the first two go to Vcc and Gnd and provide the power supply, the third taps into IR-OUT (or IR on different PCB revisions).
I am working with a PIC16F84A, which may not be the best of the PICs but it is what I have been using for the last 5 years and I have built up a few spares. This is running on a 4MHz clock which gives a command cycle of 1 micro-second (1-millionth of a second, 0.000001 seconds per command). Using the delay generator available from: http://www.piclist.com/techref/piclist/codegen/index.htm I built a program in MPASM (assembly language) to send a command to the Robosapien.
The protocol used on the robosapien's IR port is documented here:http://www.aibohack.com/robosap/ir_codes.htm.
I wrote some PIC assembly to receive commands from the remote, in order to do this I disconnected the wire running to the PCB from the IR-receiver in the head (white wire) and connected this to the PICmicro (labled IRIN in my code). The files are at the foot of this page under the "Downloads" heading. I can now read the commands from the remote and pass them on to the robosapien's original PCB, this isn't exactly useful as-is but is the starting point for further programming.
Photos

Robosapien's PCB with the 3 wires to VCC, GND and IR-OUT.

Robosapien with prototype board taped to back (older, notice only 3 wires from robosapien).

Close up showing prototype board and PICmicro on stripboard (again old version).

The hole made by leaving out the speaker backplate, this is very helpful as it doesn't involve making any holes in robosapien at this stage. Another thing to note is the potentiometer on the right hand side, this controls the volume of robosapien (as described on Robosapien.tk), Very handy for late night hacking.
Related Links
www.robosapien.tk
Downloads
robosap.inc - The include file which contains the code to receive and transmit IR commands.

rs-2.asm - as described above this is simply the PIC code to relay commands from the remote to robosapien's PCB.

Disclaimer
Photos are copyright of Mark Craig, you have no right to use them unless you leave a request on my guestbook.

Robosapien is a Trademark of Wow Wee.

I accept no responsibility or liability for anything you do. If you dismantle or alter your own Robosapien that is entirely up to you and you do understand it will void your warranty.