Digital I/O with Arduino Boards + Diffuser

Posted by rami

rami's picture

Components

Bread board

Arduino

Diffuser: bottom of a plastic cup

Resistors

IMG_20110208_055128_0.jpg
0
Your rating: None
Posted by arielhaney

arielhaney's picture

 

IMAG0187.jpg
0
Your rating: None
Posted by lizzy

Anonymous's picture

Description
Use the Arduino serial communication to control three light emitting diodes (red, green, and blue) via keyboard commands.
When user enter lowercase letter (r,g,b), value increases. When user enters uppercase letter (R,G,B), value decreases. When LED value reaches max, user will not be able to control LED with lowercase letters. Only decreasing can occur, meaing user must input uppercase letters. When LED value reaches min, user will not be able to control LED with uppercase letters. Only increasing can occur, meaing user must input lowercase letters.

Lizzy- lab 2
0
Your rating: None
Posted by Erich

Erich's picture

Using a plastic cup wrapped in masking tape, I diffused the light being produced by RGB LEDs. The code would fade from color to color depending on what keys were typed. The letters of "qwerty" each represented a color of the rainbow.

Video: http://www.youtube.com/watch?v=GcCyi_XIGAU

 

My code for the qwerty rainbow: (other code same as sample code provided)

 

Circuit.jpg
0
Your rating: None
Posted by karthik

karthik's picture

Summary:

Serial Control of LEDs with PWM using the Ardiuno Uno. 

Command line inputs affect what is seen on the LEDs.  

Command structure is "<colorCode>*", where "colorCode" is

LEDs circuit
0
Your rating: None
Posted by emily

emily's picture

 

5
Your rating: None Average: 5 (1 vote)
Posted by kantch

kantch's picture

This color-mixer accepts 3 types of inputs:

  • '?' : random color
  • r,g,b: RGB code, where r, g and b are numbers between 0 and 255. For example, yellow would be '255,255,0'
  • 'r*g*b*': proportion of red, green and blue. For example, yellow would be 'rg'

It fades smoothly between colors (linear interpolation) and turns red whenever there is an error in the input string.

0
Your rating: None
Posted by sgeiger

sgeiger's picture

 

Description

Lab2 - arduino board
0
Your rating: None
Posted by rowyn

rowyn's picture

Description

mcdonald_lab2_0.jpg
0
Your rating: None