DaKandEKid said:
If you have a voltage of 2.1V and the forward voltage drop across the LED is 2.1V. Then don't you not need a current limiting resistor?
Yes, you DO need a current limiting resistor... to limit the current, not the voltage.
DaKandEKid said:
The LEDs aren't very bright as is so there isn't that much current going through the LEDs.
did you test the LED's by connecting them straight to a power supply (with a resistor, of course...). They might just be that dim. Or already damaged.
DaKandEKid said:
The problem with putting the PIC to sleep is i'm using the internal osc. and i want to be able to wake the PIC up from sleep using a external button.
What's the problem about that? What oscillator you use hasn't got anything to do with the sleep function.
DaKandEKid said:
With the WDT enabled and using the internal clock the power consumption isn't negligible.
Reucing power to absolute minimum using sleep requires some things for you to do before going to sleep. First, All outputs of the pic should be placed i such a state that they don't drive anything. If something external draws current from the pic it will continue to do so, even in sleep, you must turn it off first.
Then, all input pins should be eighter pulled high, or low, or, if possible, be configured as output. there should be no floating inputs. Sleep current can ge beyond 5mA if there are floating inputs!
Also consider that the watchog and brownout circuitry use quite a lot of current (100µA). if you want to keep it down to the advertised 5µA then you must turn them both off.
DaKandEKid said:
Is there a way to wake from sleep using an interrupt i didn't think there was?
Yes there is. It can wake up on almost any interrupt source, the watchdog, or a manual reset.
DaKandEKid said:
I suppose i could use add a xtal for the same cost as an SCR but then there is the issue of having to poll a button when you wake up and i didn't want the PIC to potentially miss the "ON" button press.
Like i said before, it hasn't got antything to do with the oscillator.