shubham_k
Newbie level 3
- Joined
- Jan 1, 2013
- Messages
- 4
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,326
Hi,
I am making a project using LDR sensors.
For converting the analog voltage of LDR to the digital one,I am using an LM 324 IC.
I am giving the LDR connection to the non-inverting input of LM324(pin 3) and a potentiometer to the inverting input of the IC(pin 2).
When the voltage at pin 3 > voltage at pin 2(the reference voltage),i should get a digital high output ( i.e.,5 v) and a digital low output in the
other case(i.e.,0 v) on giving a 5v +Vcc supply to pin 4.
But what I am getting is a 3v output for digital HIGH value and a 0v output for LOW.
(There is ,I think,lies the main problem.)
When I am giving the digital HIGH output to the PC ports of ATMega8 microcontroller,the motors connected to PB ports are not getting driven at all.(They should get driven as per my program.)
So Guyz, plz let me know where exactly lies the problem.
Is a 3v HIGH output from LM324 not enough for the microcontroller??
I am making a project using LDR sensors.
For converting the analog voltage of LDR to the digital one,I am using an LM 324 IC.
I am giving the LDR connection to the non-inverting input of LM324(pin 3) and a potentiometer to the inverting input of the IC(pin 2).
When the voltage at pin 3 > voltage at pin 2(the reference voltage),i should get a digital high output ( i.e.,5 v) and a digital low output in the
other case(i.e.,0 v) on giving a 5v +Vcc supply to pin 4.
But what I am getting is a 3v output for digital HIGH value and a 0v output for LOW.
(There is ,I think,lies the main problem.)
When I am giving the digital HIGH output to the PC ports of ATMega8 microcontroller,the motors connected to PB ports are not getting driven at all.(They should get driven as per my program.)
So Guyz, plz let me know where exactly lies the problem.
Is a 3v HIGH output from LM324 not enough for the microcontroller??