Change of RGB LED to cheaper one

ledraspberry pirgb

Right now I'm reading Raspberry Pi Cookbook and I would like to create the program described in the book. Because I'm beginner and I would like to buy more (cheaper) RGB LEDs at once and also I will get them faster than the ones from link in book, so I need some help. The author of the book wrote that along of Diffused LED – RGB 10mm from Sparkfun I need three 1k ohm resistors. The problem is that I would like to buy RGB LEDs from DX or Banggood which are also smaller, but I don't know if I can use them with my Raspberry Pi and 1k ohm resistors because there are some differences between voltages looking at Sparkfun and DX/Banggood.

Basically I just need to know if I can use RGB LEDs from DX or Banggood with 1k ohm resistors and if there will not be any problem because of different voltages?

Best Answer

You should be fine with just about any small LEDs you get. According to the Raspberry Pi GPIO guide, they put out 3.3V when turned on, which is more than enough for the other LEDs you linked to. As long as you don't forget to put the resistors in series with the LEDs to limit the current, they should work just fine.

There will be a difference in appearance since the Sparkfun LEDs are diffused plastic and the other ones you linked are clear, but that's a matter of your preferences. They should light up without a problem.