Posts

Showing posts from February, 2018

Week 4

Image
  In this week, our group worked on the ardiuno program, which could control the color and brightness of the LED lights according to the data provided by the D6T. The program is almost worked, but there are still some problems, which are needed to be solved to make this program perfect.   We have designed out two different programs about how to present the properties of the output data on the LED matrix. First program:   The first program presents the changing of the temperature by comparing the temperature in each section with the average temperature of all of the sixteen temperatures. Algorithm design:   This program is designed base on the libaray <FastLED.h> [1]. 1.Divided the 8*8 LED matrixes into 16 parts according to the corresponding detection area of D6T. 2.Put the 16 temperature data into a 4*4matrix. 3.Calacutlate the average value of the 16 temperature data, and compare the average value with that of the last group of data. If the average ...

Week 3

Image
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 wi...

WEEK2

Image
In this week, the main task we finished was the circuit connection of the LCD and Arduino, and we also tested the work of the LCD with the program. However, during the experiment, the difficulty we met was that the components including shift register, contact of I2C interface and wires which we ordered last week did not arrived. For the connection of Arduino and 2x16 LCD, we searched some online cases about the correct connection and we found that even though we did not require the shift transistor, we still needed a 10 KΩ pot to connected with V0 pin to adjust the contrast of LCD. However, we did not have 10 KΩ pot as well. Eventually, we used a fixed resistor to replace the 10 KΩ pot. We used the resistor valued 2700 Ω between V0 pin and ground to build the circuit at first as Figure 1 shows. Figure 1. The Circuit Connection of LCD and Arduino However, the characters shown on LCD were not clear enough which is displayed in Figure 2. Figure 2. The First Display of LCD ...

WEEK1

Image
In this week, we mainly performed four activities about out project. Firstly, we analysed the circuit we would build in our project.  We had already received the four major components which are Arduino Uno, D6T, MC21609AB6W-BNMLW (2x16 LCD) and buzzer. However, if we wanted to connect three other components to Arduino, we may need another several elements between each component and Arduino.  For D6T, we checked its datasheet and found that its interface is I2C. In order to connect it to Arduino, we need the both house and contact of I2C with proper size for D6T. For 2x16 LCD, there are 8 data bus lines named D0-D7, which indicates that LCD receives the data in parallel way. However, the output data of Arduino Uno is in series. To make two LCD and micro-processor compatible with each other, the series-to-parallel shift register called 74hc595 is required. As for the buzzer, even though the output circuit 40mA is enough for driving buzzer whose rated current is 33mA. The resis...