Any views expressed within media held on this service are those of the contributors, should not be taken as approved or endorsed by the University, and do not necessarily reflect the views of the University in respect of any particular issue.

Arduino Temperature humidity sensor DHT11 Test fix

Test equipment: Arduino temperature humidity sensor DHT11

Tester: Li Lyu, Can Huang

Technical Support: Joe Hathway

When testing the Temperature humidity sensor DHT11 for the first time, the serial monitor could not display temperature and humidity data. The initial check of the hardware connection is correct, and the problem is suspected in the use of code or libraries.

Troubleshooting & code modification
Huang Can and I asked Joe for help, and after checking the code, he found that the problem was the installation of the library and the code setup.
Joe pointed out that after we install the DHT library in Arduino, we need to call the DHT code correctly in the Tool. The sensor type in the code was originally set to DHT22, but we actually used DHT11, causing the data to not be read properly.
We will DHT dht(DHTPIN, DHT22); Change it to DHT dht(DHTPIN, DHT11). Make sure the code matches our sensor model.

After the code was modified, it was uploaded to Arduino again, and the serial port monitor successfully displayed temperature and humidity data, and the problem was solved.

Arduino Grove Sound Sensor Test Record

Test equipment: Arduino Grove sound sensor

Tester: Li Lyu

Test objectives:
1. Test the Grove sound sensor’s data detection response time and optimize its detection speed.
2. Evaluate the sound sensor’s ability to detect breath and sound to determine if it is suitable for subsequent installation interactions.

Test process & Results:The code runs successfully. The serial monitor can display the sound signal data and change with the environment sound.


However, under the current test conditions, the response time of data detection is long and there is a certain delay.
The data fluctuates greatly due to background noise.

Ardunio sensor testing 2

Test content: Use of sound sensors
Test result: Success! The sensor senses well, the value changes significantly during the interaction and gives the correct display feedback.
Tester: li
Test date: 13/02/2025

Test: Temperature and humidity sensors and connection of Ardunio&TD
Test result: Failed. The direction of the sensor display is off, and does not read the temperature and humidity values but displays the distance values, and there are also errors in the combination of the two software, which need to be modified with the advice of professionals.
Tester: Li & Yixuan & Can
Records: Xinyi & Hefan
Test Date: 14/02/2025

Arduino Testing

The testing for Ultrasonic sensor, Temperature and Humidity sensor and Arduino PIR Motion Sensor.

Li Lyu and Can Huang borrowed some sensors from the book it centre and conducted a series of tests based on the existing sensors. In addition, we summarized the list of required materials by analyzing the existing technologies of the project:

1. Ultrasonic sensor test
Tester: Can Huang, Li Lyu
Test time: 2/3
Test materials: Ultrasonic sensors
Test results: In this test, we successfully connected the ultrasonic sensor to the UNO board and uploaded the code through Arduino software. After inspection, the code runs smoothly, and the serial monitor successfully displays data changes, indicating that the sensor can work normally and feed back the measurement data in real time. The test results show that there are no obvious problems in hardware connection, code writing and data reading, and the feasibility of the system is preliminarily verified.

2. Temperature and Humidity sensor
Tester: Lu Li, Huang Can
Test time: 2/6
Test materials: Temperature and Humidity sensor,10K resistor, Uno board, bread board
Test result: In this test, DHT11 temperature and humidity sensor is connected to Arduino UNO board, and VCC(5V) and SIG(2) are connected in series through 10kΩ pull-up resistor.
1. The initial code could not run because the DHT11 sensor library was not installed. The problem was resolved after installation.


2. After the code is uploaded, it is found that an additional pull resistor is needed to ensure that the data is read successfully, and the code runs normally after the addition.


3. The serial monitor successfully obtained data, but only detected distance data, and the temperature data did not change.

For future improvements, we need to further examine the code and sensor connections to ensure that the temperature data is read correctly.
And check the possible hardware or software problems to ensure the smooth completion of the experiment.

3. Arduino PIR Motion Sensor
Tester: Li Lyu, Can Huang
Test time: 2/6
Test material: Arduino PIR Motion Sensor, uno board
Test results:
In this test, we use the Arduino HC-SR501 PIR Sensor to connect with the Arduino UNO board and upload the code. When the code runs successfully, the serial monitor can normally detect data changes, and the HC-SR501 sensor can identify data changes when people move, and the function is basically normal, but in some cases, the sensor is not sensitive enough, and there is a delay or failure to detect in time.
Further adjustment of sensor parameters or the environment is required to improve the detection sensitivity.

css.php

Report this page

To report inappropriate content on this page, please use the form below. Upon receiving your report, we will be in touch as per the Take Down Policy of the service.

Please note that personal data collected through this form is used and stored for the purposes of processing this report and communication with you.

If you are unable to report a concern about content via this form please contact the Service Owner.

Please enter an email address you wish to be contacted on. Please describe the unacceptable content in sufficient detail to allow us to locate it, and why you consider it to be unacceptable.
By submitting this report, you accept that it is accurate and that fraudulent or nuisance complaints may result in action by the University.

  Cancel