Catarina Moreira

catarina.p.moreira@ist.utl.pt

Hot / Cold Arduino Project

In this project, I use an ultrasonic sensor, a buzzer and two leds in order to detect distances.

The arduino will turn on the Blue led, when the distance to an object os far away. When the objects starts to come near to the arduino, the Blue led will start to fade and the Red led will be turned on.

When the object is too close to the arduino, a buzzer will "beep".

The sketch for this project is given by the following figure:



Here's a small demonstration of this project:



The code that you need for this project is the following: