Sensing Part 1: Potentiometers

Posted by Annie

Annie's picture

Task:

Controlling the LEDs using 2 or more potentiometers.

Description:

I used 3 pots to control 3 LEDs.  I used the example code "as is" :2a_Control3LEDsWith3Pots.txt

For a diffuser I used a seashell.

Components:

3 potentiometers, Arduino Board, Solder, USB Cord, 

Red, Blue, and Green LEDs, Wires, Rubber Band, Photograph.

Pot on the beach
0
Your rating: None
Posted by rowyn

rowyn's picture

Description

pot_circuit_0.jpg

0
Your rating: None
Posted by wk

wk's picture

 

P1080546.JPG
0
Your rating: None
Posted by yoon

yoon's picture

* components used: arduino board, resistors, 3 potentiometers and 3 LEDs

* description:

3 LEDs are blinking in the same phase. pot #0 controls the brightness of all 3 LEDs, pot#1 controls the frequency of all 3 LEDs' blinking, pot#2 is changing the phase and brightness of blinking LEDs by turning on one LED with the brightness commanded by pot#2 , while other two LEDs are off. It starts from red and goes to green, blue, and then red ..

http://www.youtube.com/watch?v=5eY1zaTxmVQ

 

code:

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

sgeiger's picture

Description

Potentiometer Lab 3
0
Your rating: None
Posted by emily

emily's picture

Description

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

jlzych's picture

I programmed the microcontroller to control the 3 LEDs with 3 potentiometers. The hex value the LEDs are displaying is printed to Serial.

 

First part - one pot
0
Your rating: None
Posted by arielhaney

arielhaney's picture

I used the code posted on the website without modifying. Below are links to the lights in action

One pot fading light:

http://www.youtube.com/watch?v=ViD4PrOytz4

Two pots bliking and fading (option 1):

http://www.youtube.com/watch?v=QjYwwL8pgTo 

 

 

0
Your rating: None
Posted by lizzy

Anonymous's picture

Description

 I slightly modified the code for Option 1.
After completing option 1, I decided I wanted each pot to control its own LED. So Pot1 controls the blinking of the blue LED, whereas Pot2 controls the dimming of the green LED.

Lizzy A3: image 1
0
Your rating: None
Posted by raghavchandra

raghavchandra's picture

Blue

5
Your rating: None Average: 5 (1 vote)