A circuit to drive an LED while limiting current draw on Arduino GPIO pin.
Fiore, J., Embedded Controllers Using C and Arduino Laboratory Manual, ISBN13: 978-1796836226, version 2.3.5, April 18, 2020, p41.
Fiore suggests R1=300Ω and R2=20xR1. Circuit shown is with components on hand.
There are currently no comments