4009 views|2 replies

4

Posts

0

Resources
The OP
 

【IoT Smart Home System】---Temperature and humidity data collection and upload (1) [Copy link]

 

The host of this system uses STM32F429ZIT6. Select CubeMx for hardware configuration on the development tool and use Keil for compilation and download.

Today I would like to share my progress since I received the development board one month ago.

(1) Perform a simple test under the FreeRTOS operating system

For the 429I-DISC1 official development board, CubeMx has already been configured and can be used directly.

LED light test: Create an LED light flashing task

Serial port test: create a serial port printing task

During serial port debugging, you need to pay attention to two issues

First point add header file #include "stdio.h" in usart.c

Use the HAL library to implement the Fputc function and the Fgetc function respectively

Second point: Open Use MicroLIB

(2) Use the DHT11 sensor to obtain temperature and humidity data

The acquisition principle of the sensor DHT11 will not be introduced here.

The key issue is that DHT11 needs to use millisecond-level delays when acquiring data.

Using Timer 2 to create a microsecond delay function

Change the serial port test task to print temperature and humidity data

This post is from DigiKey Technology Zone

Latest reply

What method are you going to use to upload? Looking forward to an excellent solution.   Details Published on 2022-8-1 17:32
 
 

23

Posts

0

Resources
2
 

Good design needs good pCB carrier. Jiepei PCB now provides free proofing. You can enjoy it by searching on Baidu and entering the official website.

This post is from DigiKey Technology Zone
Personal signature

PCB单双面板免费打样,顺丰包邮!!注册领券。

 
 
 

6818

Posts

11

Resources
3
 

What method are you going to use to upload? Looking forward to an excellent solution.

This post is from DigiKey Technology Zone
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list