1.1 Hardware function planning
The functions realized by the intelligent residential home control device include: monitoring the residential room environment (temperature, humidity); realizing remote billing for the three meters (water meter, gas meter, and electricity meter) of the residents; realizing three protections for the residents (fire prevention, gas leakage prevention, and theft prevention); realizing timing control of kitchen equipment; and realizing automatic exhaust control for the bathroom. Each device can be used as an intelligent node, and multiple nodes constitute the intelligent community management network system (i.e., LonWorks network). Setting up a server in the community center can realize the management of the entire network. In addition, home computers can communicate with home control devices to realize the management of indoor equipment.
1.2 Overall hardware design plan
Based on the above planning of the device functions, the device can be divided into two parts, namely, the Lon control module design and the acquisition module design. The control device takes the Lon control module as the core, and completes the various functions of the device by acting on various signals collected by the acquisition circuit. The Lon control module includes neuron chip, memory, crystal oscillator, transceiver, etc.; the acquisition module includes I/O interface circuit, photoelectric isolation protection circuit, drive circuit, buffer circuit, holding circuit, latch circuit and A/D conversion circuit, etc.; the two parts are connected through an 18-pin dual-in-line board edge connector and a 6-pin single-in-line board edge connector, which conforms to the modular design and is easy to install and debug. The schematic diagram of the hardware device is shown in Figure 1.
1.3 Lon control module design
In the design of this module, the selection of neuron chips, allocation of memory, and configuration of communication ports are involved, which are introduced as follows.
1.3.1 Selection of neuron chips
Neuron chips include Neuron3120xx and Neuron3150. The two chips are basically the same in function, except that the 3120 chip contains 2k memory, which is mostly used in hardware structures with fewer functions and no need for memory expansion; while the Neuron3150 chip has 0.5k EEPROM and 2k RAM memory inside, which can be expanded to store information, and can be used to develop more complex application systems. This article selects the Neuron3150 chip as the core device of the development device.
1.3.2 Communication port configuration
The communication port of the Neuron3150 chip can be connected to a variety of transmission media interfaces (i.e., network transceivers) to achieve a wide range of transmission rates. At the same time, the configuration of various types of network transceivers also provides conditions for selecting different communication media. The home control device in this design uses an FTT-10 transceiver configuration and uses twisted pair cables to transmit information with home computers and the entire community management network. The FTT-10 transceiver uses transformer isolation to achieve high isolation and high anti-interference. Its transmission distance can reach 2700 meters and the transmission rate can reach 78 kb/s, which can meet the requirements of information transmission between the device and the host computer. The communication port of the Neuron3150 chip can be configured into three working modes: single-ended working mode, differential working mode, and dedicated working mode. The pin definitions corresponding to different working modes are different, as shown in Table 1.
[page]
The communication port of Neuron3150 chip in this device is configured in single-ended working mode, and the configuration of FTT-10 transceiver is shown in Figure 2, where the CLK end of FTT-10 is connected to CLK2 of 3150 to ensure the timing consistency of the two.
1.3.3 Memory allocation and circuit design
Since the internal memory of Neuron3150 chip cannot meet the storage requirements, in the design of Lon control module, external 32k flash memory and 24kSRAM are used as external memory, of which 16kB (addressing range 0X0000-0X3FFF) flash memory is used to save Neuron3150 chip firmware, and another 16kB flash memory (0X4000-0X7FFF) is used to store various configurations and application information. 24k SRAM is mainly used to store application data and cache of network data packets. The memory allocation diagram is shown in Figure 3:
In the circuit design, the A15 port of the 3150 chip is used to realize the chip select of the 32k flash memory (low level is valid), and the result of the NAND operation of A14 and A13 of the 3150 chip is used to drive the chip select of the SRAM (low level is valid). The specific circuit design is shown in Figure 4.
1.4 Collection circuit design
According to the functions to be realized by the device, the collection circuit is planned to be 12 digital inputs, 12 digital outputs, and 4 analog inputs: the I/07 to I/0010 pins of the Neuron3150 chip are used to receive the indoor temperature and humidity values, configured as a 4-channel analog circuit; the I/OO to I/O-6 pins and the 3-channel I/O ports expanded by the address bus together form 24 digital signals.
1.4.1 Analog input circuit design
The analog input circuit is designed to detect the room environment (temperature, humidity), and the circuit is shown in Figure 5.
The Max186 chip in the figure is used for A/D conversion. It is produced by Maxim Corporation of the United States. Max186 is a 12-bit data acquisition integrated chip. It combines 8-channel multiplexers, large bandwidth tracking/holding circuits and serial interfaces. The 4-wire serial interface can be directly connected to SPI, QSPI Microwire devices without external logic, and uses internal clocks or external serial interface clocks to complete successive approximation analog/digital conversion. The analog input signal entering the chip through the emitter follower is a 0-5 V voltage signal, which can be converted into a digital signal and serially enter the neuron chip in the form of Neurowire bus, and then stored in the memory SRAM. These data can be transmitted to a home computer for display and recording.
[page]
1.4.2 Digital circuit designDigital circuit design includes input circuit design and output circuit design.
(1) Digital input circuit
The digital input circuit is designed to collect three-meter and three-protection signals. The circuit is shown in Figure 6. The digital input circuit is based on the 6-bus expanded by the I/OOI/O-5 pins in the neuron chip, and forms 12 channels through the chip selection signal. The photoelectrically isolated input end of this circuit is connected to various sensor signals to prevent the components from being burned due to excessive sensor input voltage. Two 74LS245 chips are used as digital input buffer circuits to ensure that the device can accurately receive sensor signals.
(2) Digital output
circuit The digital output circuit is based on the 6-bus extended by the I/OOI/O-5 pins, and forms 12 channels through the chip select signal. The circuit is shown in Figure 6. The two 74LS273 chips in the figure are used as output latch circuits. The circuit maintains the input state, so that the output signal of the Lon control module can be reliably transmitted to various actuators.
1.5 Anti-interference circuit design
In the hardware design process, a variety of anti-interference design measures were considered.
(1) Use a high-quality power supply to power the controller, connect the power supply at a single point, and connect the ground at a single point.
(2) The digital circuit and analog circuit on the circuit board are separated as much as possible, the digital ground is separated from the analog ground, and the ground wire and power wire are as thick as possible.
(3) The input signal is isolated by an optocoupler to prevent the backflow generated by the peripheral device from impacting the system circuit when it is in action.
(4) A discharge diode should be added to the relay coil of the digital output, and a resistor can be connected in series to soften the signal transition edge or provide a certain amount of damping.
2 Program Design
The above functions are modularly designed in the application, mainly including remote meter reading module, alarm linkage module, indoor environment monitoring module, and sequence control module. Each functional module is driven by timer events. The program flow chart is shown in Figure 7:
3 Conclusion
This device can be used to control the temperature and humidity of the house to meet the standards of smart houses (temperature is controlled at 18-28℃, humidity is controlled at 30-70%); this device can accurately collect various information and issue commands in a pre-set manner to achieve three protections (fire, theft, and gas), monitor kitchen cooking utensils and bathroom exhaust, and three-meter billing functions; this device can accurately transmit the information collected by the three meters, the indoor temperature and humidity values, and the status of indoor equipment to the home computer, and the home computer can monitor the work of the control device.
Previous article:Application of CAN bus in engine testing
Next article:Application of CAN bus in online detection system of high voltage switch cabinet in substation
- Keysight Technologies Helps Samsung Electronics Successfully Validate FiRa® 2.0 Safe Distance Measurement Test Case
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Seizing the Opportunities in the Chinese Application Market: NI's Challenges and Answers
- Tektronix Launches Breakthrough Power Measurement Tools to Accelerate Innovation as Global Electrification Accelerates
- Not all oscilloscopes are created equal: Why ADCs and low noise floor matter
- Enable TekHSI high-speed interface function to accelerate the remote transmission of waveform data
- How to measure the quality of soft start thyristor
- How to use a multimeter to judge whether a soft starter is good or bad
- What are the advantages and disadvantages of non-contact temperature sensors?
- 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
- DSP Learning (3) TMS320VC5402 Principle and Application
- Discussion on fast crc8 calculation
- How to avoid pitfalls in GPIO operations?
- Please advise on the position of the rectifier bridge and common-mode inductor in power supply design
- Chinese manual and examples of GD32VF103 of domestic RISC-V
- Implementation of full-duplex programmable UART based on finite state machine.pdf
- Programmers make their own epidemic simulation program: The spread of the epidemic is more terrible than you think
- BornHack 2022 Game Badge
- Radar design will usher in a major change - reconfigurable PA
- Counting TI's star products in T-BOX: Automotive Ethernet | Section 1 DP83TC811S-Q1: Automotive Ethernet makes your T-BOX...