Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Comparator circuit

Status
Not open for further replies.

George L.

New Member
Hello everyone,

I would like to create a circuit that will compare two input voltages and turn a small 1.5V motor on/off accordingly. This sounds like the perfect job for a comparator!

The comparator I am using is a LM339 Quad Comparator from radioshack. All the specs can be found here: http://support.radioshack.com/support_supplies/doc31/31971.htm

I attached a basic drawing of my circuit. (my MS paint isn't working, sorry :() The circuit is currently on my breadboard and is not working. The power supply is a 9V battery. I have no idea why it isn't working, (incorrect circuit???)

If you know what I did wrong please tell me so I can get this circuit to work.

thanks,

George
 

Attachments

  • circuit-help.doc
    22.5 KB · Views: 288
You said you want to compare voltages, but your drawing shows photocells. You need to tell us exactly what you are trying to do.
 
Hi George,
1) A comparator compares different voltages at its inputs. Your circuit always has the same voltage on its inputs. The photocells must be part of a voltage divider so that the inputs change their voltages when the light changes on the photocells, and the input voltages must remain within the input common-mode range of the comparator.
2) The quad LM339 is the same as an 8-pin dual LM393. Their minimum output current is only 6mA which probably isn't enough to drive your motor. :(
 
How far are your photocells from each other?
are they ON one at a time or both can be ON at the same time (By ON I mean expeosed to light)
Put pull down (connected to GND) resistors at both the inputs of the comparator (better to put same value resistors) and then
Just remove the motor from the output and try measuring the output with a multimeter.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top