Let's Make Robots!

Start Here Problems... Mainly the IR Sensor



Ok, I completely made my robot, everything working properly, except for my SHARP IR Sensor which i fried, so i ordered a replacement one, I hooked it up following the instructions,put in the batteries and put in the code, and now its working just like my fried sharp did, its looking both directions, and moving backwards (even though im positive it should be set to go forward i even just enter the forward code and it went forwards) no matter whats in front of it (or not in front of it) it does the same thing, also it felt like it was overheating (by the way when i typed in the ADC code it seemed like it was working) so i checked my connections and i found something was plugged in wrong, i plugged it right, (I accidentally plugged the IR sensor in wrong) and tryed testing it, nothing happened so i checked the batteries and there must have been a spark or something because it shocked me (making me move my robot a little and the batteries fell out) so i unplugged everything and plugged everything in and checked every connection and made sure nothing was overheating and put the batteries back in, this time smoke started pouring out from the batteries (or thats at least where  it looked like it was coming from) So i took the batteries out, unplugged the SHARP, checked connections, etc. nothing was overheating so i put in the batteries and nothing, the servo didn't even turn, so i used some other rechargeable batteries that i knew had full charge and put them in, still nothing, any ideas to what could be wrong (or fried)??? New Problem

When i plug my robot into my computer and do the readadc command on pin 1, 2, or 3 i get the number 255 when i try it on pin 0 i get a combinations of these numbers: 4, 5, 6, 10, 11, 12, 15, 17, 18, 19 and the combinations switches every 5 seconds no matter if the object it was looking at was stationary for those 5 seconds or if it was moving, but i can see a dim red light in the IR Sensor so i know its working... i've plugged the IR Sensor into every combination of  the 3 pins and have done the readadc pin 1, 2, and 3 on every combination of Sharp connections, (the main connection I've been testing on red blue black or V, Vout, gnd) Any ideas as what could be the problem?


Robot.jpg389.48 KB

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Man, I know how you feel. There's nothing worse than starting all over from the Start Here robot. Makes you feel like your going nowhere.......It's wise to have a spare chip on hand just in case when you Start Here.

I actually ordered 2 Microcontrollers when i started just in case something like this happened, I put in the good one and tried to see if my computer would even read it, but it isn't detecting the hardware (it detected the hardware before this)