In this system, RA0~RA3 are used for seven-segment code display, RB6 controls the water gate switch, RB7 controls the electric heating tube, RC3~RC5 are used for button design and reading water volume, RC0~RC2 are used to communicate with DS1820 for water temperature measurement, RB0~RB1 scans the seven-segment code, RB2~RB5 LED indicator display, RC6 leakage detection, and RC7 controls the speaker for alarm and indication.
Keyboard and water volume measurement circuit Since only four levels of water volume are required to be displayed in this system, the water volume sensor uses a switch type sensor. When the water volume reaches a certain level, the level of that level will be lowered. The interface circuit is similar to pressing a key. Therefore, in the circuit design, the water volume level signal and the key are connected to the I/O port of the microcontroller through a 74HC148 priority encoder. The key has a higher priority than the water volume signal, and the high-level water volume signal has a higher priority than the low-level signal to ensure that the key can be responded to first.
The temperature of the circuit is displayed in two-digit seven-segment code, with a display range of 0℃~99℃. The water volume is displayed in one-digit seven-segment code, showing 1, 2, 3, 4, four water levels. The temperature and water volume are scanned and displayed cyclically. Four LEDs are used for the current key function setting.
The single chip microcomputer of the water temperature and water volume control circuit controls the relay through photoelectric coupling to cut off or connect the power supply of the heating tube and close or open the water valve, thereby achieving the control of water temperature and water volume.
Leakage detection and alarm circuit Since the water heater works in a humid environment, it needs to have leakage detection and alarm functions. The leakage detection is performed by shaping the output of the leakage detection coil and inputting it to the RC6 port. The circuit schematic is shown in Figure 3 (a). When the leakage current exceeds a certain threshold, the comparator outputs a low level, otherwise it maintains a high level, and then a monostable trigger circuit generates a waveform as shown in Figure 3 (b). The low level holding time t can be adjusted and set by the monostable trigger. In this system, t is 10ms. Since PIC16C57 has no interrupt function, the program must query the RC6 port at a certain interval (less than 10ms) to detect whether there is leakage. Once RC6 is detected to be low, the heating tube current is cut off after confirmation, and an alarm is issued at the same time. The alarm circuit also alarms when the sensor fails or overheats. PIC16C57 itself has a watchdog timer, which can automatically perform power-off protection and system reset when the system is abnormal.
The temperature measuring element of the water temperature measurement circuit adopts DALLAS's single-wire digital temperature sensor DS1820. DS1820 provides nine-bit temperature readings, with a measurement range of -55℃~125℃. It adopts a unique 1-WIRE bus protocol, and only needs one port line to achieve two-way communication with the MCU. It has the characteristics of simple connection, high precision, and high reliability. When working, it is powered by the bus, and the microcontroller sends a command code to read the temperature value.
Previous article:Design of Intersil Power Front-End Microcontroller Circuit
Next article:Circuit design of ECG acquisition system using STM32
- MathWorks and NXP Collaborate to Launch Model-Based Design Toolbox for Battery Management Systems
- STMicroelectronics' advanced galvanically isolated gate driver STGAP3S provides flexible protection for IGBTs and SiC MOSFETs
- New diaphragm-free solid-state lithium battery technology is launched: the distance between the positive and negative electrodes is less than 0.000001 meters
- [“Source” Observe the Autumn Series] Application and testing of the next generation of semiconductor gallium oxide device photodetectors
- 采用自主设计封装,绝缘电阻显著提高!ROHM开发出更高电压xEV系统的SiC肖特基势垒二极管
- Will GaN replace SiC? PI's disruptive 1700V InnoMux2 is here to demonstrate
- From Isolation to the Third and a Half Generation: Understanding Naxinwei's Gate Driver IC in One Article
- The appeal of 48 V technology: importance, benefits and key factors in system-level applications
- Important breakthrough in recycling of used lithium-ion batteries
- 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
- A troubleshooting example of connecting XDS100V3 debugging target board with CCS
- 【Android Development Learning Road】Part 2-- HelloEEWorld
- 51 MCU library serial port sends a segment of characters and the digital tube receives and displays them (use the serial port debugging assistant to modify the data)
- pic18F27Q10 eeprom erase problem
- 【BearPi-HM Micro】Part 4: Familiar with the Openharmomy compilation framework and serial port interactive output
- 50 ways to use TI CC6678 digital signal processor (DSP)
- Definition of Direct Current and Alternating Current
- [Reference Book] PCB Design Tips (ADI Think Tank)
- Share: How to reduce EMI and shrink power supply size with integrated active EMI filters
- Calculation and setting of baud rate of msp430 microcontroller