Electronics Bash – Arduino #7- Text Displays and Multicolor LEDs

In this stream, we’ll be looking at:

  • Driving Arduino text displays based around the popular H44780 display IC
  • Driving multicolor LEDs (bi-color, RGB) and strategies for managing and transitioning color.

This is the space where I’ll be posting code samples and circuit layouts sometime in advance of the stream, for those who want to follow along more directly. You can expect the code and formatting here to change up to a couple hours before the stream as the plan for the evening comes together.

LED Code

RGB_Set.ino

A basic bit of code to send Red, Green, and Blue values to an RGB LED.

Show Code

RGB_Color Wheel.ino

Contains a basic function to map an angle between 0 and 360 degrees on the color-wheel to an output value on an RGB LED.

Show Code

RGB_HSV.ino

Demonstrates an algorithm to map Hue/Saturation/Value colors to RGB ones

Show Code

Bicolor_Step.ino

Steps back and forth between the two colors in a (multi-lead) bicolor LED.

Show Code

Bicolor_Fade

Fades back and forth between the two colors of a (multi-lead) bi-color LED.

Show Code

LCD Display Code

LCD_HelloWorld.ino

Initializes our LCD display and prints a simple message and timeclock on it. The HelloWorld example from the Arduino IDE.

Show Code

LCD_MockInterface.ino

A fake display for the RPM of a motor – we generate the data randomly, but could easily be adapted to show the value from a sensor or potentiometer.

Show Code

LCD_CustomChar_Intro.ino

Introduces the idea of adding custom characters to the LCD, and doing some fun things with them.

Show Code

LCD_Character_Sets

Rolls through all the printable characters in a given LCD module, to help identify which kind of module/font you have.

Show Code

LCD_ProgessBarNums.ino

A simple progress bar graphic using 5 custom symbols to fill up a line from left to right.

Show Code

LCD_WaveDemo.ino

Creates a wave which rolls back and forth across the display using 8 characters.

Show Code

LCD_RGB.ino

Combining our two topics for tonight, we’ll use the LCD to show us the values that are being output to our RGB LED.

Show Code