Tx 4e76ccc1f8474e7ec2d15b63ccd090e5a8f45795@21330736

Included in block 21,330,736 at 2018-04-06 13:39:21 (UTC)


Raw transaction

ref_block_num31,513
ref_block_prefix1,597,300,015
expiration2018-04-06 13:49:15
operations
0.
0.comment
1.
parent_author""
parent_permlinkutopian-io
authorgasuba
permlinktemperature-gauge-with-arduino-using-fritzing-tutorial-4
title"Temperature gauge with Arduino using Fritzing: Tutorial 4"
body"
#### What Will I Learn?
In this tutorial, the user will learn:
- Design of a temperature meter with sound alarm, to measure the temperature of an industrial furnace.
- Connection of: RHT03 temperature sensor, 16x2 LCD screen, potentiometer and buzzer with the Arduino Uno card.
- System connection in breadboard using fritzing for real assembly.
#### Requirements
- Basic knowledge of Arduino programming.
- Basic knowledge of the operation of the RHT03 sensor and buzzer.
- See the previous tutorials.
- 16x2 LCD screen
- RHT03 sensor
- Buzzer 5V
- Potentiometer 20 kOhm
- Arduino One card.
#### Difficulty
- Advanced
#### Tutorial Contents
Greetings, this is a contribution from @gasuba for Utopian of Open Source programs. In this opportunity, the temperature measurement of an industrial furnace will be exposed, which must operate to a specific range or desired temperature, in case the temperature variable exceeds the desired value a sonic alarm will be activated. Constantly, a message will be displayed indicating the temperature of the oven on the LCD screen. The input physical variable will be the temperature and humidity that is detected by the RHT03 sensor, which will send the sensed value to the Arduino card one and this will send the corresponding data for the message on the LCD screen and activate the buzzer when appropriate. It is always good to remember that fritzing allows us to make our connection diagram long before making a real connection, in the following figure the temperature measurement diagram including the sound alarm is shown:
![imgdia.png](https://cdn.utopian.io/posts/22fa45681d945469253465616c05c587c75bimgdia.png)
Own source
It is important to mention that although the RHT03 sensor measures temperature and humidity, we will only use the temperature variable for the case of the oven.
**Step 1.**
We select electronic devices for temperature measurement and alarm, these devices are: a 16x2 LCD screen (16 columns and 2 rows), the Arduino Uno acquisition card, the RHT03 temperature sensor and the buzzer. The figure shown below exposes the devices and the location in the fritzing window to find them:
A. Search of electronic devices.
B. Family of Arduino cards.
C. Buzzer.
D. 16x2 LCD screen.
E. Arduino Uno card.
F. Temperature sensor RHT03.
G. Potentiometer.
H. Description and configuration of each device.
![Final.png](https://cdn.utopian.io/posts/47bf8e9796d65b4d7601e47fd06531734943Final.png)
**Step 2.**
The first stage of connection will be made with the 16x2 LCD screen with Arduino, in the image shown below, the schematic view showing fritzing is displayed to have the connection sequence. This screen consists of 16 pins that are described below:
![Img3.png](https://cdn.utopian.io/posts/e3a25b49e5a6b6ae805031f02c1f4a4eb547Img3.png)
**Vdd:** Point in common with the Arduino card.
**Vcc:** 5V power supplied by the Arduino card.
**Vo:** LCD voltage operation connected to the middle pin of the potentiometer.
**RS:** Selection register connected to pin 12.
**R / W:** Reading and writing connected to the point in common with Arduino.
**E:** Enabling signal connected to pin 11 of Arduino.
**DB4:** Pin of data connected to pin 5 of Arduino.
**DB5:** Pin of data connected to pin 4 of Arduino.
**DB6:** Pin of data connected to pin 3 of Arduino.
**DB7:** Pin of data connected to pin 2 of Arduino.
**Led +:** Contrast of the LCD screen connected to Vcc.
**Led-:** Contrast of the LCD screen connected to Vdd.
In the image shown below, the connection of the LCD screen with the fritzing tools is observed, in addition to the Arduino programming that is shown at the end of the tutorial, the LCD screen is configured with the connecting pins that are linked with the card to show the temperature of the oven during the entire measurement process.
![Img2.png](https://cdn.utopian.io/posts/519c79585e41077648ffea370859cfe016c2Img2.png)
**Step 3.**
In this stage we connect the temperature sensor RHT03 and Loudspeaker. The temperature sensor is connected to pin 6 of the Arduino, it also has 4 connection pins as shown below:
![pinsensor.png](https://cdn.utopian.io/posts/575564630f890586fad938c2fe382e77ff08pinsensor.png)
Own source
The following figure shows the connection of the temperature sensor connected to pin 6 of the Arduino, with a resistance of 1kΩ on pin 2. The buzzer is connected to pin 7 of the Arduino and will activate when the temperature value in the oven exceeds the desired value.
![Img4.png](https://cdn.utopian.io/posts/646402d0a3bb042728a8e1c951f79a477473Img4.png)
**Step 4.**
We make the final connection of all the devices that constitute the temperature measurement including the sound alarm, whose system is based on the RHT03 sensor, the potentiometer that is connected to the LCD screen allows to control the brightness of the screen, the buzzer will allow the user is alert to any change in temperature that is unusual. The connection is as follows:
![Img5.png](https://cdn.utopian.io/posts/79d46d1c9dea7309d5c637fb9c2faf95060dImg5.png)
**Step 5**
Finally, we obtain the PCB scheme of the system, whose tool of fritzing allows us to export our system to the plates where the real devices can be placed with all the tracks included, knowing that each track contains the continuity between the elements connected to each other. Observe the following figure:
![Img7.png](https://cdn.utopian.io/posts/42b7a5a41b23c656967c3165ca5847dd2049Img7.png)
The Arduino code is presented, to be recorded on the card and make the physical connection of all the devices for the pilot test, then we submit the temperature sensor in an oven and observe the application. It is important to mention that the DHT11 sensor library was downloaded, which has the same operation and connection as the RHT03 sensor. This last device is the one that fritzing has in its components, this allows us to simulate the DHT11 device connection, which we will program in arduino. Observe the code:
```
#include <LiquidCrystal.h>
#include <DHT11.h>
//Initialize bookstores
DHT11 dht11(6);
LiquidCrystal lcd(12,11,5,4,3,2);
void setup()
{
dht11.begin(); //Initialize sensor communication and LCD screen
lcd.begin(16,2);
}
void loop()
{
//The variables temperature and humidity are declared
float t;
float h;
dht11.read(h,t); //Read the sensor measurements
lcd.clear();// Clean LCD screen
lcd.setCursor(1,0); //Position the cursor to write on the screen
lcd.print("Temp: "); //Print the temperature label
lcd.setCursor(1,1);
lcd.print(t); //Print the temperature value
lcd.print(" C'");
if (t>=110){
digitalWrite(13, HIGH); //Activate buzzer when the temperature is higher than 110 ° C
}
else {
digitalWrite(13,LOW); //Deactivate buzzer when the temperature is lower than 110 ° C
}
delay(500); //Time to read new data
}
```
In the code we can see the inclusion of libraries: LCD and DHT11, the first Arduino contains it in its programming interface to include it and program it. In the case of the sensor library, it can be downloaded at the following link: [DHT11](https://drive.google.com/drive/folders/0B0hsUkhqWH97dHFBeTNZd2ZyRjQ)
Thank you all for your time and attention, I hope it is very useful for your automation projects and smart devices ... See you in the next tutorial.
#### Curriculum
- [Proximity detector with ultrasonic transducer and arduino using fritzing: Tutorial 3](https://utopian.io/utopian-io/@gasuba/proximity-detector-with-ultrasonic-transducer-and-arduino-using-fritzing)
- [Access control with photoelectric using fritzing with Arduino: Tutorial 2](https://utopian.io/utopian-io/@gasuba/access-control-with-photoelectric-using-fritzing-with-arduino)
- [Control of an alarm with LEDs and the Arduino Uno card using Fritzing: Tutorial 1.](https://utopian.io/utopian-io/@gasuba/control-of-an-alarm-with-leds-and-the-arduino-uno-card-using-fritzing-tutorial-1)
- [Introducción a Fritzing utilizando un circuito básico con LDR](https://utopian.io/utopian-io/@gasuba/introduccion-a-fritzing-utilizando-un-circuito-basico-con-ldr)

<br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@gasuba/temperature-gauge-with-arduino-using-fritzing-tutorial-4">Utopian.io - Rewarding Open Source Contributors</a></em><hr/>"
json_metadata{"community":"utopian","app":"utopian/1.0.0","format":"markdown","repository":{"id":23322663,"name":"fritzing-app","full_name":"fritzing/fritzing-app","html_url":"https://github.com/fritzing/fritzing-app","fork":false,"owner":{"login":"fritzing"}},"pullRequests":[],"platform":"github","type":"tutorials","tags":["utopian-io","fritzing","arduino","steemstem","curatorem"],"users":["gasuba"],"links":["https://cdn.utopian.io/posts/22fa45681d945469253465616c05c587c75bimgdia.png","https://cdn.utopian.io/posts/47bf8e9796d65b4d7601e47fd06531734943Final.png","https://cdn.utopian.io/posts/e3a25b49e5a6b6ae805031f02c1f4a4eb547Img3.png","https://cdn.utopian.io/posts/519c79585e41077648ffea370859cfe016c2Img2.png","https://cdn.utopian.io/posts/575564630f890586fad938c2fe382e77ff08pinsensor.png","https://cdn.utopian.io/posts/646402d0a3bb042728a8e1c951f79a477473Img4.png","https://cdn.utopian.io/posts/79d46d1c9dea7309d5c637fb9c2faf95060dImg5.png","https://cdn.utopian.io/posts/42b7a5a41b23c656967c3165ca5847dd2049Img7.png","https://drive.google.com/drive/folders/0B0hsUkhqWH97dHFBeTNZd2ZyRjQ","https://utopian.io/utopian-io/@gasuba/proximity-detector-with-ultrasonic-transducer-and-arduino-using-fritzing","https://utopian.io/utopian-io/@gasuba/access-control-with-photoelectric-using-fritzing-with-arduino","https://utopian.io/utopian-io/@gasuba/control-of-an-alarm-with-leds-and-the-arduino-uno-card-using-fritzing-tutorial-1","https://utopian.io/utopian-io/@gasuba/introduccion-a-fritzing-utilizando-un-circuito-basico-con-ldr"],"image":["https://cdn.utopian.io/posts/22fa45681d945469253465616c05c587c75bimgdia.png","https://cdn.utopian.io/posts/47bf8e9796d65b4d7601e47fd06531734943Final.png","https://cdn.utopian.io/posts/e3a25b49e5a6b6ae805031f02c1f4a4eb547Img3.png","https://cdn.utopian.io/posts/519c79585e41077648ffea370859cfe016c2Img2.png","https://cdn.utopian.io/posts/575564630f890586fad938c2fe382e77ff08pinsensor.png","https://cdn.utopian.io/posts/646402d0a3bb042728a8e1c951f79a477473Img4.png","https://cdn.utopian.io/posts/79d46d1c9dea7309d5c637fb9c2faf95060dImg5.png","https://cdn.utopian.io/posts/42b7a5a41b23c656967c3165ca5847dd2049Img7.png"],"moderator":{"account":"roj","time":"2018-04-06T13:39:17.372Z","flagged":true,"reviewed":false,"pending":false},"questions":[],"score":null}
extensions[]
signatures
0.1f166400d7770d34971a1373cedc166f3acb79fb2706019d7c1326c949f23ddd3e2606d7d4fec0ed6df6119f520c457c3b1a41dcac22fdc5cba2b997a793c29791
transaction_id4e76ccc1f8474e7ec2d15b63ccd090e5a8f45795
block_num21,330,736
transaction_num1