This shows you the differences between two versions of the page.
pm:prj2022:cstan:temperaturesensor [2022/05/27 16:32] Diana.ionita1801 [Journal] |
pm:prj2022:cstan:temperaturesensor [2022/05/27 18:50] (current) Diana.ionita1801 [Download] |
||
---|---|---|---|
Line 4: | Line 4: | ||
While switches and buttons are great, there's a lot more to the physical world than on and off. Even though the Arduino is a digital tool, it's possible for it to get information from analog sensors to measure things like temperature or light. To do this, we take advantage of the Arduino’s built-in-Analog-to-Digital Converter (ADC). Analog in pins A0-A5 can report back a value between 0-1023, which maps to a range from 0 volts to 5 volts. | While switches and buttons are great, there's a lot more to the physical world than on and off. Even though the Arduino is a digital tool, it's possible for it to get information from analog sensors to measure things like temperature or light. To do this, we take advantage of the Arduino’s built-in-Analog-to-Digital Converter (ADC). Analog in pins A0-A5 can report back a value between 0-1023, which maps to a range from 0 volts to 5 volts. | ||
- | ===== General Description ===== | + | ===== General Description ===== |
This uses a temperature sensor to measure how warm the skin is. This component outputs a changing voltage depending on the temperature it senses. | This uses a temperature sensor to measure how warm the skin is. This component outputs a changing voltage depending on the temperature it senses. | ||
- | It has three pins: one that connects to ground, another that connects to power, and a third that outputs a variable voltage to your Arduino. | + | It has three pins: one that connects to the ground, another that connects to power, and a third that outputs a variable voltage to your Arduino. |
- | In the sketch for this project, we read the sensor's output and use it to turn aledas on and off, indicating how warm you are. There are different models of temperature sensor. | + | In the sketch for this project, we read the sensor's output and use it to turn LEDs on and off, indicating how warm you are. There are different models of the temperature sensor. |
This is convenient because it outputs a voltage that changes directly proportional to the temperature in degrees Celsius. | This is convenient because it outputs a voltage that changes directly proportional to the temperature in degrees Celsius. | ||
- | Block diagram | + | Block diagram: |
+ | |||
+ | {{ :pm:prj2022:cstan:222.png?300 |}} | ||
===== Hardware Design ===== | ===== Hardware Design ===== | ||
Components list: | Components list: | ||
+ | |||
- Arduino Uno | - Arduino Uno | ||
+ | |||
- Breadboard | - Breadboard | ||
+ | |||
- Resistor | - Resistor | ||
+ | |||
- Buzzer | - Buzzer | ||
+ | |||
- Temperature Sensor | - Temperature Sensor | ||
+ | |||
- LCD i2c | - LCD i2c | ||
+ | |||
- Led | - Led | ||
- | ===== Software Design ===== | ||
+ | Electric schematic: | ||
+ | |||
+ | {{ :pm:prj2022:cstan:schema_electrica_diana_ionita.png?300 |}} | ||
+ | ===== Software Design ===== | ||
+ | I used the library LiquidCrystal_I2C.h in order to display on the I2C LCD the temperature. I am running the sketch TemperatureSensor.ino to make this work. I have initialized the pins for the temperature sensor and piezo. Then, in setup() I initialized the LCD i2c and I declared the pins for each LED. In loop() I read the value from the temperature sensor. By using 3 if's I set the LEDS to turn on based on the temperature. | ||
===== Obtained Results ===== | ===== Obtained Results ===== | ||
- | ===== Conclusions ===== | ||
- | 22.04.2022 Alegere tema proiect | ||
- | 27.04.2022 Comanda piese Arduino | + | This is the final result. On the screen you can see the value of the temperature. Based on this value, the green LED turned on and the buzzer made a specific sound: |
- | 28.04.2021 Comanda Arduino Starter Kit | + | {{ :pm:prj2022:cstan:temperature_sensor.jpeg?300 |}} |
+ | ===== Journal ===== | ||
+ | 22.04.2022 I chose the theme for my project. | ||
- | 30.04.2021 Asamblare proiect "Temperature Sensor" | + | 27.04.2022 I ordered Arduino Starter Kit. |
- | 07.05.2021 Comanda piese Arduino (buzzer, fire, etc.) | + | 30.04.2021 I assembled the project "Temperature Sensor". |
- | 12.05.2021 Modificare proiect "Temperature Sensor" | + | 07.05.2021 I ordered pieces for Arduino (buzzer, wires and so on). |
- | 19.05.2021 Modificare Schema Bloc si creare schema electrica | + | 12.05.2021 I modified the project "Temperature Sensor". |
- | 27.05.2021 Modificare documentatie si finalizarea acesteia | + | 19.05.2021 I created the wiring diagram. |
+ | 27.05.2021 I modified and finalised the documentation. | ||
+ | ===== Conclusions ===== | ||
- | 22.04.2022 Alegere tema proiect | + | To sum up, this project was a challenge for me. I've never worked with Arduino before and I was glad to have the chance to experience this! I enjoyed the whole learning process a lot and I am looking forward to finding out more about Arduino. |
- | 27.04.2022 Comanda piese Arduino | + | ===== Bibliography/ Resources ===== |
- | 28.04.2021 Comanda Arduino Starter Kit | + | **Bibliography:** |
- | 30.04.2021 Asamblare proiect “Temperature Sensor” | + | Arduino Starting Kit Book |
- | 07.05.2021 Comanda piese Arduino (buzzer, fire, etc.) | + | ===== Download ===== |
- | + | ||
- | 12.05.2021 Modificare proiect “Temperature Sensor” | + | |
- | + | ||
- | 19.05.2021 Modificare Schema Bloc si creare schema electrica | + | |
- | + | ||
- | 27.05.2021 Modificare documentatie si finalizarea acesteia | + | |
- | ===== Bibliography/ Resources ===== | + | |
- | <note> | + | {{:pm:prj2022:cstan:temperaturesensor.zip|}} |
- | Listă cu documente, datasheet-uri, resurse Internet folosite, eventual grupate pe *Resurse Software* şi *Resurse Hardware*. | + | |
- | </note> | + | |
<html><a class="media mediafile mf_pdf" href="?do=export_pdf">Export to PDF</a></html> | <html><a class="media mediafile mf_pdf" href="?do=export_pdf">Export to PDF</a></html> |