Introduction: Temperature Controller

A Temperature Controller is an device that is used to control temperature. It does this by first measuring the temperature (process variable), it then compars it to the desired value (set value). The controller takes an input from a temperature sensor and has an output that is connected to a control element such as a heater or fan.

Supplies

The supplies needed to build the Tempurature Controller are

  1. Arduino UNO

  2. LCD (16x2)

  3. DC Motor

  4. Two LED (red and green)

  5. Three Resistor (one 220 ohms & two 1k)

  6. Potentiometer

  7. Piezo

  8. Relay SPDT

  9. Breadboard

  10. Wires

  11. Temp Sensor

Step 1: Step 1: Gather All the Supplies

Gather all the supplies I metioned above before creating the cirucit.

Step 2: Step 2: Understanding the Circuit

There are multiple componets used in this circuit, and we need to know what each one of them do to make this circuit work

  • Arduino UNO
    • Arduino is an open-source electronics platform. Arduino boards are able to read inputs - light on a sensor, a finger on a button, and turn it into an output - activating a motor, turning on an LED, etc. In this project the Arduino reads the code, and initiates the LEDs and LCD

  • LCD (16x2)
    • Liquid crystal display (LCD), electronic display device that operates by applying a varying electric voltage to a layer of liquid crystal. In this project the LCD is used to display the temperature, and whether the fan is on or off.

  • DC Motor
    • The term DC motor is used to refer to any rotary electrical machine that converts direct current electrical energy into mechanical energy. In this project the DC Motor is used as a fan to help control the energy emitted when we increase/decrase the amount of tempurature in the room.

  • Two LED (green & red)
    • Light-emitting diodes (LEDs) produces light when a current flows through them in the forward direction. In this project there are two LEDs teh green on to display when the fan is on, and the red on is to display when the fan is off and the heat is on.

  • Three Resistor (one 220 ohms & two 1k)
    • The resistor is a passive electrical component to create resistance in the flow of electric current. In this circuit there are three resistors used to divide the energy and voltage the LEDs receive.

  • Potentiometer
    • A potentiometer is a three-terminal resistor with a sliding or rotating contact that forms an adjustable voltage divider. The potentiometer in this project controls what will be displayed on the screen of the LCD.

  • Piezo
    • A piezoelectric sensor is a device that uses the piezoelectric effect to measure changes in pressure, acceleration, temperature, strain, or force by converting them to an electrical charge. In this circuit the piezo is used a sound device, it lets out a buzz which indicates when the fan turn on or off.

  • Breadboard
    • A breadboard is used to hold electronic components (transistors, resistors, chips, etc.).

  • Wires
    • A wire is a single usually cylindrical, flexible strand or rod of metal. Wires are used to make connection between the voltage, or electrical suppliy to the object that needs to be powered.

  • Temp Sensor

    • They are devices to measure temperature readings through electrical signals. In this circuit the temperature sensor controls the amount of heat or cool air is emitted into the room.

  • Relay SPDT
    • SPDT (Single-Pole Double-Throw) relays have a single set of Form C, break before make or transfer contacts. Relay is a electro-mechanical switch used to control high power application through low power signal electronic circuits.

Step 3: Step 3: Making the Circuit

For making the Temperature Controller, we need to attach the proper wires and compoents, in the right places. The following pics display the connections from the Arduino UNO to the breadboard, and the other components used in the circuit.

Here is the Link to my Tinkercad, so that you can view the circuit and understand how I have attached each components, and there is also a video where I demonstrate how the circuit works

The Code & The Circuit

Step 4: My Circuit

Step 5: Step 5: Writing the Code

Writing the code to this circuit isn't too complicated, the only additonal thing you need to learn is how to represent the LCD, or how to give it commands in code, as the LCD is a new componet used

The Code & The Circuit

Above is the link to my code so that you guys can see how I have written the code out (the file also has the full code in it)