I’m designing my first ever circuit (design attached) after tinkering with esp8266 and WS8212b LED’s. The project is for a strip of WS8212b LED’s that will be mounted on the rear of a bicycle and controlled via some switches on the handlebars for:
- SPST On/Off switch
- LED indicator so I know lights are on
- SPDT switch for “mode” switching (Safety, Christmas, ?)
- SPDT switch for “activity” switching (e.g. Turn signals while in safety mode)
- above switches are mounted on handlebars in a custom 3D printed case
Inputs on NodeMCU:
- D4 - used for LED light strip data
- D1, D2, D6, D7 - used by SPDT switches to control lights via code
The bread board will be a perma-proto from adafruit and located at rear of bike near LED strip in the “side bags”.
- I’m pushing 3.3V out to the handlebar switches - should I be pushing 5V instead - might simplify the wiring a little but any other reason to do that? I’m also assuming that the nodemcu is grounded internally for 5V and 3.3V?
- The On/Off LED indicator on the handlebars has a forward voltate of 2.2V - I understand I need a resistor of 220-1000ohm - is the resistor location in the circuit correct? Could I move it to the breadboard (where I have more room) and it will still work? If so, would it just go to the left of the existing resistors on the breadboard on row 29?
- I’ve read about the built in resistors on arduino but couldnt get them to work via INPUT_PULLUP on any of my SPDT inputs (D1, D2, D6, D7) without the 10k resistors in place on row 30-33 in the diagram which I thought was the point - can I not use the built in resistors in this setup and I need the 10k resistors as per the diagram?
Thanks in advance for the help - have made it this far without having to post and just by reading a ton