With the rapid development of electronic products, household appliances are becoming more and more intelligent. Intelligent household appliances all have a common feature, which is that they all use MCU as the central control unit. Compared with ordinary household appliances, intelligent household appliances combined with MCU are more convenient to use, safer and more reliable, and more efficient.
The touch desk lamp solution introduced in this article adopts touch dimming control, which is currently widely used in touch control of LEDs such as desk lamps and bedside night lights. It has a dimming memory function, and the default working mode is the last time it was turned off after being turned on. The touch lamp touch control solution can be powered by home appliances and lithium batteries, with low standby power consumption and stable performance. The main control chip of the touch desk lamp is TM56M1531, which is a Hispeed 8-bit RISC TM56 series MCU. The main features are as follows:
•ROM: 2Kx16-bit Flash program memory
•RAM: 256x8 bits
•System clock type selection:
Internal RC fast clock: 16MHz (FIRC)
Internal RC slow clock: (SIRC, 80KHz@4V)
• 2 independent timers
Timer0 - 8-bit timer divided by 1~256 prescale option with auto-reload/counter/interrupt/stop functions
Timer1 - 8-bit timer divided by 1~256 prescale option with auto-reload/interrupt/stop function
• Wake-up Timer (WKT)
Clocked by built-in RC oscillator with 4 adjustable interrupt times
-12ms/25ms/50ms/100ms@4V
• Touch key
Two different architectures: CTK and STK
4 channel touch keys with data counter
Introduction to the touch light function based on the TM56M1531 solution:
1. When the power is first turned on, the LED light is not on.
2. Short press the touch to turn on and off the two lights respectively; when the power is not cut off, the brightness of each short press to turn off the light will be memorized and saved, and the next time you touch to turn on the light, this brightness will be used as the initial brightness.
3. Long press the touch to achieve stepless brightness adjustment of the two lights. The duty cycle of the PWM signal for the lowest brightness is 2%, and the highest brightness is 100%. When a street lamp or two street lamps are on at the same time, long press the touch to adjust the brightness of the lamp steplessly.
4. Short-press touch and long-press touch can be used at any time without interference or restriction between their functions.
Previous article:Design of home gateway based on multiple communication media
Next article:The integration of audio and video SoC and AI technology brings smarter audio and video processing solutions
- Popular Resources
- Popular amplifiers
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- 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
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Laser driver circuit
- Looking for Windows XP SP3 ghost system!
- After the epidemic, will companies continue to work overtime like crazy?
- [RVB2601 Creative Application Development] CDK Development Environment Simple Application Experience Sharing
- What are radio waves?
- msp430 to tft
- [A-Current Signal Detection Device] Shaanxi Province First Prize_Topic A
- Log-Periodic Antenna
- [TI Recommended Course] #TI Robot System Learning Kit (TI-RSLK) Upgraded Version#
- Why does the bandpass filter output such a waveform?