Let's Make Robots!

Where to put an On/Off Switch on Picaxe 28x1

Hi.

While I'm trying to solve my distance sensor problems , I've found that it would be convenient to have  an on/off toggle switch to be able to turn off the robot any time instead of having to wait until the program ends or replug the robot back into my computer to download a blank program to get it to stop moving. My question is: where on the board would I put this switch?

I am using the the starter pack with Picaxe 28x1 microcontroller and board.

Thanks.

Sharp GP2D120 IR Sensor Readings

Hi.

 

I just built my first robot following the "First Robot" tutorial. The only problem I am having is with the Sharp GP2D120 IR sensor. When I run the code as per the tutorial (i.e. "readadc 1, b1" and "debug"), the values for b1 are displayed as:

 

123, $7B, %01111011, '{'

 

The readings do not change even if I put something in front of the sensor. Do those readings provide a clue as to what is wrong with my robot?

 

Thanks for any help you can provide.

 

TH