Arduino

task 1

Using the IR Sensor and Two External LEDs, when there is no object detected the green LED should be on and the red is off. When an object is detected the green LED is off and the red starts blinking every 300 milliseconds.

Note: there is no ir sensor in fritzing, so i used a similar component.

schematic

breadboard

code

real photo 1

real photo 2

real photo 3

video


task 2

Using three pushbuttons and one buzzer. Make a simple piano that gives a different tone for each button press.

schematic

breadboard

code

real photo

video


task 3

using a potentiometer to control the brightness of an LED.

schematic

breadboard

code

real photo

real photo

video