PCBWay 3rd PCB Design Contest
VOTE NOW!
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
Design 1/4
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
Usability 2/4
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
Creativity 3/4
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
Content 4/4

In many systems there is a great need to measure and indicate process temperatures to users. In these processes temperature is a critical factor and may influence the safety of the systems. Thus, systems that measure and indicate temperature are required.




So, through this project, you'll learn how to construct your temperature indicator system using Arduino Nano and you'll can obtain your PCB Project to construct your own Temperature Indicator System.




The Project



The project is consctructed through a Arduino Nano, DS18B20 Sensor and TM1637 Display. Everything can be seen in the Figure 1.


Figure 1 - Project Circuit on the Breadboard.



Through this circuit is possible to see the temperature being indicating in the TM1637 Display. The Electronic Schematic to construct your circuit is presented below.


Figure 2 - Electronic Schematic of the Temperature Indicator System.




Through this circuit, the printed circuit board was designed. And the electronic schematic is presented below.


Figure 3 - Electronic Schematic of the Printed Circuit Board.



After the electronic schematic circuit, was consctructed the Printed Circuit Board presented in the Figure 4.


Figure 4 - Printed Circuit Board of the Temperature Indicator.




Therefore, after the construct the printed circuit board, we'll offer the code to measure the temperature. The code is presented below.


#include <OneWire.h>
#include <DallasTemperature.h>
#include <TM1637Display.h>

#define ONE_WIRE_BUS 8 //Digital Pin to connect the DS18B20 Sensor


OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
DeviceAddress sensor1;

TM1637Display display(2,3);

const uint8_t DEGREES[] = {0x0, 0x0,
  SEG_A | SEG_B | SEG_G | SEG_F,  // Degree Symbol
  SEG_A | SEG_F | SEG_E | SEG_D,  // C
  };

unsigned int temperature = 0;
byte PreviousValue = 0;

void setup()
{
    sensors.begin();
    display.setBrightness(7);   // set display to maximum brightness

    if (!sensors.getAddress(sensor1, 0))
    {         
     Serial.println("Sensor not found!");
    }
}

void loop()
{
    //Request sensor data
    sensors.requestTemperatures();

    int tempC = sensors.getTempC(sensor1); //Read temperature of DS18B20 Sensor

       if(tempC != PreviousValue)
       {
        PreviousValue = tempC;
        display.setSegments(DEGREES); //Display the Variable value
        display.showNumberDec(tempC,false,2,0);
        delay(2000);
       }            
}


Conclusion


Through this project you can apply in several projects like a brooder, incubator, liquid heating systems and others projects. In addition to you can use a PCB like a shield for Arduino Nano, because it have pins to connect other devices. If you can earn 10 units, you can use the PCBWay coupon discount in the website. For this, you can create your account and earn your coupon.

Nov 25,2019
262 viewsReport item
  • Comments(0)
  • Likes(2)
You can only upload 1 files in total. Each file cannot exceed 2MB. Supports JPG, JPEG, GIF, PNG, BMP
    View More