Project: Physical Computing

Homework#3-using library

Colour and Melody –Physical computing homework Try to mapping between colour and the melody. The colour will change according you play the different note. I used a touch sensor, LED colour and play sound using another program.   The example of my work.     The source code for this work #include <MPR121.h> #include <Wire.h> #define numElectrodes 12 //—LED #include <Adafruit_NeoPixel.h> #ifdef __AVR__ #include <avr/power.h> #endif #define PIN 6 #define NUMPIXELS 11 Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); int delayval = 500; // delay for half a second int… More

HW#2-Analog-Input output

The try to create the Fairy and the moon lightbox by using switch button and potentiometer. I use the button to change between two modes; auto and manual, On the manual mode, you can adjust the potentiometer, and the LED that setup on the moon will turn on and turn off according to the value of the potentiometer input.   Fairy and the moon   Source Code #define ledBoxPin 13 #define ledMoon1Pin 12 #define ledMoon2Pin 11 #define ledMoon3Pin 8 #define af1Pin 3 #define af2Pin 5 #define af3Pin… More

HW1# Blink LED

The freedom Fly “Imagination is more important than knowledge” Albert Einstein The simple technique but can visual our imagination.     Code… More