How to interface RGB LED strip with evive using PictoBlox

About This Tutorial
This tutorial discusses what are RGB LED strips, how to interface them with Evive in PictoBlox with the help of a sample circuit.
Tutorial Info

Components Required

ImageComponentQuantityAvailable in Kit
evive1
PictoBlox1
USB A-B Cable1
Male to Male Jumper Cable 20cm3
Multi Colour RGB Lights10
  • None

Introduction

RGB stands for Red, Green, and Blue.  It is a dynamic light colour system where the three primary colours produce over 16 million hues of light for a limitless possibility of shades of colour of lights. The variable light production capability of the LED light is made possible with the RGB lighting system where the combination of red, blue and green could produce different colour depending on the angle of the wavelength of the spectrum. LED Lights using the RGB lighting system means the LED light has the higher capability for producing wide-ranging light colours giving the possibility of the RGB to produce more colours than is possible with 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 last one for digital input.

How to interface LED strip

Wiring

  1. Firstly, you have to solder three male jumpers on each pin.
  2. connect +5v jumper to the 5v power supply and GND jumper to the ground pin.
  3. connect Din jumper to digital pin no. 7 on evive as shown below.
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-

Script

  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 Lighing 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 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 colour you want in RGB colour code and set a delay that 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 that 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 that for how much time you want the effect.
  2. Upload the script in evive.

Rainbow

Sample Project:

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

This helped
This didn't help
Share this Tutorial
Share on facebook
Facebook
Share on twitter
Twitter
Share on google
Google+
Share on pinterest
Pinterest
Share on reddit
Reddit
Share on print
Print
Related Projects & Tutorials
All articles loaded
No more articles to load
Featured Projects
Robotic-Arm-Bartender
DIY Robotic Arm Bartender

This project will show you how to make your own robotic arm bartender that will make you a star host!

All articles loaded
No more articles to load
Close Menu
×

Cart