Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 5th December 2007, 09:27 AM   #1
Default Please Help ADC & Comparator

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...
Edy_Tse88 is offline  
Old 5th December 2007, 05:34 PM   #2
Default

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.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com/
blueroomelectronics is offline  
Old 8th December 2007, 05:32 PM   #3
Default

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
bibinjohn is offline  
Reply

Tags
adc, comparator

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
ADC troubles andy257 General Electronics Chat 4 2nd December 2007 06:49 PM
Analog to Digital Converter (ADC) simonmada Electronic Projects Design/Ideas/Reviews 15 15th November 2007 04:31 AM
HS1101 capacitive humidity sensor; need nearly linear voltage to feed to a 1-wire ADC FirefighterBlu3 Electronic Projects Design/Ideas/Reviews 5 20th October 2007 12:06 AM
16F877 Timer0 Interrupt Affecting ADC sebana Micro Controllers 13 12th September 2007 10:43 AM
Comparator Ringing kieran.french Electronic Projects Design/Ideas/Reviews 8 21st February 2005 04:21 PM



All times are GMT. The time now is 01:30 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker