Hi I'm not an EE but I am building a circuit for a project that I'm working on. I built the circuit today but it doesn't work and I think the problem is either how I am am using the LM311N or possibly the NPN transistor.
The idea is:
-The AC voltage is either on or off, when on it is half-wave rectified and smoothed (turns out to be approx. 0.37V) and attached to pin 2.
-In order to set the reference voltage attached to pin 3, the battery voltage is divided (turns out to be approx. 0.17V)
-Ideally, the op amp would compare the two voltages and only output (pin 7) if 0.37VDC is achieved.
-The since i believe the op amp can't handle all the current required to run the motor (could be wrong), I am using an NPN transistor-- this could be part of the problem
Is there some glaring mistake I've made in the design? Am I allowed to ignore the other 3 pins of the op amp?
Thanks for the quick response Eric! I'm new to electronics and not exactly sure how to implement your suggestions
For the pull up resistor, would one end be attached to pin 8 and the other to the power source?
As for moving the motor, are you saying to attach one side of the motor to the battery and the other end to the transistor collector? Any specs I should look for in a suppression diode/where would that be placed?
Thanks for the quick response Eric! I'm new to electronics and not exactly sure how to implement your suggestions
For the pull up resistor, would one end be attached to pin 8 and the other to the power source?
As for moving the motor, are you saying to attach one side of the motor to the battery and the other end to the transistor collector? Any specs I should look for in a suppression diode/where would that be placed?
I updated the circuit (see attached)-- my multimeter reads 6.3ish VDC between the leads where the motor should be and doesn't change depending on the AC input.
I updated the circuit (see attached)-- my multimeter reads 6.3ish VDC between the leads where the motor should be and doesn't change depending on the AC input.
Cool thanks! The motor was running-- but it didn't turn on/off depending on the VAC input-- i.e. the VAC input had no effect on the voltage between pin 7 and gnd
Cool thanks! The motor was running-- but it didn't turn on/off depending on the VAC input-- i.e. the VAC input had no effect on the voltage between pin 7 and gnd
The input frequency is 440Hz-- just to make sure were talking about the same thing, I only want the motor to run if the DC signal into pin 2 is above the reference voltage.
The input frequency is 440Hz-- just to make sure were talking about the same thing, I only want the motor to run if the DC signal into pin 2 is above the reference voltage.
Yeah I did have pin 4 connected to gnd-- should I disconnect it? So according to the simulation if I follow the attached diagram (and all of my components are good) it should work?
It's pretty late here, so I'm going to have to work on it more tomorrow thanks for the help so far and I'll let you know what I find tomorrow.
Started the whole circuit over from scratch, I may have had the transistor C & E pins switched but flipping it didn't help-- do you think one of my parts could be bad/fried?
I tried breadboarding the circuit again with all new parts.
The motor turned on at first and then it seemed that when I turned on the AC Voltage, it turned the motor off. It could have been wishful thinking/me bumping a connection loose, but I tried it again and the motor stays on no matter what. I wonder... do I need a different/stronger transistor?
1N4001 diode is very important, it protects your transistor, else you may need a fresh transistor everytime you run your circuit, and it has to be connected in reverse biased, else the motor will not work.