Skip to content

Commit 49c254e

Browse files
committed
.
1 parent d02cda6 commit 49c254e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_posts/2025-04-23-ATMega328PU_two_leds.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ Assuming an ATmega328P running at 16 MHz all the time:
145145

146146
(Capacitors and Crystal Net consumption: 0 mA (passive components))
147147

148-
We assumed 20 mA for the initial LED resistor design, but the commercial resistors give a slightly different real consumption. The LEDs are connected with resistors to limit the current, so we will estimate their current using Ohm's law: Red (with 47 Ω) Current = (5V - 2V) / 47Ω ≈ 64 mA, Green (with 82 Ω) Current = (5V - 2.2V) / 82Ω ≈ 34 mA. Total LEDs: ~98 mA when both are on.
148+
We assumed 20 mA for the initial LED resistor design, but the commercial resistors give a slightly different real consumption. The LEDs are connected with resistors to limit the current, so we will estimate their current using Ohm's law, assuming both can be on, to slightly oversize the required capacity of a posible battery.
149149

150150
| Component | Condition | Calculation | Current (mA) |
151151
|-------------------|----------------------------|---------------------------------------------------------------------|--------------|

0 commit comments

Comments
 (0)