Recently, I have a project that requires a relay that will work when it receives a low level. I use STC15W104 and a 5V/3A switching power supply on the market.
Something that seemed simple at first took me nearly three days to complete.
1. Phenomenon 1
The product is an ARM motherboard inside a 1U chassis, which needs to be hard restarted at regular intervals. Let's call it the STC control board. When the control board is not loaded, it triggers normally and is in line with the program. However, after loading, the first trigger is normal, but the second time the microcontroller starts to heat up, reaching more than 80 degrees, and then smokes directly. This phenomenon will 100% occur. The relay of the control board is not isolated.
Solution:
I connected a 1000UF capacitor to the 5V power supply. I tried to connect a 5.1V voltage regulator, but it didn't work.
2. Phenomenon 2
The board will malfunction, especially if there are people around, or if it has been working for a while, or if the switch 963 soldering iron can cause the relay to trigger malfunction.
Solution:
Modify the program's detection and add a debouncing operation (20ms delay); remove the "allow low-voltage reset" of the downloader. This will cause a low-voltage interrupt. No detection is performed (you can add a program to verify it yourself, but I don't have time to test it). I feel that this is very likely, that is, the surrounding environment caused the microcontroller to reset.
The above are some of my personal debugging experiences. I share them with you and hope that they can be useful to others.
Previous article:MCU C language application fixed address variables
Next article:The Three-wire Structure Design of Serial Peripheral Interface Circuit of Single Chip Microcomputer
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
- Brief Analysis of Automotive Ethernet Test Content and Test Methods
- How haptic technology can enhance driving safety
- Let’s talk about the “Three Musketeers” of radar in autonomous driving
- Why software-defined vehicles transform cars from tools into living spaces
- Switching Power Supply Reference Book, "Switching Power Converters: Principles, Simulation, and Design of Switching Power Supplies"
- Today's 10:00 AM broadcast | MPS inductor solutions help better switching power supply design
- Playing with Zynq Serial 17 - Creating a New Vivado Project
- Help analyze this MOS tube control circuit
- [Raspberry Pi Pico Review] 1. Develop Pico without MicroPython and C++
- McDonald's launches scented candles! But you may be afraid of this scent
- Beautiful ESP32 Pacman Clock
- RC Application Circuit Collection 2
- Segment code LCD segment code screen driving principle
- Single chip solution for 0-10V dimming driver