3.4v led 20ma using nodemcu
Posted: Sat Mar 12, 2022 1:00 pm
I'm completely new to electronics, electricity and wiring but having a great time learning so here I am. I'm planning on using a 3mm 3v-3.4v 20ma led with a nodemcu esp8266 and 9v battery. It'll use a simple on/off switch so won't be powered for very long. I've setup a quick test with what I had using a 5mm led that came with an arduino kit using the usb for power and a 650ohm resister. I'm using pin 13 or D7 with the sketch I uploaded to pulse the led. Using a 9v battery the led on the breadboard was much brighter than when using the usb. My questions are: How do I get my 3-3.4v 20ma from pin 13? From everything that I've reviewed it won't output 20ma to an accessory like an led. Do I need something in between pin 13 and the led to get the current required? How many volts does the nodemcu use so I can calculate my resistors down the line to include the power being used by the nodemcu? I have a few things in addition to the led that I will be connecting to the 3.3v rails that require less current which I'll use resistors for. Any help would be appreciated. Thanks.