Let's Make Robots!

IR Sensor Help.....

When I connect my servo to the board it starts heating up really bad. I am not sure whats wrong or where it's supposed to go.

I'm connecting to the part that has the 5 V instead of the VS which the right way for analong stuff right?

I just need to know if this thing is soldered right and if not how it should be... I also saw in this link it could be done another way...

http://www.adafruit.com/blog/2008/10/14/quick-tip-analog-signal-from-a-digital-distance-sensor

 any recommendations? thanks.

 

[IMG]http://i44.tinypic.com/nff7us.jpg[/IMG]

[IMG]http://i43.tinypic.com/2qk6q88.jpg[/IMG]

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Sharp IR sensors give false readings when an object gets too close. The data sheet will explain and tell you the minimum and maximum distances it can read. You might want to use whisker sensors as well as the sharp sensor.
the one i bought didn't come with a data sheet... so i don't know max range or minimum range :S and you do you know whats wrong with the code that the servo stop when I put them to go -4000?

http://www.acroname.com/robotics/info/articles/sharp/sharp.html

 

When in doubt and you can't work it out, Google about :D

Thanks man. I just now don't know if my code is right for getting distances... I'm new to programming in basic atom so I don't know how to operate these kind of commands. Can any good programmer help? 

You could start a thread asking if anyone knows the basic atom. Most people here use the picaxe or arduinos.
The never come with a datasheet. You need to find it at the online store where you bought it or use the google.

I made this post when I was half awake... I am using a basic atom pro micocontroller. And I was talking about the IR sensor making part of the bot board II heat up. Sorry I was not very detailed and I put up wrong info. Now I have solved the problem... what I noticed happened was that the ground and power on the IR sensor analog were coming together because of bad of the bad soldering I did. Now I am trying to program it but I am getting bad results... the sensor picks up dark colored objects from very far away, but on other it picks them up too closely... here is my code. I copied it of lynx motion and modified it a bit but it doesn't work. When the sensor detects something it just automatically stops. I'm not sure which values to put in so that's probably the mistake. I know the stuff is pretty simple but I want to start like this and then modify the code extensively. So anyways here is the code if you guys want to help out. (it's basic atom)

 

low p10

low p11 

  m var word 

  mike var word 

 

loop 

    ADIN p0, mike; 

    if mike < 200 then 

    gosub s 

    else 

  gosub l 

    endif 

     goto loop 

 

for m=0 to 200 

pulsout p10, 4000 

pulsout p11, 2000 

pause 20 

next 

return 

 

for m=0 to 25 

pulsout p11, -4000 

pulsout p10, -4000 

pause 20 

next 

return  

Good, sharp flaming!

I like it!

Let me read this back to you,

When I connect my servo to the board it starts heating up really bad. I am not sure whats wrong or where it's supposed to go. 

A) Does the servo heat up, or the board? What board, what pic, what servo? If you don't know where it goes, how did you plug it in?

 I'm connecting to the part that has the 5 V instead of the VS which the right way for analong stuff right?

A) Are we still talking about servos or are we on to the sharp distance sensor? Don't mix 5v and Vss as that is + and -. Are you trying to make the analogue/ digital conversion?

 

I just need to know if this thing is soldered right and if not how it should be... I also saw in this link it could be done another way...

http://www.adafruit.com/blog/2008/10/14/quick-tip-analog-signal-from-a-digital-distance-sensor

 any recommendations? thanks.

A) What sensor are you using? Is it analogue or digital? If it is digital, are you trying to modify it for analogue use? If you are modifying it, your wiring is not even close to the one as seen in the link you attached, so no -that is not right.

 

Please add the pictures directly or link them -no one wants to cut and paste.

READ THE FUCKING MANUAL

Or at least demonstrate that you did and how much you learned from that. This is just reiterating the advice to be specific about your situation. 

Remember, your situation includes YOU. Tell us what you're up to. How much experience do you have? What did you try before asking for help?