Lab 1b- RGB LED Using RedBoard and Arduino IDE
Lab 1b- RGB LED Using RedBoard and Arduino IDE
Topology
Objectives
Part 1: Set up the RGB circuit on the breadboard
• Connect the circuits between the breadboard and RedBoard
• Load and run the sketch in the Arduino IDE
Background / Scenario
Arduino, with its open source hardware prototyping platform, started a revolution in the maker community.
Access to electronics, control, and programming has dramatically simplified and revolutionized how “smart
devices” are built. The RedBoard included in the SparkFun Inventors Kit is an Arduino compatible board that
can be used with the Arduino IDE installed previously. In this lab, you will learn to use the RedBoard and
Arduino IDE to change the colors of an RGB LED.
Inside of the SparkFun Inventors Kit you will find all the resources needed to start to prototype smart things.
Arduino boards are able to read inputs - a light on a sensor, a finger on a button, or a Twitter message - and
turn it into an output - activating a motor, turning on an LED, or publishing something online. All this is defined
by a set of instructions programmed through the Arduino Software (Arduino IDE).
Required Resources
• SparkFun Inventors Kit or equivalent components
• PC configured with Arduino drivers and Arduino software
• SparkFun SIK Guide Code example files
© 2025 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 1 of 5
Lab – Control an RGB LED with Arduino Code
© 2025 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 2 of 5
Lab – Control an RGB LED with Arduino Code
© 2025 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 3 of 5
Lab – Control an RGB LED with Arduino Code
c. Make sure the RedBoard is connected to the PC with the USB cable. Click the Upload icon to compile
and upload the sketch to the RedBoard. After this step, the LED should continuously change colors
© 2025 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 4 of 5
Lab – Control an RGB LED with Arduino Code
between red, blue, green and many shades in between. If the RGB LED is not changing colors make sure
all connections have been made as outlined and that every lead is making a good connection with the
breadboard.
Note: The only way to stop the color change cycle is to remove power from the RedBoard. Until the
RedBoard receives new code, this code will continue to loop as long as there is power to the board.
Reflection
Which variable setting would you change to increase or decrease the length of time it takes for the RBG LED
to cycle through its color changes? Make changes to the value of this variable and upload the change to the
red to verify your answer.
______________________________________________________________________________________
______________________________________________________________________________________
© 2025 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 5 of 5