In this lab we learnt to implement an analog output using a digital input. The technique is called Pulse Wave Modulation. Also, user input was taken via arduino serial port to implement customized light colors.
The circuit was created as per the diagram provided in class.
Materials
1 breadboard, 1 Arduino, 3 LED(red,green,blue), 3 220ohms resistors, connecting wires
Diffusor
I used a disposable paper cup and tissue paper to create my diffusor.
Serial Input
The keys r/g/b responded to increasing the the corresponding red/blue/green LED's output intensity by 10%. If it reached the maximum, the intensity was then reset to 0.
Code
attached
ref: https://gist.github.com/seekshreyas/6695191
- Login to post comments