Back to Parent

The Code

Here is a code which uses 3 components integrated together. Piezo Buzzer, Flex Sensor and LED. The flex sensor is an analogue pin and provides the input (angle of bending) while the buzzer and the LED are digital pins and provide the output, which is sound and light. The buzzer and light are meant to go off if the flex sensor is bent beyond a certain angle, therefore restricting angle limits have been set.

The code can also be viewed on Github: https://github.com/Harshikerfuffle/Designing_for_IoT/blob/master/flex_peizo_led_part2.ino


Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0