Project showcase

Old School 8 Bit Color © LGPL

Using one byte to hold all the color data for a single RGB LED.

  • 678 views
  • 0 comments
  • 2 respects

Components and supplies

Apps and online services

About this project

8-Bit RGB LED Movie

A weekend project exploring old school graphics and one way to have all the color information for one "pixel" or RGB LED held within one byte. This system is an example of an 8-bit truecolor setup which provides 256, unique color intensity options for the pixel. Three bits to control the red (R) portion of the LED, three bits to control the green (G) portion of the LED, and two bits to control the blue (B) portion of the LED as shown in the Table 1 below.

Notice that the red and green have 8 different options also known as 2^3 if you are familiar with how bits work. However blue only has 4 different options or 2^2. This is a limitation of only using 1 byte to hold all of the color information of one pixel, even so there still are 256 options to choose from.

The Arduino's digital outputs were used to control the RGB LED. In order to change the intensity of each portion of the RGB LED, each individual color of the light was turned on and off for different amounts of a complete cycle. Essentially Pulse Width Modulation (PWM) was used to control the color.

To make the different levels of the colors, I simply changed how long each portion of the RGB LED was on. For example. If I wanted a teal (bluish-green) color I would turn the blue on half way and the green on half way.

A timing interrupt was used to control the RGB LED while the main loop of the code just read the DIP switch values. Instead of using digital read and write, I chose to read and write directly to the Arduino's port which is a bit quicker but more complicated if you aren't familiar micro controllers.

Thanks for checking out my project. Feel free leave comments and questions.

Code

8 Bit RGB LED Code

Schematics

Circuit Diagram
Diagram 2 ccngameaas
Layout Diagram
Diagram 1 rm4qml94sr

Comments

Similar projects you might like

Color Sensor Prototype: Detect Color Name from Objects

Project tutorial by moretticb

  • 3,036 views
  • 4 comments
  • 23 respects

Motion Controlled Color Changer!

Project tutorial by Arduino “having11” Guy

  • 9,441 views
  • 17 comments
  • 14 respects

Arduino RGB Color Mixer

Project tutorial by FIELDING

  • 3,199 views
  • 1 comment
  • 11 respects

LED Color Sequencer

Project tutorial by Team thefantasticode.Group

  • 5,802 views
  • 10 comments
  • 21 respects

Using SMS messages to control LED color

Project tutorial by SteiniBrodda

  • 7,947 views
  • 0 comments
  • 6 respects

PIR Automated Intelligent Zebra Crossing

Project showcase by Adersh B

  • 2,266 views
  • 1 comment
  • 5 respects
Add projectSign up / Login