Temperature Indicator Panel

TEMPERATURE INDICATOR PANEL

 

Aim of the Project: To create a Dashboard using Pinoo Control Card with Temperature and Humidity Sensor and Servo Motor.

 

Time: 2 lessons

 

Age Group: 9 years old and above

 

Main goals:

  • Learns to code the Pinoo Control Card.
  • Learns to use the servo motor module.
  • Learns to use the Temperature and Humidity Sensor.
  • The ability to establish algorithms improves.
  • Coding skill improves.
  • Design skills improve.

 

Required Materials: 

  • Mblock 3 program
  • Pinoo Control Card
  • Temperature and Humidity Sensor
  • Servo Motor Module
  • Cables

 

Materials Required for Design: Eva or craft paper, cardboard, tongue stick silicone gun and silicone.


 

Implementation of the Project:

 

  1. We start our project by making the dashboard first. We cut the cardboard as a square and stick the handcrafted paper in 3 colors side by side in the order of blue-orange-red color to the top of the cardboard.

 

  1. After creating the dashboard, we support the back of the panel with the help of tongue bars to stand vertical.

 

  1. Then, we fix our servo motor to the bottom-middle-back part of our panel. we make a hole for the propeller to come out from the front. After fixing, we stick tongue stick to the propeller part of our servo motor at the front.

 

 

  1. After fixing the servo motor, we attach the Temperature Humidity Sensor to the back of the dashboard.

 

  1. Then, we connect the Servo Motor and Temperature Sensor with our Pinoo Control Card. We make our connection by matching the colors on our sensors with the colors that are suitable on our Pinoo Card. (We connected the Servo Motor 3 Temperature Sensor to the input 2)
  1. We completed the design and connection parts. Now we move on to coding.

 

  1. We will use the Mblock 3 application for encoding.

 

 

  1. Let's connect our Pinoo Control Card to the computer with the connection cable and enter the Mblock3 application. Then let's pair our Pinoo Control Card with the computer. To do this, we first click the serial port option on the Connect tab. Then we choose com4. (The number may differ depending on the computer and port.)

 

  1. After making the serial port connection, let's choose the card we will use from the cards tab. We work with Arduino's Nano model.

 

 

  1. After selecting our card, we click on the Pinoo option from the Extensions tab. We will write our codes with the Pinoo extension.

 

 

  1. After making our selections, we finally complete the connection process by making Firmware Update from the Connect option.

 

  1. After the update is over, we proceed to the coding stage. First of all, we start by getting the Pinoo Program code from the Robots Menu.

 

 

  1. Then we take the code that defines the Temperature and Humidity Sensor from the Robots menu and add it below our starting code. We select the port gate to which we have connected our Temperature Sensor. (Pinoo2)

 

 

  1. We print the value indicated by our Temperature Sensor on the serial port of our computer screen. For this, we get the code "write to serial port" in the Robots menu.

 

 

  1. In order to see the value defining the Temperature Sensor in the serial port screen of the computer, we place it in the “write to the serial port” code we receive from the robots.

 

 

  1. We place it in the 'Repeat Continuous' code to see the change of this value continuously.

 

 

  1. As the temperature value increases or decreases, we need condition expressions to displace the tounge stick on the dashboard. For this, we get the code "if-else" from the Control menu.

 

 

  1. To add the range of 2 different temperature values, we get the 'and' link in the 'if-else' code in the Operations menu.

 

 

  1. We place the 'greater than' sign on the left side of the 'And' connector from the Actions menu, and the 'smaller than' sign on the right side.

 

 

  1. First, we take the situation where the temperature value shows 27 degrees. Therefore, we choose the values ​​of the Temperature Value greater than 26 and less than 28.

 

 

  1. After determining the first temperature value, we select the angle of the servo motor at 135 degrees to show the blue color on the panel and let it wait for 1 second at this point.

 

 

  1. We repeat the same process within a temperature of 29 degrees. In order for our servo motor to show its orange color, we select the angle of the Servo Motor as 90 degrees and wait for 1 second at this point.

 

 

  1. We repeat the same process for the third time for high temperatures of 31,32,33,34 degrees. When it reaches any of these temperature values, we select the angle as 30 degrees to show the red color in the panel of the Servo Motor.

 

 

  1. We have completed our codes. Now, we upload our codes to the card so that our project operates with a computer independent power supply. We right click on the Pinoo Program code and upload our codes to Arduino.

 

 

  1. We are waiting for the codes to be loaded. After the installation, we close the window and remove the connection cable of our Pinoo Card from the computer.

 

 

  1. Finally, with the help of a 9v battery and a battery cap, we power our Pinoo card to keep our project running.