Week 5
In this week, our group optimized the final program of the D6T. The LED matrix can show the changes in the temperature in the D6T detection area. We added a buzzer as an alertor in this circuit. We combined the LCD display with the circuit as well. Therefore, all the components are controlled by the Arduino in one program at the same time.
The LED program:
1.we have reset the conditional statements of the relationship between the color and the temperature.
2.we have changed the Mathematical relationship between the temperature matrix and the number of the LED lights to make the LED screen can show the corresponding temperature detection area on one side.
The mathematical expression is:
We need a 1k Ohm resistance and a PNP transistor to connect the buzzer into the circuit.
Connection:
The base of the PNP is connected to one side of the resistance, and the other side of the resistance is connected to the pin on the Arduino. In this circuit, the Arduino supplies the power.
Program design:
When the highest temperature of the 16 detection temperatures is higher than the indoor temperature, the buzzer will make a sound.
The LCD:
We need a 1k Ohm resistance and a 220 Ohm resistance to connect the LCD display into the circuit.
Connection:
Program design:
The first line of the LCD screen shows the indoor temperature. And the second line shows whether there is someone walk in the detection area. If the highest temperature of the 16 detection temperatures is higher than the indoor temperature, the screen will print "break!". If the detection temperature is in other conditions, the screen will print "Safe.".
![]() |
| Figure 1. Circuit connection |
![]() |
| Figure 2. Schematic |
The LED program:
1.we have reset the conditional statements of the relationship between the color and the temperature.
2.we have changed the Mathematical relationship between the temperature matrix and the number of the LED lights to make the LED screen can show the corresponding temperature detection area on one side.
The mathematical expression is:
Where n represents the block number of the D6T temperature matrix and m represents the block number of the LED screen. And m is obtained by mirror symmetry.
In the second function, p represents the number of the LED light.
The Buzzer:We need a 1k Ohm resistance and a PNP transistor to connect the buzzer into the circuit.
Connection:
![]() | ||
| Figure 3. The connection of buzzer |
Program design:
When the highest temperature of the 16 detection temperatures is higher than the indoor temperature, the buzzer will make a sound.
The LCD:
We need a 1k Ohm resistance and a 220 Ohm resistance to connect the LCD display into the circuit.
Connection:
![]() |
| Figure 4. LCD connection |
Program design:
The first line of the LCD screen shows the indoor temperature. And the second line shows whether there is someone walk in the detection area. If the highest temperature of the 16 detection temperatures is higher than the indoor temperature, the screen will print "break!". If the detection temperature is in other conditions, the screen will print "Safe.".
There are a lot of cables needed to be used to connect between one component and another component. The breadboard takes too much space in this circuit. And the connection ability of breadboard is not perfect enough. In addition, we need the Arduino board to provide the 5v voltage. Therefore, we use another board and soldered the electircal components on it.
![]() |
| Figure 5. cables |
In the next week, we will try to use a box to pack the circuit to make it have a better appearance. We will make a poster and prepare a presentation for the bench inspection day as well.





Comments
Post a Comment