![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #16 |
|
Just looking for a couple set voltages around 4.3 and 4.7 volts for this project. However; I'm also looking for a design that would allow me to use this same design in other projects for dimming leds where PWM is not possible.
| |
| |
| | #17 | |
| Quote:
It's obvious to me that there should be a resistor on the emitter and your output pulled from across it, just drawn wrong. Mike. | ||
| |
| | #18 |
|
I used a 12f508 with resistor ladder by setting any combination of the four pins high I could go from 0 to 5 volts makes a real good led controller | |
| |
| | #19 |
| | |
| |
| | #20 |
| I got the idea from here My PIC Projects read down to the sine wave I did it for the voltage not a sine wave. so i'm just setting the port to get what voltage I need. You get 16 possible resistor combination's | |
| |
| | #21 |
|
superflux, You did not understand my last post about driving a LED. You do not have one output =1 and the other =0! The pins have three states. 1, 0, Z (z=input) pin1, pin2, current 0, 0, 10mA Z, 0, 8mA 0, Z, 2mA Z, Z, 0mA | |
| |
| | #22 | |
| Quote:
I was simply asking if the when 2 or more PORTs are set to OUTPUT and are connected and one of them is "1" and the other is "0", does that "0" represent 'ground' and if so, can I assume that it will ground out the voltage sent from the other connected PORT that is set to "1" (high)? I guess what I'm asking is when an OUTPUT port is set to "0" is that GROUND or just 0 volts? Last edited by superflux; 11th October 2009 at 03:32 AM. | ||
| |
| | #23 |
|
PWM is a much better way to drive an LED, why wouldn't you want to use it?
| |
| |
| | #24 |
|
0=0 volts, 1=supply voltage, assuming the current is low. Z= any voltage from 0 to supply and no current.
| |
| |
| | #25 | |
| Quote:
I use PWM for many other projects, but I since I need that longer sample time, I don't want to run into issues with it. Is the R2R ladder not a good solution in your opinion? | ||
| |
| | #26 | |
| Quote:
You have no duty to worry about. I've done some things with leds and R2R make the leds look like there on fire I couldn't get it to work with pwm Last edited by be80be; 11th October 2009 at 12:31 PM. | ||
| |
| | #27 |
|
That blip can be fixed with software.
| |
| |
| | #28 |
|
All blip can be fixed with software. Some time down the road if you don't run out of time lol
| |
| |
| | #29 |
|
I can probably program the LED PWM in the ADC delay, but if the R2R ladder works just as well, then why bother with the extensive programming?
| |
| |
| | #30 | |
| Quote:
What's in your code LOL | ||
| |
|
| Tags |
| outputting, pic, variable, voltages |
| Thread Tools | |
| Display Modes | |
| |
Similar | ||||
| Title | Starter | Forum | Replies | Latest |
| Driving Higher Voltages from PIC 16F88 | Tom81 | Micro Controllers | 9 | 18th August 2009 05:49 AM |
| My OpAmp is only outputting 1.6V - what am I doing wrong? | PowerJunkie | Electronic Projects Design/Ideas/Reviews | 15 | 17th April 2009 04:43 PM |
| 16f877 pic pin voltages when data is writing | uditha33 | Micro Controllers | 2 | 6th June 2007 04:26 AM |
| outputting BCD values on a basic stamp | German1981 | Micro Controllers | 2 | 12th April 2004 03:58 PM |
| Reading/outputting voltage | magna | Micro Controllers | 10 | 4th March 2004 05:42 PM |