Nothing Special   »   [go: up one dir, main page]

RYG LED using GPIO output

The term “RYG LED” typically refers to a tri-color LED that can emit three different colors: Red (R), Yellow (Y), and Green (G). These types of LEDs are commonly used in traffic signals, status indicators, visual feedback displays and various electronic devices where multiple colors need to be displayed. Some RYG LEDs can be used with PWM to control the brightness of each color independently, allowing for color mixing effects. By learning how to control an RYG LED with an ARIES board, you can add colorful visual cues to your electronics projects and create captivating light effects.

COMPONENTS NEEDED:

  • ARIES v2 Microcontroller
  • RYG LED
  • Jumper wires

Note: All of the following boards can be used for this project

Connections:

RYG LEDARIES V2 board
GNDGND
RGPIO-0
YGPIO-1
GGPIO-2
Connection pins of RYG LED Sensor Module & ARIES v2.0 Board

Now, for powering up the ARIES v2 board via the USB port of a Laptop/Desktop/PC and burning the code into the ARIES v2 board, we have to use a micro USB type B to USB type A cable. The cable should be connected to UART-0 port of the ARIES v2 board, and the Laptop/Desktop/PC should be preinstalled with Arduino IDE and VEGA ARIES boards of latest version.

Circuit Diagram:

Connection Diagram for RYG LED
Connection Diagram for RYG LED

Procedure:

Open Arduino IDE

Go to Tools -> Board -> VEGA Processor ARIES Boards -> Select ARIES v2

Go to Tools -> Programmer -> Select VEGA XMODEM

Connect the ARIES v2 board to PC

Go to Tools -> Port -> Select the appropriate port

ARIES board selection from Tool Menu
ARIES board selection from Tool Menu

Open File -> Examples -> Examples for ARIES v2 -> GPIO -> Open RYG_LED_GPIO example

RYG LED example

Compile and Upload the code 

Output

Once you’ve completed the code, upload it to your ARIES v2.0 board using the Arduino IDE. Watch as the RYG LED comes to life and showing different color patterns you’ve programmed. The Red, Yellow and Green LEDs will be blinking at 1 second interval respectively, which you can observe.

RYG LED using GPIO output
RYG LED using GPIO output
RYG LED using GPIO demo

By mydhily

Leave a Reply

Your email address will not be published. Required fields are marked *