Interface RGB LED Strip with evive using PictoBlox

Description
Learn how to use RGB LED strips to create colorful lighting designs with easy-to-follow step-by-step instructions.

Introduction

RGB stands for Red, Green, and Blue. It is a dynamic light color system that produces over 16 million hues of light, allowing for limitless shades and colours. LED lights using the RGB system have greater capabilities for producing wide-ranging light colors than other lighting systems.

Types of LED strips

There are two basic kinds of LED strips, the “analog” kind and “digital” kind. Analog-type strips have all the LEDs connected in parallel and so it acts like one huge tri-colour LED; you can set the entire strip to any colour you want, but you can’t control the individual LED’s colours. They are very very easy to use and fairly inexpensive.

The Digital-type strips work in a different way. They have a chip for each LED, to use the strip you have to send digitally coded data to the chips. However, this means you can control each LED individually! Because of the extra complexity of the chip, they are more expensive.

We will be using digital LED strip here.

The LED strips have 3 pins as you can see above. One is for +5V, one is for Ground, and the last one is for digital input.

How to interface LED strip

  1. Firstly, you have to solder three male jumpers on each pin.
  2. connect +5v jumper to the 5v power supply and the GND jumper to the ground pin.
  3. connect Din jumper to digital pin no. 7 on evive as shown below.
Note:  Please ensure that the wires are soldered on the Din side, not on Dout side. You can also check with an arrow drawn on the LED strip.

Below is the complete circuit diagram:

PictoBlox Code

  1. Connect evive to your laptop/PC, and select the appropriate port.
  2. Open PictoBlox; if not yet installed, please refer to the Getting Started with PictoBlox tutorial HERE.
  3. If it is already installed and open and working on a project, save that project. Then, click on New.
  4. First, let’s interface evive to the PictoBlox.
  5. In PictoBlox, go to the toolbar and click on the Board menu. Select evive.
  6. Go to the evive palette and drag and drop the when evive starts up block in the scripting area.
  7. Add Lighting extension from the extension library by clicking on the purple-coloured Add Extension button in the bottom-left corner of the window.
  8. Drag and drop the initialize RGB strip () block in the scripting area from Lighting extension.
  9. From the Control palette, drag and drop the forever block below the initialize RGB strip () block.

Now you can give different lighting effects to your LED

Controlling a Single LED

  1. Drag and drop the set RGB strip () block in the scripting area from the Lightning extension inside forever block. Now you can give the LED number you want to control and what colour you want in the RGB colour code.
  2. Now, drag and drop Show RGB strips ().
  3. Upload the script in evive.

Controlling a single LED

Controlling Full strip with one Colour

  1. Drag and drop the Color Wipe LED strip () block in the scripting area from the Lighting extension inside forever block. Now you can give what color you want in RGB color code and set a delay for how much time you want the effect.
  2. Now, drag and drop show RGB strips ().
  3. Upload the script in evive.Controlling full strip with one color

Theater Chase Effect

  1. Drag and drop the Color Wipe RGB strip () block in the scripting area from the Lighting extension inside forever block. And from the drop-down select Theater Chase. Now you can give what colour you want in RGB colour code and set a delay for how much time you want the effect.
  2. Upload the script in evive.

Theater Chase effect

Rainbow Effect

  1. Drag and drop the Rainbow LED strip () block in the scripting area from the Lighting extension inside forever block. You have to set a delay for how much time you want the effect.
  2. Upload the script in evive.

Rainbow

Sample Project

Let’s have a look, at where we can make use of the above tutorial: https://thestempedia.com/project/diy-unique-christmas-tree/

Conclusion

In conclusion, the RGB LED strip is a versatile and powerful way to create colorful, exciting lighting designs. With the RGB LED strip, you can create a variety of lighting effects, from single colors to complex animations. By using PictoBlox, controlling the LED strip is easy and straightforward. With this tutorial, you can now apply the RGB LED strip to create beautiful lighting designs.

Table of Contents