Week 3

In this week, the main progress we had made was that we tested the code of D6T successfully. The  D6T could detect circumstance temperature change and give the measured temperature to Arduino. We also connected the housing and contact of I2C interface tightly and tested the function of the LED matrix.

D6T:
Last week, there were some problems with the code of the D6T. When we tested the program, the program could not be compiled in some loops. We considered that there might be some problems about the loose connection between wire and sensor since we just put the wires into the housing without contacts.
Fortunately, he contacts(SSHL-002T-P0.2) we ordered ourselves arrived before the lab. Therefore, we used the contacts to wrap the wire to make the connection between the D6T and the Arduino compact.
However, it was not easy to wrap the wires by the contact since the kind of contacts were tiny and the wires were not so thin that it could not be wrapped tightly. Then we used the wire of M-M cables to instead of the wires from the laboratory. Additionally, we cut down one side of metal sheet and fasten the other metal sheet of the contact around the wire tightly. Glue was used to separate adjacent four wires and avoid short circuit situation as well.
Figure 1. connection of the D6T.
We also made one more wires with I2C interface as the standby.
Figure 2. D6T program testing circuit.
After improving the connection, the problem of the D6T was solved as expected.
The output data was presented in a single line at first. We adjust the code to make the output data presented in a 4*4 matrix which is corresponding to the detection range of the D6T.
The output data with no human in the detection range:
Figure 3. Output data 1
The output data with the hand of a volunteer in the detection range:
Figure 4. Output data 2
LED matrix:
This week, the LED matrix we ordered last week arrived. We soldered the wire at the junctions (5v,GND,DIN) on the back of the LED matrix in order to connect the LED matrix to the Arduino.
Figure5. LED matrix
The 5V and GND were conneted to the corresponding pins on the Arduino board. The DIN was connected to pin 5 on the Arduino board. The Arduino board could supply the 5V DC voltage which was required by LED component.
We used a program in the library to test the functions and properties of the LED matrix. In the beginning, the LED was not worked as expected. We considered that it existed the possibility that we may break the LED matrix when we were soldering it. However, we found that we use the wrong data pin in the program at last. The LED worked as we wished after we fix the program. 
Figure6. LED Testing
In the next week, we will write a new program to realize that the LED matrix can show the changing of the temperature detected by the D6T by changing the colour of LED lights. The 8*8 LED matrix can be divided into 16 parts, each part represents one corresponding detection range of the D6T.


Comments

  1. Hello, im a student from Polytechnic Kota Kinabalu. Im doing a same project for my final year using d6t sensor, but I cant find the coding for it, can you please help me for that?

    ReplyDelete

Post a Comment

Popular posts from this blog

Week 5

Week 4

WEEK1