Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Help a newb please with wiring :)
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Help a newb please with wiring :)

by gentmat on Fri Feb 21, 2020 11:06 am

Image
i got this arduino nano and this led
FM-B2020RGBA-HG
you can check led details with this link
https://lcsc.com/product-detail/Light-E ... ef=jlc-SMT

I am learning Arduino but I'm stuck with real-life implementation . can you tell me how to wire these 2 components and why .
what resistors to use and also why ?
as coding im good enough but i am new to hardware and circuit and trying to learn .
thank you so muchhhhhh
Attachments
question.png
question.png (22.25 KiB) Viewed 51 times
gentmat
 
Posts: 4
Joined: Mon Jun 09, 2014 6:47 am

Re: Help a newb please with wiring :)

by kcl1s on Fri Feb 21, 2020 2:19 pm

The design is called common anode because all three anodes are connected in the LED. On all LEDs and diodes + is anode and - is cathode. You want pins that you can use analogWrite on to vary the 3 brightness values to give different colors so you need the pwm capable pins.
Anode -- 5v
B Cathode -- 220 ohm -- pwm pin
R Cathode -- 220 ohm -- pwm pin
G cathode -- 220 ohm -- pwm pin

Resistors can be changed out to even the brightness. Any value between 220 ohm and 1k ohm will work. The pwm pins on the Nano are 3, 5, 6, 9, 10, 11. The logic will be backward on the pins LOW = on, HIGH = off. Same for pwm use analogWrite(255-brightness) where brightness is 0 - 255.

Fellow hobbyist
Keith

kcl1s
 
Posts: 1511
Joined: Tue Aug 30, 2016 12:06 pm

Please be positive and constructive with your questions and comments.