R,G,B LEDs. Three PWM outputs and three primary colors. Just screams to be made, doesn t it? 220 (red,red,brown) or 330 (orange,orange,brown)

Similar documents
Lesson 4 RGB LED. Overview. Component Required:

Arduino Lesson 3. RGB LEDs

Model Railway Animation: Part 1, LEDs - Expanded By David King

Light Emitting Diodes (LEDs)

Theory and Practice of Tangible User Interfaces. Thursday Week 3: Analog Input. week. Sensor 1: Potentiometers. Analog input

Character LCDs. Created by lady ada. Last updated on :47:43 AM UTC

Atari PICO Composite Mod Board Installation Instructions:

ECE Lab 5. MSI Circuits - Four-Bit Adder/Subtractor with Decimal Output

Ginger Bread House

MAKE AN RGB CONTROL KNOB.

COLOUR CHANGING USB LAMP KIT

Module 4: Traffic Signal Design Lesson 1: Traffic Signal (Arduino) Control System Laboratory Exercise Grade 6-8

CT-DMX-300 LED Controller

Experiment 0: Hello, micro:bit!

Smart Interface Components. Sketching in Hardware 2 24 June 2007 Tod E. Kurt

Lecture (04) Arduino Microcontroller Programming and interfacing. By: Dr. Ahmed ElShafee

ENGR 40M Project 3a: Building an LED Cube

C2 +5V. (14) Vdd (+5 Vdc) (13) OSC1/A7 1.2K (12) 1.2K (11) 1.2K (10) U1 16F628 16F628A 1.2K (1) A2 1.2K (8) 1.2K (7) 1.2K. (Gnd) Vss (5) (6) 1.

ENGR 40M Project 3b: Programming the LED cube

The Infinity Portal Craig A. Lindley 03/16/2011

Lesson Sequence: S4A (Scratch for Arduino)

Part (A) Controlling 7-Segment Displays with Pushbuttons. Part (B) Controlling 7-Segment Displays with the PIC

This module senses temperature and humidity. Output: Temperature and humidity display on serial monitor.

EP486 Microcontroller Applications

Lab Using The Multimeter And The Trainer

uresearch GRAVITECH.US GRAVITECH GROUP Copyright 2007 MicroResearch GRAVITECH GROUP

The Serial Port is Dead! Long Live the Serial Port! USB Serial Port Breadboard Experiments with the FTDI FT232R

Lab 7: Soldering - Traffic Light Controller ReadMeFirst

LT-300 LED Controller

LED Array Tutorial. This guide explains how to set up and operate the LED arrays that can be used for your. Internal Structure of LED Array

Preface. About SunFounder. About Super Kit. Free Support

Touch Panel RGB LED Controller Part No. touch-panel-rgb

DMC550 Technical Reference

Objectives: Learn how LED displays work Be able to output your name on the display

Device: LDP This document Version: 1.1. Date: July Description: 64x16 1R1G LED Display Panel

Informatics Enlightened Station 1 Sunflower

Studio DMX Decoders. Part numbers: DMX , DMX , DMX

QUIZ BUZZER KIT TEACHING RESOURCES. Version 2.0 WHO ANSWERED FIRST? FIND OUT WITH THIS

SEP Bright Pi v1.0 Assembly Instructions

Lab 7: Soldering - Traffic Light Controller ReadMeFirst

PhidgetTextLCD with 8/8/8

Laboratory 11. Required Components: Objectives. Introduction. Digital Displays and Logic (modified from lab text by Alciatore)

Simulating Life on Your Layout

DIY Guide - Building Franky v1.1, the SEGA Audio and Videocard for MSX

Rfid Based Attendance System

16 Stage Bi-Directional LED Sequencer

LED - TYPES. The main types of LEDs are miniature, high power devices and custom designs

Christmas LED Snowflake Project

Lab #6: Combinational Circuits Design

Prototyping & Engineering Electronics Kits Magic Mandala Kit Guide

Azatrax Model Railroad Track Signal Control - Single Track

Preface. If you have any TECHNICAL questions, add a topic under FORUM section on our website and we'll reply as soon as possible.

LED Array Board.

Multi-Zone Programmable RGB ColorPlus LED Touch Controller (Remote Control) and RGB ColorPlus LED Touch Controller (Receiver)

Informatics Enlightened Station 2 Park distance control system

ELECTRONIC GAME KIT TEACHING RESOURCES. Version 2.0 BUILD YOUR OWN MEMORY & REACTIONS

University of Utah Electrical & Computer Engineering Department ECE1050/1060 Oscilloscope

Bruce Chubb s Computer/Model Railroad Interface (C/MRI) 101- The Basics

WiFi Time Provider v1 for Arduino Nixie Clock Operating Instructions & Construction Manual

Bill of Materials: Magic Color PART NO

Arduino Nixie Clock Classic Rev4 and Rev5 All In One Modular Rev2

Published in A R DIGITECH

apple Service Source Apple Cinema HD Display 23" LCD (ADC) 11 April Apple Computer, Inc. All rights reserved.

1. Synopsis: 2. Description of the Circuit:

General Digital-designed Dual LED Driver PCB POWER INPUT Input on power connector is specified to accept 9 16 Vdc, nominal 12 Vdc.

Product Specifications

IS01BFRGB LCD SmartDisplay from NKK Switches Simple implementation featuring the ATmega88PA from Atmel Complete software solution

Lab Task 3. Soldering the PCB

Arduino Nixie Clock Modular Rev3

Quad 7-segment display board

apple Service Source Apple Studio Display 17" LCD (ADC) Updated 6 Decenber Apple Computer, Inc. All rights reserved.

LAMPS & INDICATOR LAMPS

Vorne Industries. 87/719 Analog Input Module User's Manual Industrial Drive Itasca, IL (630) Telefax (630)

Challenges in the design of a RGB LED display for indoor applications

Dust Sensor using GP Y

DIY ECU Checker Box (200SX CA18DET S13)

Bill of Materials: Super Simple Water Level Control PART NO

The University of Texas at Dallas Department of Computer Science CS 4141: Digital Systems Lab

SparkFun Inventor's Kit for micro:bit Experiment Guide

N3ZI Digital Dial Manual For kit with Backlit LCD Rev 4.00 Jan 2013 PCB

EEM Digital Systems II

Palestine Technical College. Engineering Professions Department. EEE Digital Logic Fundamentals. Experiment 2.

TECHNOLOGY WILL SAVE US: THE LUMIPHONE

Design of a Binary Number Lock (using schematic entry method) 1. Synopsis: 2. Description of the Circuit:

Single sensor setup with NIVEL210

8 PIN PIC PROGRAMMABLE BOARD (DEVELOPMENT BOARD & PROJECT BOARD)

Light Emitting Diodes

EE 367 Lab Part 1: Sequential Logic

INDICATOR LAMPS & LED REPLACEMENT LAMPS

NewScope-7A Operating Manual

Digital 1 Final Project Sequential Digital System - Slot Machine

Total solder points: 117 Difficulty level: beginner advanced. RGB Controller K8088 ILLUSTRATED ASSEMBLY MANUAL

The Micropython Microcontroller

Snail Fence InteleCell Deployment Guide

N3ZI Digital Dial Manual For kit with Serial LCD Rev 3.04 Aug 2012

Operating instructions Through-beam sensor. OJ51xx laser / / 2010

Chapter 4: Table of Contents. Decoders

Tube Cricket Build Guide

University of Utah Electrical Engineering Department EE1050/1060 Oscilloscope. Name:, Lab TA:

Section. amateur transceiver. The RFX75 does. repair and. the SPECIFICATIONS 3-3/8

Transcription:

R,G,B LEDs Three PWM outputs and three primary colors. Just screams to be made, doesn t it? Arduino board gnd pin 11 pin 10 pin 9 220 (red,red,brown) or 330 (orange,orange,brown) red green blue With RGB you can make any color (except black) Put back on the ProtoShield for this. Use either the 220 or 330 ohm resistors in your kit, if you don t have enough of one or the other I have lots more 220 if you need them

R,G,B LEDs Cut leads of resistors and LEDs to make for a more compact circuit. Also, less likely to short against itself.

RGB Color Fading dimmingleds Slow color fading and mixing Also outputs the current color values to the serial port This sketch is located in the handout. It just ramps up and down the red,green,& blue color values and writes them with analogwrite() from http://www.arduino.cc/en/tutorial/dimmingleds

Mood Light Diffuser made from piece of plastic scratched with sandpaper Also, can use plastic wrap scrunched up to make an interesting diffuser.

This sketch is located in the handout. Color command is two parts: colorcode and colorvalue colorcode is a character, r, g, or b. colorvalue is a number between 0-255. Sketch shows rudimentary character string processing in Arduino Serial-controlled RGB serial_rgb_led Send color commands to Arduino e.g. r200, g50, b0 Sketch parses what you type, changes LEDs g50

Reading Serial Strings New Serial function in last sketch: Serial.available() Can use it to read all available serial data from computer Great for reading strings of characters The readserialstring() function at right takes a character string and sticks available serial data into it Pay no attention to the pointer symbol ( * ) Must be careful about calling readserialstring() too often or you ll read partial strings

RGB LEDs Normal LED anode + cathode anode + cathode RGB LED anode + red cathode anode + blue cathode green cathode red blue green actually 3 LEDs in one package RGB LED, aka tri-color LED Common-anode RGB LEDs are much more available than common-cathode. This is why we re changing around the logic.

Color Mixing With just 3 LEDs you can make any* color common anode RGB LED +5V Arduino board pin 11 pin 10 pin 9 220 (red,red,brown) gnd green blue red With RGB you can make any color (except black) Mixing light is the additive color model (paint is subtractive color, and can give you brown) *besides the additive/substractive color different, it s hard to get the mix to be just right for a variety of annoying reasons: - the physics of LEDs mean that different color LEDs put out different amounts of light - our eyes respond non-linearly across the spectrum, i.e. we re more sensitive to green than red - the lenses in most RGB LEDs don t focus each color to the same spot

Laying out RGB LED Circuit common anode RGB LED +5V Arduino board gnd pin 11 pin 10 pin 9 green 220 (red,red,brown) blue red slightly bend the longest lead and plug it into the +5v (red) bus plug remaining leads into rows (12,14,&16 here) connect 220 (red-red-brown) resistors across middle to matching rows run wires from resistors to pins 9,10,11 of Arduino, can color-code if you want Ignore the green wire in the pictures, that s another circuit. Keep the pot from last circuit if you can.

RGB Color Fading RGBMoodLight Slow color fading and mixing Also outputs the current color values to the serial port This sketch is located in the handout. We ll get to the serial port stuff in a minute. It just ramps up and down the red,green,& blue color values and writes them with analogwrite() from http://www.arduino.cc/en/tutorial/dimmingleds

Pot-controlled RGB common anode RGB LED +5V +5V 50k pot pin 2 gnd Arduino board pin 11 pin 10 pin 9 green 220 (red,red,brown) blue red gnd

Pot-controlled RGB RGBPotMixer Use the pot from before to control the color mix The code turns the single ranged input value into sectors where each sector is a color Also see RGBPotMixer2 for a variation. How would you change it to adjust brightness?