Just want to use a GP2D120 as a Bumper switch.
MovieMaker
Posts: 502
Just want to use a Sharp GP2D120 as a Bumper switch. Simple. or , maybe not.
Anyone got any ideas how I would use it and how I would wire it. And, how I would program it. I have many diagrams and they sortof conflict each other. I tried using an A/D converter without too much luck. I read somewhere that I should put a 10mf cap from Voltage to Ground on the pins close to the IR Detector and have a 10-12k Pull-up resistor also. Maybe I could use it without the A/D converter. Just as a Digital switch. I do not need a million readings, just 1 or zero if it has on the left or right side objects close by. I bought this because I thought it would be an easier way than the IR Detector I am having problems with.
Also, any idea how to program this in PBASIC2.5? I have also a lot of subroutines, but would still like your suggestions.
Any feedback will be appreciated.
Thanks!
Anyone got any ideas how I would use it and how I would wire it. And, how I would program it. I have many diagrams and they sortof conflict each other. I tried using an A/D converter without too much luck. I read somewhere that I should put a 10mf cap from Voltage to Ground on the pins close to the IR Detector and have a 10-12k Pull-up resistor also. Maybe I could use it without the A/D converter. Just as a Digital switch. I do not need a million readings, just 1 or zero if it has on the left or right side objects close by. I bought this because I thought it would be an easier way than the IR Detector I am having problems with.
Also, any idea how to program this in PBASIC2.5? I have also a lot of subroutines, but would still like your suggestions.
Any feedback will be appreciated.
Thanks!
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
www.noisemantra.com/BASICStampAnalogInput.htm
Jax
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
If a robot has a screw then it must be romoved and hacked into..
GWJax, I am still waiting . . . .
Yes this will do, any diode will work in this circuit. I would still put at least a 100uF cap from the Vdd to the Vss on the sensor to cut down on a lot of the ripple spikes that the sensor makes you can also go all the way up to a 3000uF cap but nothing higher is needed.
Jax
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
If a robot has a screw then it must be romoved and hacked into..
MovieMaker I have not forgot about you! I have a major project going on right now that I have a time limit on it so all my attention is on that right now. Once I get this project figured out and programmed correctly using the BS2px24 then I'll have time to help you program the Boe-Bot with some AI intelligence as discussed before.
Jax
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
If a robot has a screw then it must be romoved and hacked into..
Sorry, JAX, I have been a little impatient lately. A lot of things going on at my place. I may have a major move and a few other stressful things going on and It seems my bot has been put on hold and I am afraid he will stay on hold by me because I haven't gotten to the point where I fully understand all about him. I desire him to be so much more. But, I am a dreamer and I am hoping that I am not being un-realistic about the project. It just seems so do-able in my mind's eye.
Post Edited (MovieMaker) : 1/25/2009 6:02:05 PM GMT
Yes it is. sorry for not saying so.
Jax
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
If a robot has a screw then it must be romoved and hacked into..
I plan to use the Sharp GP2D120 on my robotic gripper so that I will know when the arm gripper is close enough to grab the beer bottle. Seriously!
If you want to linearize the Sharp IR range finder·output, here is a link expaining how to do so: http://www.acroname.com/robotics/info/articles/irlinear/irlinear.html
Regards,
TCIII
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
If you are going to send·a Robot·to save the world, you·better make sure it likes it the way it is!
Jax
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
If a robot has a screw then it must be romoved and hacked into..
Thanks Guys for the feedback.