In this section a simple use of the programming an arduino uno is depicted
This project is using an ultrasound sensor to triggre a light resistance into reading analog voltage on the arduino
and as a plus turning on the arduino builtin LED as long as the light sensor is triggered
What do we need
1- Arduino Uno
2- Arduino data cable
3- Ultrasound sensor
4- Bread board
5- Resistor for protecting the components
6- Connecting cables (male-male, female-male)
7- Light sensor / light resistor
7- computer equipped with the Arduino software
Getting to work : Connections
First We connect the components on the bread board in this following way, I am using here the software Tinkercad for better visualisation
The connection should look as depicted
Arduino code
The logic of the code is designed so when a hand gesture is interrupting the ultrasound sensor with a distance less than 5 cm
the arduino LED and the light sensor are triggered and the light sesnor data is read through the monitor
The code is depicted in the following pictures