![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #1 |
|
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...
| |
| |
| | #2 |
|
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.
| |
| |
| | #3 |
|
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 | |
| |
|
| 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 |