ibmtjbot / tjbot

IBM TJBot
https://ibmtjbot.github.io
Apache License 2.0
481 stars 282 forks source link

Using normal RGB Led #131

Closed gqferreira closed 4 years ago

gqferreira commented 5 years ago

How to use common RGB LED? Do I need resistors? What is the scheme for soldering and bonding in the GPIO? I can not find NeoPixel to buy.

Thank you!

jweisz commented 5 years ago

The Neopixel is listed as in stock on Adafruit: https://www.adafruit.com/product/1734

Using LEDs other than the Neopixel is not officially supported, but I'm sure it's possible to do. I don't have good guidance on how, though, since I've only used the Neopixel.

gqferreira commented 5 years ago

The Neopixel is listed as in stock on Adafruit: https://www.adafruit.com/product/1734

Using LEDs other than the Neopixel is not officially supported, but I'm sure it's possible to do. I don't have good guidance on how, though, since I've only used the Neopixel.

Yes but the shipping is the problem for me: image

mkhuthir commented 5 years ago

TJBOT library is using rpi_ws281x library to control color and brightness of the Neopixel LED through BCM 18 (PWM0) pin on Raspberry PI. You will not be able to use a simple LED or RGB LED to replace the Neopixel unless you change TJBOT library to support the LED or RGB LED. A LED will require one GPIO pin to control it, RGB LED will require 3 GPIO pins to control the three colors.

ws281x_vs_RGB

jweisz commented 4 years ago

Closing due to inactivity.