swnBw8j9T

9th LCSC Electronics Design Competition - Electronic Desktop Decoration

 
Overview

This comprehensive desktop temperature and humidity meter case study essentially combines all the previous modules into a single project. It uses two AAA batteries for power by default, and due to power consumption considerations, it's in sleep mode by default.
When a button is pressed, an interrupt is triggered, ending sleep mode, performing a button press check, acquiring the temperature and humidity readings, and starting the digital display. Simultaneously, a timer interrupt is started, displaying the data twice before returning to sleep, awaiting the next wake-up.
To detect battery voltage, ADC-related code can be added;
for timed readings, RTC real-time clock code can be added.
All code in this project is generated using STM32CubeMX, which by default generates corresponding files based on the peripherals. I recommend not modifying the overall project structure (as the code is small); simply write the relevant driver code directly in the corresponding peripheral files.
Finally, if you haven't studied the previous case study projects, I suggest reviewing them, especially the interrupts. The STM32G0 series uses the Arm Cortex M0+ core, a two-stage pipelined von Neumann architecture with a 4-bit interrupt priority. These are different from the STM32F103.
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2026-03-28 02:52:39

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号