Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

avr comparator problem

Status
Not open for further replies.

yas_iiee

Newbie level 5
Joined
Apr 28, 2010
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
karachi
Activity points
1,342
peace be to all,

i m working on interfacing a flame sensor with avr as a part of FYP. the sensor gives output around 1-2µA (current source). i m just passing this current thru a resistor and comparing it using 'avr analog comparator'. the comparator works fine when i connect a POT at AIN0 and smple VDR at AIN1. when i disconnect the vdr and connect AIN1 with sensor resistor ACO goes high no matter what the difference b/w the voltages be.

what might be the problem?
 

Hi

Probably your AIN1 low impedance overload your sensor - add a buffer amplifier

between the resistor and AIN1 input

All the best

Bobi


The microcontroller specialist
 

check the datasheet and it is likely the leakage current isn't that far off from 1ua.

plus, if the sensor is a current type, you should use a resistor to form a loop for it and measure the voltage across the resistor, not put the resistor in serial with the input pin.
 

i m using a resistor of fairly high value 500K in the loop not in series with AIN1.
I couldn't find the input impedance of this pin in datasheet but if it is lower than the reisistor i m using it must be reducing the the drop(being in parallel), hence making ACO low according to my code but it remains high.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top