Digital I/O with Arduino Boards + Diffuser
Description
Overall
A diffuser was created using a mixture of red, green, and blue LEDs. The code used the value of 25 times the number of times r/g/b is entered to set the color and keep fading.
We learned about the Arduino's abilities to communicate with Serial.
Diffuser
Description
In this assignment I attempted to write a script that would fade each pin down to 0 after the user set the pin to a particular value, and 400 cycles have passed. The LEDs fade down to 0 using the PWM pins and can be activated independently of each other. I'm currently working out a way to make the serial entry a little more 'user friendly' by associating a mood (happy, sad, angry) with a color and to ensure pins also fade independently.
Description
For this assignment, I wanted to create a "weather orb" that visualizes the weather conditions outside using mapping between qualitative descriptions of weather (e.g. hot, bright, sunny, cold, etc.) and colors.
where:
Description
First, a bottle cap wrapped with Styrofoam was used as the diffuser. Then I found out that the LED was still pretty distinct so I had to add another layer inside the cap. I extended the sample code so that it catches a char which is mapped to a color.
Lab 2 :Sensorial Dislocation
Description
I was try to make diffuser to mix RGB colors by covering LED lights with transparent plastic tubes. In order to prevent diffusion of lights at the end of tubes (which means the other sides towards top), I also added wrinkled napkins which makes effects to hold light at the end. Interesting observation is that the light gets clear/darker as it travels through the tubes from its origin.
Description:
For this assignment I used the PWM capabilities of the Arduino board to vary the brightness of three LEDs (red, green, and blue) to create a color mixing effect. The brightnesses can be controlled in 2 ways: 1. Manually, via a potentiometer 2. Serially, by sending color names (i.e "red", "purple", "cyan", etc.) or integer values for each light "(x,y,z)" where x, y, and z are interpretted as the value of the red, green, and blue LEDs respectively.
RGB LED lamp enclosed in a wood block with wood shaving diffuser. The serial input is the basic version described in the lab (i.e. rrbbgg increases red by 20%, blue by 20% and green by 20%).
Code:
The prospect of using the keyboard as an input to control the LEDs on the arduino did not appeal, for which I considered another input group that most mac laptops have, its accelerometer.
Description
In this lab, we explore some of the digital features of the Arduino Board. Specifically, we’ll be looking at: