Let's Make Robots!

Feivel

Seek the brightest light in the room

Feivel was my very first robot. He's a little phototropic (light-seeking) robot built into an old computer mouse case. I'm nowhere near clever enough to come up with the simple circuit that controls him -- it's the classic 'Herbie' circuit by Randy Sargent, using an LM386 op-amp (originally intended for use as an audio amplifier) to read the difference in light level between the two infrared phototransistor 'eyes' and use that to split the voltage between the two motors. When both eyes are seeing the same amount of light, the 9V gets split evenly into 4.5V for each motor. When one eye sees more light than another, the op-amp directs more voltage to the motor on the opposite side, which makes the robot turn towards the light. The end result is that Feivel seeks out the brightest light in the room. It also has the added side-effect (as you can see in the video) that when he finds himself on a shadow with bright floor on either side, he'll tend to follow along the shadow, since neither eye wants to move into the shadow. Emergent behavior!

One surprising fact I learned while working on this robot is that, just like a motor will also function as a generator (and vice versa), and a speaker will function as a microphone (and vice versa), LED's also function as light sensors. Any plain old LED will produce a slight voltage across its pins when exposed to light. The 'eyes' on Feivel are actually the infrared emitters that used to be inside the mouse to determine the position of the ball -- it turns out that the emitters work better than the receivers as general light sensors. Crazy.

Since this was my first robot, I took a bunch of pictures of the entire construction process. Since I have no code or programming logic to share for this one, I'll just post some of those :)

Prototyping the circuit

12131

12133

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
If you got the money and the parts to make a new robot, same type, it would be cool if you could make it with shadow sensors. Instead of chasing light, it would go after darkness? Just a thougt :D
No need for new sensors, if you wire the originals in backwards you get a dark-seeking bot instead =)

I will always have some analog in my blood and respect creativity. I may want a simple schematic. I am thinking of coupling 2 sharp IR sensors in a similar way for a different application. I am now building my 3rd robot from stuff laying around. That may be a way of using up less I/O pins and have used the 386 in the past.

 

Did u make a post about how to make this little guy?its awsome and i wanna try making one,so if u have made the post could u send me the link or if its not too hard to post it here.

10x a lot

keep them comming XD

how can i get the actual circuit diagram to make it fulfil for real use.

hi I am from turkey I am electronic student I just started this job, please,please,please,please, please circuit diaram

thank you...

The circuit diagram can be found in "The Absolute Beginners Guide to Building Robots" and several places on the web. For example: http://www.solarbotics.com/projects/circuits/2007/07/circuit-herbie-by-randy-sargent/
um can you post a video showing how to do this that would be gr8

Hi Fritsl and TheCowGod,

I was hoping I could get your input. I am making a robot with this schematic (as posted above): http://downloads.solarbotics.net/misc/herbie1.gif

but instead of detecting light I would like to construct it to seek out a flame (i.e. a candle). Now I was wondering, can I do that simply by replacing the photodiodes with some type of sensors that detect fire? I think it would work but I'm not 100% sure. Let me know what you guys think. Thanks :)

Er, did you watch the video I posted above? I'm not sure if I'd want to set a skittering robot chasing after a candle. What do you imagine will happen when it finds it? House burns down :)

The circuit works by comparing the voltages on each of the two diodes, so you should be able to drop in any sensor that varies its voltage output based on what it senses. If you use something that varies its resistance, then you'd need to use it in a voltage divider to produce a voltage change.

Dan