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.

Please Help ADC & Comparator

Status
Not open for further replies.

Edy_Tse88

New Member
i'm have a problem with adc or comparator. who can give me the source code. For example When the potentiometer is set to a voltage under 2.5 V, the comparator's output will be low and the LED at RD0 is ON. But when the potensiometer is turned up past hafway or more than 2.5 V, the comparator's output will go high, LED at RD1 is On. Thanks...
 
You've posted virtually this same question over and over in the past. Show us the code you've written so far and we'll try to help.
 
just use one comparator and two leds. Keep 2.5V as reference voltage and keep potentiometer at other end voltage. To the output of comparator connect two LED's parallel one end to comparator output and other end to gnd(second led to VCC).

Bibin John
www.bibinjohn.tk
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top