Download Print this page
Seeed Grove Manual
Hide thumbs Also See for Grove:

Advertisement

Quick Links

7/23/22, 9:41 PM
Grove - Chainable RGB LED is based on P9813 chip which is a full-
color LED driver. It provides 3 constant-current drivers as well as
modulated output of 256 shades of gray. It communicates with a
MCU using 2-wire transmission (Data and Clock). This 2-wire
transmission can be used to cascade additional Grove - Chainable
RGB LED modules. The built-in clock regeneration enhances the
transmission distance. This Grove module is suitable for any
colorful LED based projects.
https://wiki.seeedstudio.com/Grove-Chainable_RGB_LED/
Grove - Chainable RGB LED - Seeed Wiki
1/29

Advertisement

loading
Need help?

Need help?

Do you have a question about the Grove and is the answer not in the manual?

Questions and answers

Summary of Contents for Seeed Grove

  • Page 1 7/23/22, 9:41 PM Grove - Chainable RGB LED - Seeed Wiki Grove - Chainable RGB LED is based on P9813 chip which is a full- color LED driver. It provides 3 constant-current drivers as well as modulated output of 256 shades of gray. It communicates with a MCU using 2-wire transmission (Data and Clock).
  • Page 2: Speci Cations

    7/23/22, 9:41 PM Grove - Chainable RGB LED - Seeed Wiki Version Revision Descriptions Release How to Buy Initial public May 5, release 2011 [https://www.seeedstudio.com/ (beta) Chainable-RGB-LED-p-850.html] Replace Apr 19, P9813S16 2016 [https://www.seeedstudio.com/ with %E2%80%93-Chainable-RGB-Le P9813S14 p-2903.html] and change Grove...
  • Page 3: Platforms Supported

    Play with Arduino [/Arduino] When you get Grove - Chainble RGB LED, you may think how I can light up it. Now we will show you this demo: all colors of RGB cycles in an uniform way. To complete this demo, you can use one or more Grove - Chainable RGB LED.
  • Page 4 7/23/22, 9:41 PM Grove - Chainable RGB LED - Seeed Wiki Download Chainable LED Library [https://github.com/pjpmarques/ChainableLED] and install it to Arduino Library. There is the course about how to install Arduino Library [/How_to_install_Arduino_Library] in wiki page. Open the example CycleThroughColors by the path:File- >Examples->ChainableLED_master and upload it to Seeeduino.
  • Page 5 [https://github.com/pjpmarques/ChainableLED], we have designed this demo: RGB color varies with the temperature measured by Grove - temperature. The RGB color vary from green to red when the temperature is from 25 to 32. The test code is shown below. Do it if you are interested in it.
  • Page 6 7/23/22, 9:41 PM Grove - Chainable RGB LED - Seeed Wiki return sum>>5; float getTemp() // get temperature float temperature = 0.0; float resistance = 0.0; B = 3975; //B value of the thermistor a = getAnalog(); resistance = (float)(1023-a)*10000/a;...
  • Page 7 Play with Codecraft Hardware Step 1. Connect Grove - Chainanle RGB LED to port D7 in a Base Shield Step 2. Plug the Base Shield to your Seeeduino/Arduino. Step 3. Link Seeeduino/Arduino to your PC via an USB cable.
  • Page 8 7/23/22, 9:41 PM Grove - Chainable RGB LED - Seeed Wiki Upload the program to your Arduino/Seeeduino.  Success When the code nishes uploaded, you will see the LED fade in and fade out. Play with Raspberry Pi  Attention If you are using Raspberry Pi with Raspberrypi OS >= Bullseye, you have to...
  • Page 9 7/23/22, 9:41 PM Grove - Chainable RGB LED - Seeed Wiki Plug the sensor to grovepi socket D7 by using a grove cable. 4.Navigate to the demos' directory:   yourpath/GrovePi/Software/Python/ To see the code   nano grove_chainable_rgb_led.py "Ctrl+x"...
  • Page 10 7/23/22, 9:41 PM Grove - Chainable RGB LED - Seeed Wiki testColorGreen 0b010 #00FF00 testColorCyan 0b011 #00FFFF testColorRed 0b100 #FF0000 testColorMagenta 0b101 #FF00FF testColorYellow 0b110 #FFFF00 testColorWhite 0b111 #FFFFFF # patterns used in grovepi.chainableRgbLed_patte thisLedOnly allLedsExceptThis thisLedAndInwards thisLedAndOutwards try: print "Test 1) Initialise"...
  • Page 11 7/23/22, 9:41 PM Grove - Chainable RGB LED - Seeed Wiki grovepi.chainableRgbLed_test(pin, numleds, t time.sleep(.5) print "Test 2a) Test Patterns - black" # test pattern 0 - black (all off) grovepi.chainableRgbLed_test(pin, numleds, t time.sleep(1) print "Test 2b) Test Patterns - blue"...
  • Page 12 7/23/22, 9:41 PM Grove - Chainable RGB LED - Seeed Wiki # test pattern 5 magenta grovepi.chainableRgbLed_test(pin, numleds, t time.sleep(1) print "Test 2g) Test Patterns - yellow" # test pattern 6 yellow grovepi.chainableRgbLed_test(pin, numleds, t time.sleep(1) print "Test 2h) Test Patterns - white"...
  • Page 13 7/23/22, 9:41 PM Grove - Chainable RGB LED - Seeed Wiki grovepi.chainableRgbLed_test(pin, numleds, t time.sleep(.5) print "Test 3b) Set using pattern - all led # change color to blue grovepi.storeColor(0,0,255) time.sleep(.5) # set all leds except for 3 to blue grovepi.chainableRgbLed_pattern(pin, allLed...
  • Page 14 7/23/22, 9:41 PM Grove - Chainable RGB LED - Seeed Wiki # change color to green grovepi.storeColor(0,255,0) time.sleep(.5) # set leds 7-10 to green grovepi.chainableRgbLed_pattern(pin, thisLed time.sleep(.5) # pause so you can see what happened time.sleep(2) # reset (all off) grovepi.chainableRgbLed_test(pin, numleds, t...
  • Page 15 7/23/22, 9:41 PM Grove - Chainable RGB LED - Seeed Wiki grovepi.chainableRgbLed_test(pin, numleds, t time.sleep(.5) print "Test 4b) Set using modulo - every 2" # change color to red grovepi.storeColor(255,0,0) time.sleep(.5) # set every 2nd led to red grovepi.chainableRgbLed_modulo(pin, 0, 2) time.sleep(.5)
  • Page 16 7/23/22, 9:41 PM Grove - Chainable RGB LED - Seeed Wiki # set every 3nd led to red grovepi.chainableRgbLed_modulo(pin, 0, 3) time.sleep(.5) # change color to green grovepi.storeColor(0,255,0) time.sleep(.5) # set every 3nd led to green, offset 1 grovepi.chainableRgbLed_modulo(pin, 1, 3) time.sleep(.5)
  • Page 17 7/23/22, 9:41 PM Grove - Chainable RGB LED - Seeed Wiki print "Test 4f) Set using modulo - every 3, # change color to magenta grovepi.storeColor(255,0,255) time.sleep(.5) # set every 4nd led to magenta grovepi.chainableRgbLed_modulo(pin, 2, 3) time.sleep(.5) # pause so you can see what happened time.sleep(2)
  • Page 18 7/23/22, 9:41 PM Grove - Chainable RGB LED - Seeed Wiki grovepi.storeColor(255,0,0) time.sleep(.5) # set leds 4-10 to red grovepi.write_i2c_block(0x04,[95,pin,7,1]) time.sleep(.5) except KeyboardInterrupt: # reset (all off) grovepi.chainableRgbLed_test(pin, numleds, t break except IOError: print "Error" Notice that there's something you have to concern of: ...
  • Page 19 BeagleBone is a good start. If this is your rst time to use Cloud9 IDE, please follow this link [/BeagleBone_Green]. Step1: Set the Grove - UART socket as a Grove - GPIO Socket, just follow this link [https://www.seeedstudio.com/recipe/362-how-to- use-the-grove-uart-port-as-a-gpio-on-bbg.html].
  • Page 20 7/23/22, 9:41 PM Grove - Chainable RGB LED - Seeed Wiki Step3: Copy and paste the following code into the new tab   import time import Adafruit_BBIO.GPIO as GPIO CLK_PIN = "P9_22" DATA_PIN = "P9_21" NUMBER_OF_LEDS = class ChainableLED(): def __init__(self, clk_pin, data_pin, number_of_led self.__clk_pin = clk_pin...
  • Page 21 7/23/22, 9:41 PM Grove - Chainable RGB LED - Seeed Wiki GPIO.output(self.__clk_pin, GPIO.LOW) time.sleep(0.00002) GPIO.output(self.__clk_pin, GPIO.HIGH) time.sleep(0.00002) def sendByte(self, b): "Send one bit at a time, starting with the MSB" for i in range(8): # If MSB is 1, write one and clock it, else if (b &...
  • Page 22 Note: Use P9_22(UART2_RXD) and P9_21(UART2_TXD) as GPI # Connect the Grove - Chainable RGB LED to UART Grove po if __name__ == "__main__": rgb_led = ChainableLED(CLK_PIN, DATA_PIN, NUMBER_OF_ while True: # The first parameter: NUMBER_OF_LEDS - 1; Other rgb_led.setColorRGB(0, 255, 0, 0)
  • Page 23 Step4: Save the le by clicking the disk icon and giving the le a name with the .py extension. Step5: Connect Grove Chainable RGB LED to Grove UART socket on BBG. Step6: Run the code. You'll nd the RGB LED is changing color every 2 seconds.
  • Page 24 7/23/22, 9:41 PM Grove - Chainable RGB LED - Seeed Wiki Chainable RGB LED eagle le V2 https://wiki.seeedstudio.com/Grove-Chainable_RGB_LED/ 24/29...
  • Page 25 7/23/22, 9:41 PM Grove - Chainable RGB LED - Seeed Wiki Resources [Library]Chainable RGB LED Library for the P9813 [https://github.com/pjpmarques/ChainableLED] [Library]Github repository for Chainable RGB LED Library (new) [https://github.com/Seeed-Studio/Grove_Chainable_RGB_LED] [Library] CodeCraft Code [https:// les.seeedstudio.com/wiki/Grove- https://wiki.seeedstudio.com/Grove-Chainable_RGB_LED/ 25/29...
  • Page 26 [https:// les.seeedstudio.com/wiki/Grove- Chainable_RGB_LED/res/Chainable_RGB_LED_eagle_ le%20V1. zip] [Eagle]Chainable RGB LED eagle le V2 [https:// les.seeedstudio.com/wiki/Grove- Chainable_RGB_LED/res/Grove%20- %20Chainable%20RGB%20LED%20v2.0.zip] [Datasheet]P9813 Datasheet [https:// les.seeedstudio.com/wiki/Grove- Chainable_RGB_LED/res/P9813_datasheet.pdf] Projects Grove - Introduction to Chainable LED: This project shows how to connect a chainable LED to Grove. https://wiki.seeedstudio.com/Grove-Chainable_RGB_LED/ 26/29...
  • Page 27 7/23/22, 9:41 PM Grove - Chainable RGB LED - Seeed Wiki (https://www.hackster.io/ingo-lohs/grove- introduction-to-chainable-led-d668b7) Ch i bl LED DIY a device for explaining RGB color model (https://www.hackster.io/kevin-lee2/diy- a-device-for-explaining-rgb-color- model-496cbc) l i i https://wiki.seeedstudio.com/Grove-Chainable_RGB_LED/ 27/29...
  • Page 28: Tech Support

    7/23/22, 9:41 PM Grove - Chainable RGB LED - Seeed Wiki Security Access Using Seeeduino Lotus When you knock on the door or close to the door, the door will open automatically. (https://www.hackster.io/limanchen/secu access-using-seeeduino-lotus-7eb90f) Security Access Using Seeeduino Lotus (https://www hackster io/limanchen/security...
  • Page 29 7/23/22, 9:41 PM Grove - Chainable RGB LED - Seeed Wiki utm_source=wiki&utm_medium=wikibanner&utm_campaign=newpr oducts] https://wiki.seeedstudio.com/Grove-Chainable_RGB_LED/ 29/29...