Can not make the infra-red sensor working
April 23, 2012
I am new to the forum. My son (10 years) has build the robot as described in the 'start' page. I halped him during the process and the connection with the computer. We do not understand how to make the sensor working. The servo turn with the basic parameters and wheels turn as well. As an example we tried to imput in the Picaxe software the following:
readadc 0, b0
and when the hand is put in front of the senson there are some numbers changing on the debug window. However we tried to transfer the whole script in the start page that starts with the following string:
Symbol dangerlevel = 70 ' how far away should thing be, before we react?
and ends with:
but only the wheels move in forward. We checked lots of time the connections as described in the images in the start page. The only difference with the sensor are the colors of the wires i.e. black yellow and red in stead of black white and red. Thus, we connected the yellow in the middle and kept the red external (edde of the board) and the black internal (on the same plane of the image in the start page).
Any suggestion is apreciated (we worked on this all the weeked!),