Dear enthusiasts,
I am working on a robot and I'm using a Sharp GP2D02 infrared distance sensor which is mounted on top of a servo motor. My robot is near finished. Motors, servo and infrared sensor are controlled by a Picaxe28 board with Picaxe 28x1 chip. An L293 steers my 2 motors and the outputs are going through a DIL 330 x 8 resistor array.
I also got a piezo buzzer for sounds hooked up to output 1.
Now, before we continue, I am positioned on a very remote island in the Coral Sea for another 5 months (Willis Island, Queensland, Australia) and can not go to an electronics shop to buy other sensors. I relaize the GP2D02 is now obsolete but it's the only part I've got. I read they are easily destroyed if they are hooked-up incorrectly.
I am puzzled with the Vin function of the GP2D02. Could some of you please explain what this does? From what I understand it needs to be hooked up to a diode (To lower voltage) and then hooked up to a clock-signal of the processor.
Say I want to use Input pin 11 (This has a timer function), how do I do this?
Could you please send me a code snippet to run?
Your help will be much appreciated and as I said before I want to make sure I've got it spot-on before I power it up.
Thanks for your help.
Luc.
I am working on a robot and I'm using a Sharp GP2D02 infrared distance sensor which is mounted on top of a servo motor. My robot is near finished. Motors, servo and infrared sensor are controlled by a Picaxe28 board with Picaxe 28x1 chip. An L293 steers my 2 motors and the outputs are going through a DIL 330 x 8 resistor array.
I also got a piezo buzzer for sounds hooked up to output 1.
Now, before we continue, I am positioned on a very remote island in the Coral Sea for another 5 months (Willis Island, Queensland, Australia) and can not go to an electronics shop to buy other sensors. I relaize the GP2D02 is now obsolete but it's the only part I've got. I read they are easily destroyed if they are hooked-up incorrectly.
I am puzzled with the Vin function of the GP2D02. Could some of you please explain what this does? From what I understand it needs to be hooked up to a diode (To lower voltage) and then hooked up to a clock-signal of the processor.
Say I want to use Input pin 11 (This has a timer function), how do I do this?
Could you please send me a code snippet to run?
Your help will be much appreciated and as I said before I want to make sure I've got it spot-on before I power it up.
Thanks for your help.
Luc.