Skip to content
Snippets Groups Projects
Commit a1312af8 authored by Mitalee Parikh's avatar Mitalee Parikh
Browse files

input dev - temp

parent 76d440db
No related branches found
No related tags found
No related merge requests found
Pipeline #223452 passed
Input Devices
======================
This week I will use analog sensors to measure things like temperature and light using a Peizo vibration sensor and a phototransistor.
For reference, I used the Arduino love-o-meter project as it used the temperature sensor.
I started by collecting all the components.
![Gathering components](./images/input/shopping.jpeg)
I used this schematic to connect everything.
![Sketch](./images/input/schematic.jpeg)
The circuit setup was fairly easy. This is how it looks.
![setup](./images/input/setup.jpeg)
At first all lights were continuously on. I checked the serial monitor and saw that the temperature was around 26 degrees without touching. So I adjusted the baseline temperature to 25 in the sketch. After some trial and error, I adjusted the sketch so that on touching it lightly for about 5 seconds, the second led lit up and on holding it tight for some seconds the third led lit up. The serial monitor indicated temperature range from 26-32 degrees.
So an increment of 2-4-6 degrees worked out perfectly.
![serial](./images/input/serial.jpeg)
This is it in action.
![in action](./images/input/hot.gif)
####Code
![Sketch](./images/input/3leds.zip)
####Tutorials
[Arduino Project 3](https://create.arduino.cc/projecthub/godboi123/love-o-meter-bda552)
File added
docs/images/inputs/hot.gif

1.37 MiB

docs/images/inputs/schematic.jpeg

358 KiB

docs/images/inputs/serial.jpeg

75.7 KiB

docs/images/inputs/setup.jpeg

159 KiB

docs/images/inputs/shopping.jpeg

107 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment