07-13
2023
SN8F5701 is compatible with MCS-51 instruction set eight-bit microcontrollers, and under the same execution frequency standard, its efficiency can reach up to 12.1 times of the original 8051. At the same time, the operating voltage range (1.8 V to 5.5 V) and operating temperature (-40°C to 85°C) are expanded through advanced semiconductor technology, allowing the product to operate at high speed in various applications.In this microcontroller, built-in 4 KB ROM, 256 bytes IRAM. In addition, the microcontroller also has a 12-bit high-precision ADC, a set of PWM generators, two sets of 16-bit counters (timers) and a UART communication interface to meet the needs of consumer electronics, home control, and brushless motor control. occasion.Shenzhen Zuchuang Microelectronics is the agent of Songhan in mainland China. It sells Songhan microcontrollers and voice ICs, and can provide technical support for Songhan's solutions. It can also directly develop and design electronic products for customers. It has rich hardware development With experience in program design, it can help customers quickly develop products and put them on sale as soon as possible.SN8F5701.pdf
07-12
2023
SN8P2501D is an 8-bit microcontroller with RISC-like system, featuring high performance and low power consumption. 1T (one instruction cycle is one clock cycle) structure, 16MIPS computing power. In addition, the high EFT performance makes it suitable for use in high-noise industrial environments.SN8P2501D has first-class IC structure, including 1K-word program memory (OTP ROM), 48-byte data memory (RAM), two 8-bit timer counters (T0, TC0), a watchdog timer, and 3 interrupts Source (T0, TC0, INT0), one channel PWM output (PWM0), one channel buzzer output (BZ0) and 4 layers of stack registers.SN8P2501D also provides 4 different oscillator modes for the system as the system clock: including high/low speed crystal oscillator/ceramic resonator and cheap RC oscillator. In addition, SN8P2501D also includes an internal 16MHz RC oscillator as the system clock and a programmable internal low-frequency RC oscillator as the system clock in low-speed mode.Shenzhen Zuchuang Microelectronics is the first-level agent of Sonic, which can sell Sonic single-chip microcomputers and voice ICs in mainland China, and can provide technical support for Sonic solutions, and can also directly develop and design electronic products for customers. Experience in hardware development and program design can help customers quickly develop products and sell them on the market as soon as possible.SN8P2501D.pdf
07-13
2023
The 8-bit single-chip microcomputer SN8P2711B has a RISC-like system, which has the characteristics of high performance and low power consumption. Each instruction cycle is a clock cycle (1T) structure provides up to 16MIPS computing power. In addition, the high EFT capability protects the microcontroller, making it suitable for working in high infection environments. SN8P2711B has first-class IC structure, including 1K-word program memory (OTP ROM), 64-byte data memory (RAM), two 8-bit timer counters (TC0, TC1), a watchdog timer, and 5 interrupts Source (TC0, TC1, ADC, INT0, INT1), 5+1 channel 12-bit ADC (one internal ADC channel for VDD measurement), 2-channel PWM output (PWM0, PWM1), 2-channel buzzer output (BZ0, BZ1) and 4-level stack scratchpad. In addition, users can also choose the oscillation mode by themselves. SN8P2711B provides 4 different oscillation modes for the system as the system clock, including high/low speed crystal oscillator, ceramic resonator and cheap RC oscillator. In addition, SN8P2711B also includes an internal 16MHz RC oscillator as the system clock and a low-frequency RC oscillator used in low-speed mode (by program control).Shenzhen Zuchuang Microelectronics is the agent of Songix in Shenzhen in mainland China. It sells Songix single-chip microcomputers and voice ICs, and can provide technical support for Songix solutions. It can also directly develop and design electronic products for customers. It has a wealth of hardware Experience in development and programming can help customers quickly develop products and put them on the market as soon as possible.SN8P2711B.pdf
07-12
2023
Application of SCM Speech Processing TechnologyMultimedia technology is an extremely active emerging technology in modern computer application technology. Audio-visual processing is the core research object of multimedia technology, and speech processing is an extremely important practical technology in sound processing technology. The basis of speech processing technology is phonetics and digital signal processing, which includes speech analysis technology, speech storage technology, speech recognition technology and speech synthesis (reproduction) technology. This article takes Sunplus SPCE061A as an example to discuss the principle and application of single-chip voice processing technology.1. Audio processingComputer processing audio mainly adopts several technologies: sampling and quantization technology, audio preservation technology, audio compression coding technology, audio reproduction and identification technology. Sampling and quantization is to collect the sounds in nature into the computer according to certain requirements, which is the basis of sound processing technology. The frequency of audible audio is in the range of 20Hz~20kHz, and the frequency of voice is generally in the range of 60Hz~500Hz.Audio can be divided into three types: waveform sound, speech and music. Like any sound, speech is also manifested as a waveform sound, but the waveform sound cannot express the connotation of language and speech. Speech is an abstraction of speech sound, the carrier of language, and an information system unique to human society. Music is a special sound, a weak subset of sound, and a normalized and symbolized sound. But music cannot symbolize all sounds. A musical score is a group of symbols that symbolize sound, and different combinations represent more complex sound information than a single number.When a computer processes audio, it must first digitize (discrete) the analog (continuous) sound waveform, which is achieved through an A/D converter. The converted audio is called digital audio, and its quality depends on the A/D conversion The conversion rate and resolution of the converter, the higher the rate, the more data collected per unit time, the higher the resolution, the higher the accuracy of the collected data, so the audio sampling frequency and quantization digits in audio processing are two an important parameter. The collected audio signal is saved by audio file. Audio files are divided into two categories: sound files and MIDI files.2. SCM voice processing technologyIn terms of single-chip voice processing, the usual solution adopts two approaches: one is to expand the design of the single-chip itself, and place the voice processing function module directly in the single-chip; the other is to expand the functions of the single-chip with the help of a special voice processing chip. Due to the large number of special voice processing chip series and single function, it is necessary to add a lot of peripheral devices to realize a complete system, so it is not very convenient to use. Therefore, comparing these two solutions, the first one has obvious advantages, but as For general-purpose processors, this solution is inappropriate.Chips specially designed for speech recognition and speech processing applications need a high-speed DSP core processor to undertake control and computing tasks, and also need an appropriate amount of on-chip integrated ROM/RAM memory to store applications, drivers, various data and Speech recognition, speech compression algorithms and constant tables used in the algorithms, etc., which increase the cost of chip design and manufacturing. Because the integrated ROM/RAM memory of the single-chip voice processing chip cannot be very large, the single-chip microcomputer is not suitable for large-scale voice processing systems.3. Speech processing technology of Sunplus SPCE061A MCU3.1 Sunplus SPCE061A MCUSunplus SPCE061A is a microcontroller with 16-bit μ’nSP structure. The chip has a hardware multiplier, which can realize complex operations such as multiplication and inner product operations. Sunplus SPCE061A single-chip microcomputer is advanced in design, outstanding in features, easy to learn and use, and reflects the new trend of modern microcontroller industry development.3.2 Realization of Speech Processing by Sunplus SPCE061A MCUSunplus SPCE061A makes functions related to speech processing into function modules, which are realized through API calls. These functions are divided into two categories: Sunplus Audio Coding (SACM) for audio data playback and Speech Recognition (BSR) for recognizing speech.After the WAVE files generated by input are compressed into corresponding voice data such as SACM_A2000 or SACM_S480 according to different compression algorithms, these data can be processed by SACM-LIB library. The library makes A/D, encoding, decoding, storage and D/A into corresponding modules. Each module has its application program interface API function, and the respective functions can be realized by calling the corresponding function.For example, for speech recognition of a specific person, the SACM-LIB library provides API functions defined in two formats including C language and assembly language. The commonly used speech recognition API functions are:(1) SRAM initialization function int BSR-DeleteSD-Group (int); (2) training function int BSR-Train (int CommandID, int TrainMode); (3) recognition initialization function int BSR-InitRecognizer (int AudioSource); (4 ) Get the recognition result function int BSR-GetResult (void); (5) Stop the recognition function void BSR-StopRecognizer (void); (6) Identify the interrupt program-BSR-FIQ-Routine;With the relevant API functions of voice compression and playback, a complete voice application system can be formed.SummarizeVoice processing technology has an important impact on the design technology of the next generation of multi-mode interactive human-machine interface. With the rapid increase in the demand for high-performance and high-stability voice interfaces in consumer electronics products, single-chip microcomputers and embedded voice processing technologies are developing rapidly. . However, there are still some problems in the solution of voice processing technology. With the further research of software and hardware technology, these problems will be reasonably solved in the near future. Voice processing technology will bring a wider space for the in-depth application of computers. .The above is the application of single-chip voice processing technology introduced by Shenzhen Zuchuang Microelectronics Co., Ltd. for you. We have rich experience in customized development of smart electronic products, can evaluate the development cycle and IC price as soon as possible, and can also calculate the PCBA quotation. We are the agent of Sonix MCU and Yingguang MCU agent, selling and developing MCU and voice IC solutions of Sonix and Yingguang. We act as an agent and develop ICs and solutions for Jieli, Ankai, Allwinner, Realtek, etc., and also develop BLE Bluetooth ICs, dual-mode Bluetooth modules, wifi modules, and IoT modules. We have hardware design and software development capabilities. Covering circuit design, PCB design, single-chip microcomputer development, software custom development, APP custom development, WeChat official account development, voice recognition technology, Bluetooth development, wifi technology, etc. It can also undertake the research and development of smart electronic products, the design of household appliances, the development of beauty equipment, the development of Internet of Things applications, the design of smart home solutions, the development of TWS earphones, the development of Bluetooth earphone speakers, the development of children's toys, and the research and development of electronic education products.
07-11
2023
The SN8F5702 is compatible with the MCS-51 instruction set eight-bit microcontroller, and under the same execution frequency standard, its efficiency can reach up to 12.1 times that of the original 8051. At the same time, the operating voltage range (1.8 V to 5.5 V) and operating temperature (-40°C to 85°C) are expanded through advanced semiconductor technology, allowing the product to operate at high speed in various applications.In this microcontroller, built-in 4 KB ROM and 256 bytes IRAM. In addition, the microcontroller also has a 12-bit high-precision ADC, 1 set of PWM generators, 3 sets of 16-bit counters (timers) and UART, SPI, I2C communication interfaces to meet consumer electronics products, home control, brushless Applications such as motor control.Shenzhen Zuchuang Microelectronics is the first-level agent of Songix in mainland China. It sells Songix single-chip microcomputers and voice ICs, and can provide technical support for Songix solutions. It can also directly develop and design electronic products for customers. It has a wealth of experience. Experience in hardware development and program design can help customers quickly develop products and put them on the market as soon as possible.SN8F5702.pdf
07-10
2023
SN8F5703 is compatible with MCS-51 instruction set eight-bit microcontroller, and under the same execution frequency standard, its efficiency can reach 12.1 times of the original 8051. At the same time, the operating voltage range (1.8 V to 5.5 V) and operating temperature (-40°C to 85°C) are expanded through advanced semiconductor technology, allowing the product to operate at high speed in various applications.In this microcontroller, 8 KB ROM, 256 bytes IRAM and 256 bytes XRAM are built-in. In addition, the microcontroller also has 12-bit high-precision ADC, 1 set of operational amplifiers (OP-Amp), 1 set of comparator circuits, 1 set of PWM generators, 3 sets of 16-bit counters (timers) and UART, SPI, I2C communication interface to meet the application occasions of consumer electronics products, home control, brushless motor control, etc.Shenzhen Zuchuang Microelectronics is a first-class Sonic agent in mainland China. It sells Sonic single-chip microcomputers and voice ICs, and can provide technical support for Sonic solutions. It can also directly develop and design electronic products for customers. It has rich Experience in hardware development and program design can help customers quickly develop products and put them on the market as soon as possible.SN8F5703.pdf
07-09
2023
SN8F5705 is compatible with MCS-51 instruction set eight-bit microcontroller, and under the same execution frequency standard, its efficiency can reach up to 12.1 times of the original 8051. At the same time, the operating voltage range (1.8 V to 5.5 V) and operating temperature (-40°C to 85°C) are expanded through advanced semiconductor technology, allowing the product to operate at high speed in various applications.In this microcontroller, built-in 16 KB ROM, 256 bytes IRAM and 1 KB XRAM. With the assistance of the hardware multiplication and division unit (MDU), complex mathematical operations can be greatly accelerated. In addition, the microcontroller also has 12-bit high-precision ADC, 2 sets of operational amplifiers (OP-Amp), 2 sets of comparator circuits, 3 sets of PWM generators, 3 sets of 16-bit counters (timers) and UART, SPI, I2C communication interface to meet the application occasions of consumer electronics products, home control, brushless motor control, etc.Shenzhen Zuchuang Microelectronics is the first-level agent of Songix in mainland China. It sells Songix single-chip microcomputers and voice ICs, and can provide technical support for Songix solutions. It can also directly develop and design electronic products for customers. It has a wealth of experience. Experience in hardware development and program design can help customers quickly develop products and put them on the market as soon as possible.SN8F5705.pdf
07-08
2023
Single-chip touch sensing technology is a technology widely used in electronic devices and embedded systems to realize the interaction and control between users and devices. It detects the touch action of the human body, converts the touch signal into an electrical signal, and processes and responds through the single-chip microcomputer.The main principle of touch sensing technology is based on the detection of capacitance changes. When a human body approaches or touches a surface with sensing electrodes, it causes a change in capacitance. This change can be detected and measured by a capacitive sensor. Commonly used touch sensing technologies include capacitive touch and resistive touch.In capacitive touch technology, capacitive sensors are usually composed of conductive materials such as ITO (indium tin oxide)-coated glass or polymer films. When the human body approaches or touches the capacitive sensor, a capacitive coupling is formed between the human body and the sensor. The microcontroller detects touch events by measuring changes in capacitance and converts them into digital signals for processing.Resistive touch technology is based on a change in resistance at the point of touch. The touch screen is usually composed of two layers of transparent conductive film. When the touch point touches the conductive film, the resistance between the two layers of conductive film will be changed. The single-chip microcomputer detects the touch event by measuring the change of the resistance, and performs corresponding processing and responseIn the single-chip microcomputer touch sensing technology, the single-chip microcomputer plays an important role. It is connected with the touch sensor through the interface circuit to obtain the electrical signal generated by the sensor. The microcontroller then samples, filters, and processes these signals to determine the occurrence and location of touch events. Once a touch event is detected, the microcontroller can perform corresponding operations, such as controlling the content of the display, adjusting the volume, switching menus, etc.Single-chip touch-sensing technology is widely used in modern electronic devices, such as smartphones, tablet computers, car navigation systems, and home appliance control panels. It provides an intuitive and convenient user interface that enables users to operate and control it through a touch screen or touch panel without the need for additional physical keys or controllers.In addition, MCU touch sensing technology also has some advantages, such as fast response time, high sensitivity, good durability, easy integration and high flexibility. These advantages make single-chip touch-sensing technology one of the commonly used interactive methods in modern electronic devices.During the development and application of single-chip touch-sensing technology, there are several key aspects to consider:Sensor design and layout: Select the appropriate touch sensor type (such as capacitive or resistive) and material, and do a suitable sensor layout. Sensor design and layout can affect touch sensitivity, accuracy, and reliability.Signal collection and processing: The single-chip microcomputer needs to collect the electrical signal output by the sensor, and perform appropriate filtering, amplification and digital processing on it. This includes the choice of sampling rate, the design of filtering algorithms, and the implementation of signal processing algorithms.Touch event detection algorithm: Through the analysis and processing of sensor signals, it is necessary to design and implement a touch event detection algorithm. These algorithms can be based on techniques such as threshold determination, edge detection, and pattern recognition to determine the occurrence and location of touch events.Response and interaction design: According to the detection result of the touch event, the microcontroller needs to perform corresponding operations and interactions accordingly. This may include changing the display, adjusting the volume, executing functional commands, etc. Responsive and interactive design needs to consider user experience and interface friendliness.System stability and reliability: Single-chip microcomputer touch sensing technology needs to have stability and reliability in practical applications. This includes design for suppression of noise and interference, adaptability to temperature and humidity, and power management.Integration and scalability: MCU touch sensing technology usually needs to be integrated with other system components, such as display screen, sound output, communication interface, etc. Interface protocols, communication protocols, and software development interfaces (APIs) need to be considered during design in order to achieve functional expansion and system flexibility.In short, single-chip touch-sensing technology realizes a convenient and intuitive user interaction method by detecting and responding to human touch actions. It is widely used in modern electronic devices, and with the advancement and innovation of technology, it will continue to develop and evolve to provide users with a more intelligent and convenient interactive experience.
06-03
2022
The Characteristics and Application Design of SCM Interface TechnologyThe interface refers to the mutual interface of various characteristic components. For a single-chip microcomputer, the part where the CPU communicates with other peripheral circuits and components is the interface. The interface is divided into the software part and the hardware part. Interface software refers to the program designed to realize information exchange; hardware interface refers to the connection and logic circuit between two component entities. Under the current technical conditions, the hardware interface must be supported by the corresponding interface software.1.The characteristics of single-chip interface technologyThe single-chip microcomputer itself already has some commonly used functional components, and we know that the application of the single-chip microcomputer is mainly oriented to the measurement and control system. Therefore, compared with the interface technology of the general-purpose computer, the interface technology of the single-chip microcomputer has the following characteristics.1) The interface of the single-chip microcomputer often focuses more on the man-machine interface and the control interface. The human-machine interface of a general-purpose microcomputer is a standard keyboard and display, which is more complicated than that of a single-chip microcomputer, and its functions are much stronger. The keyboard of the PC itself is a single-chip microcomputer system, which can scan more than 100 keys, and has functions such as eliminating shaking and heavy key processing. In addition, general-purpose computers are not oriented to measurement and control applications, so they usually do not have measurement and control interfaces. Expansion boards must also be used if required;2) The interfaces of single-chip microcomputers are often designed by users themselves, and there will be no uniform standards and specifications. And the same function can also adopt different interface design schemes. And for the interface parts of general-purpose microcomputer, generally have been designed, the user also can only use the function that it provides, but can not change its original design. Therefore, the interface design of single-chip microcomputer often requires more skills and experience;3) The scale of the single-chip application system is usually relatively small, and the capacity of the memory is not large. Therefore, large-capacity memory is rarely used, and usually only static memory is used, and dynamic memory is rarely used. In addition, external storage (floppy disk, hard disk, etc.) is rarely used. In general-purpose microcomputers, large-capacity dynamic memory is usually used, and floppy disks and hard disks are indispensable large-capacity external memory.2. Application of MCU Interface Technology——PS/2 Interface TechnologyAs an earlier input interface, the development technology based on PS/2 is quite mature, but these mature technologies are mainly in the hands of some motherboard developers and mouse and keyboard developers. Moreover, the official reference materials of the PS/2 protocol are hard to find, so this topic will monitor and analyze the data flow of the PS/2 mouse in actual work and combine the previous development experience as the main development basis, through continuous debugging and improvement. Complete the development of PS/2 mouse interface.PS/2 mice and keyboards implement a two-way synchronous serial protocol. In other words, one bit of data is sent every time the data line is sent and every time a pulse is sent on the clock line, it is read in. The keyboard/mouse can send data to the host and the host can send data to the device, but the host always has priority on the bus, and it can suppress communication from the keyboard/mouse at any time by pulling the clock low. The clock during data transmission is always provided by the device. If the host wants the device to send data, it must first tell the device to generate a clock signal.2.1 Basic design of hardware structureThe PS/2 interface can be directly connected to the single-chip microcomputer. Connect the VCC and GND of the single-chip microcomputer to the No. 4 and No. 3 pins of the PS/2 interface respectively to realize power supply to the device. Connect P2.0 and P2.1 to the No. 1 and No. 5 pins of the PS/2 interface respectively, as the data line and the clock line to realize the signal transmission from the MCU to the PS/2 interface.Connect six buttons to the P2.2-P2.7 pins of the microcontroller, which are used to simulate the up, down, left, and right movement of the mouse and the left and right buttons of the mouse. This module is used to test the basic functions of PS/2 interface devices. The P1 port is connected with 8 light-emitting diodes, which will display relevant content during debugging and testing. P3.0-P3.1 is connected to the serial port module to realize the communication between the single chip microcomputer and PC. This module is used for expansion and testing.The following introduces the connection between the PS/2 interface device and the PC through the serial port: This module is an expansion and testing module, which is used to realize the serial port to PS/2 interface, and can test the function and performance of the PS/2 interface.Connect the PC with the PS/2 interface device through the serial port, write test software on the PC, the test software sends certain mouse datagrams to the MCU through the serial port, and the device forwards these datagrams to the PS/2 interface, which makes debugging more convenient It is flexible and also realizes an extended application of the PS/2 interface device of this subject.The 51 single-chip microcomputer has a full-duplex serial communication port, so the serial communication between the single-chip microcomputer and the computer can be carried out. However, the computer’s serial port is at RS232 level, while the microcontroller’s serial port is at TTL level. There must be a level conversion circuit between the two. Connect 3 wires: GND of pin 5, RXD of pin 2, TXD of pin 3. This is the easiest connection method.2.2 Software Structure DesignThe software of the PS/2 interface device mainly includes six parts: PS/2 interface driver module, Reset mode processing module, stream mode processing module, display processing module, key processing module, and main program module.The functions of each module are as follows:1) PS/2 interface driver module: realize the basic operation of the PS/2 interface, including sending a byte of data to the PS/2 port, receiving a byte of data from the PS/2 port and other operations; 2) Reset mode Processing module: complete Reset mode operation; 3) Stream mode processing module: complete Stream mode operation, provide a function to send a complete mouse datagram; 4) display processing module: provide display function for debugging and testing; 5) key processing Module: Use six buttons to simulate the up, down, left, and right movement of the mouse and the left and right buttons. When a button is pressed, the corresponding mouse datagram is generated, and the function of sending mouse datagram in the Stream mode processing module is called, and the data packet is sent to the host ;6) Main program module: Coordinate the stable operation of each module.2.3 PS/2 mouse interface device state transitionBy analyzing the signal of the PS/2 mouse in the actual use process, we know that after the mouse is powered on for a certain period of time, the host will send multiple reset signals to the mouse, and the motor on the mouse will enter the Reset mode. In Reset mode, the host will detect and configure the mouse, and this process is also called mouse initialization. When the host restarts and sleeps and wakes up, the mouse will also enter the Reset mode and initialize the mouse. In Stream mode, the device can send mouse datagrams to the host. Of course, the host may temporarily suppress the sending of mouse datagrams during this period.The above are the characteristics and application design of the single-chip microcomputer interface technology introduced by Shenzhen Zuchuang Microelectronics Co., Ltd. for you. We have rich experience in customized development of smart electronic products, can evaluate the development cycle and IC price as soon as possible, and can also calculate the PCBA quotation. We are the agent of Sonix MCU and Yingguang MCU agent, selling and developing MCU and voice IC solutions of Sonix and Yingguang. We act as an agent and develop ICs and solutions of Jieli, Ankai, Quanzhi, realtek and other series, and also develop BLE Bluetooth IC, dual-mode Bluetooth module, wifi module, and Internet of Things module. We have hardware design and software development capabilities. Covering circuit design, PCB design, single-chip microcomputer development, software custom development, APP custom development, WeChat official account development, voice recognition technology, Bluetooth development, wifi technology, etc. It can also undertake the research and development of smart electronic products, the design of household appliances, the development of beauty equipment, the development of Internet of Things applications, the design of smart home solutions, the development of TWS earphones, the development of Bluetooth earphone speakers, the development of children's toys, and the development of electronic education products.
06-02
2022
Design of Intelligent Dormitory System Based on 51 SCMAt present, the configuration provided by the student dormitory can only meet the basic needs of the students. In the 21st century with the rapid development of science and technology, the simple basic configuration naturally cannot meet the students' requirements for fast and convenient daily life. The intelligence and humanization of the dormitory can improve the students' good impression of dormitory life, improve the quality and safety of dormitory life.In the design of this article, we can not only provide students with the above convenient functions, but also hope to better protect students by strengthening the security alarm reminder system. The smart dormitory system designed in this paper can realize multiple functions, including wake-up, voice control, security system and remote SMS reminder. The personalized design of the clock allows students to wake up to music; the use of voice recognition technology to better control electrical appliances; the security measures for the dormitory can better protect the safety of students. In the era of intelligence, such a design can provide students with a more convenient life.1. Design scheme of intelligent dormitory systemThe system includes a wake-up system, a security alarm system and a voice control system. Wake up and wake up the system to generate time through the calendar chip, and use the liquid crystal display. The wake-up time is set through independent buttons. When the wake-up time coincides with the chip time, the single-chip microcomputer will start the speaker and the electric curtain switch to wake up the students. The safety alarm system is to activate the smoke alarm when a fire occurs and the smoke concentration is too high. The smoke alarm will send a short message to the students through the single-chip microcomputer control GSM module, and remind the students through the loudspeaker alarm. The voice control system receives voice commands from students through the voice chip, and the system can control the start of electric lights and electric curtains.2. Hardware design of intelligent dormitory system2.1 Main controllerThe main controller used in the system is a 51 single-chip microcomputer, the model is STC89C52RC, which is a low-power, high-performance 8-bit microcontroller produced by STC. It has 8K bytes of Flash, 512 bytes of RAM, and a built-in 4K bytes EEPROM, 3 16-bit timer/counters and 4 external interrupts.2.2 Wake up and wake up hardware designThe built-in chip of the calendar module can accurately display the current second, minute, hour, date, month, and year information on the display screen. The built-in power-down protection ensures normal operation without external power supply. The system can not only realize the calendar function, but also realize the intelligent wake-up function by setting the wake-up time. When the current time is the same as the set wake-up time, the speaker will automatically play music to wake up the students.(1) Calendar module: The calendar module consists of a calendar chip and independent buttons. The calendar chip adopts DS1302 chip, which is a trickle charge clock chip launched by DALLAS company. Contains a real-time clock and 31 bytes of static RAM, it can communicate with the microcontroller through a simple serial interface. The real-time clock provides seconds, minutes, hours, date, month, and year information. The calendar module adjusts the time through independent buttons.(2) Display and playback module: The display module adopts LCD12864 liquid crystal screen. It can cooperate with a single-chip microcomputer to display Chinese characters and English characters, realize a Chinese human-computer interaction interface, and has the characteristics of low power consumption and rich display content. The playback module uses a loudspeaker for music playback.2.3 Voice control hardware designThe design of this module realizes the function of voice control electrical appliances at a certain distance. Speak the pre-set command sentences into the microphone, and you can intelligently switch curtains and lights. Ensure that students can switch electrical appliances without getting out of bed or raising their hands under certain circumstances.(1) Voice module: The voice module adopts LD3320 chip, which has voice recognition function, and can recognize the students' voice commands of "turn on the light", "turn off the light", "open the curtain" and "close the curtain", and realize the control of lights and curtains. Simple operation and strong practicability.(2) Electric lamp and curtain module: The electric lamp module adopts an LED lamp to realize. Electric curtains are driven by a stepping motor and controlled by the forward and reverse rotation of the motor.2.4 Security alarm hardware designThe system is designed to better protect students. The current student dormitories are very lacking in the way for students to understand the status of the dormitories. Most of the dormitories can only be experienced by the students' own five senses. But when danger arises, the lack of such communication can be fatal. The safety alarm system is mainly aimed at fire conditions. When the analog voltage output by the smoke alarm reaches the set safe value, the single-chip microcomputer will make the speaker sound an alarm to forcibly wake up the students who may be asleep, so as to ensure that the lives of students can be saved even in the case of a fire in the middle of the night; the single-chip microcomputer An instruction will also be issued to let the GSM module send a text message, so that every student can be informed of the danger in time, and it also ensures that the unknowing students who are approaching the danger zone leave safely.(1) Smoke alarm module: The smoke alarm module is composed of a smoke sensor and a speaker. The smoke sensor uses the MQ-2 gas sensor. The analog output voltage changes with the smoke concentration, the higher the concentration, the greater the voltage. Once the voltage reaches the safe voltage value set by the microcontroller, the speaker will send out an alarm signal.(2) GSM module: The GSM module used in the system is SIM900A module, which can be controlled by sending AT commands through the 51 single-chip microcomputer to realize the functions of making and receiving calls, sending text messages, and transmitting data through GPRS. Once a fire occurs, the 51 single-chip microcomputer will send a short message to the students through the GSM module, so that the students can be informed of the danger in time and get out of danger.3. Software Design of Intelligent Dormitory System3.1 Wake up software designThe wake-up system first initializes the calendar chip DS1302 and the LCD. The DS1302 chip can accurately display the time on the LCD. The current displayed time and the wake-up time to be set can be changed through independent buttons. When the actual time is the same as the set wake-up time, the speaker will play music. Waking up the sleeping students with the sound of elegant music can keep them relaxed throughout the day, instead of being reluctantly "pulled up" by the annoying alarm clock.3.2 Voice control software designThe voice control system first needs to initialize the LD3320 voice chip, and set the voice recognition list of "open the curtain", "close the curtain", "turn on the light" and "turn off the light". When the students enter the door of the dormitory, they can realize voice control to switch lights and curtains after issuing the above-mentioned command to the microphone. This function allows students to better control the electrical appliances in the dormitory without getting out of bed and pressing the switch in winter nights or other inconvenient control situations.3.3 Security alarm software designIn the security alarm system, when the modules are initialized respectively, the smoke sensor can continuously output the analog voltage to the microcontroller. When the smoke concentration reaches a certain value, the analog voltage output by the sensor will exceed the safe value voltage set by the single-chip microcomputer. At this time, the single-chip microcomputer will make the speaker sound an alarm, forcefully wake up the students who may still be asleep, and send AT commands to the GSM module, so that all students can receive short messages reminding them of danger, ensuring that students who do not know will not enter Dangerous zone.SummarizeThis system realizes the three functional designs of the intelligent dormitory, including wake-up system, voice recognition system and security alarm system. The wake-up system realizes the display of the calendar and the function of playing music at the wake-up time. This allows students to wake up in a pleasant environment. The voice recognition system allows students to use voice to control lights and curtains, allowing students to control electrical appliances more conveniently and quickly. The security alarm system can report to the police in time after a fire is discovered and send text messages to students' mobile phones. This can improve the safety index of the dormitory and avoid greater losses. The design of this system can make the student dormitory more convenient and safer, and let the students live in a warm environment.The above are the details of the design technology of the intelligent dormitory system based on the 51 single-chip microcomputer introduced by Shenzhen Zuchuang Microelectronics Co., Ltd. If you have software and hardware function development needs for smart electronic products, you can rest assured to entrust them to us. We have rich experience in customized development of electronic products, and can evaluate the development cycle and IC price as soon as possible, and can also calculate PCBA quotations. We are a number of chip agents at home and abroad: Songhan, Yingguang, Jieli, Ankai, Quanzhi, realtek, with MCU, voice IC, Bluetooth IC and module, wifi module. We have hardware design and software development capabilities. Covering circuit design, PCB design, single-chip microcomputer development, software custom development, APP custom development, WeChat official account development, voice recognition technology, Bluetooth wifi development, etc. It can also undertake the research and development of smart electronic products, the design of household appliances, the development of beauty equipment, the development of Internet of Things applications, the design of smart home solutions, the development of TWS earphones, the development of Bluetooth earphone speakers, the development of children's toys, and the development of electronic education products.
06-01
2022
Design of intelligent study lamp system based on single chip computerIn the current society, students have heavy learning tasks, and they spend a long time with desks and books every day. When night falls, when the light is not enough on cloudy days, they need a suitable desk lamp. This light has a suitable brightness and can protect their eyesight. When they are studying seriously, they don't need to pay attention to whether the light is suitable; when they have something to leave and forget to turn off the light, the light will automatically turn off. Therefore, we need an intelligent desk lamp to help children learn better and more comfortably.The times are constantly advancing, and at the same time, science and technology and people's living standards are also constantly improving, and people's requirements for quality of life are also constantly improving. Intelligence is an important means to improve the quality of life, and it has become an inevitable trend. As early as a few years ago, the research and development and application of intelligent light control have been started abroad, and many intelligently controlled desk lamps have appeared in China, but people's requirements are constantly improving, and the design needs to be constantly adjusted and optimized. This design not only considers intelligent dimming, but also considers the situation that people forget to turn off the lights when they leave, and further optimizes the design to save energy.1. The goal and design block diagram of the intelligent study lamp system design1. Design tasksThe intelligent study light system of the single-chip microcomputer can detect the current light brightness in the study and whether there is anyone in the study in real time.2. Design requirementsThe photosensitive module collects the light brightness in the study, and the human body sensor module collects whether there are people in the study. The single-chip control system receives these two signals, compares them with the thresholds set in advance, and sends out control signals to control the lights in the study. The single-chip microcomputer achieves dimming control of the brightness of the light by adjusting the PWM second pulse.3. Design block diagramDesign idea: sensor information collection→sensor information processing→single chip microcomputer control. This design is mainly composed of single-chip microcomputer control module, human body induction module, photosensitive module, relay module and LED lighting module.2. Hardware design of intelligent study lamp systemThis design is an intelligent study lamp design based on the STC89C52 single-chip microcomputer as the control core. The system is divided into automatic mode and manual mode.1. STC89C52 microcontroller main control module designThe single-chip microcomputer control module is composed of the main control chip STC89C52 as the core, the minimum control system composed of the reset circuit and the clock circuit. STC89C52 single-chip microcomputer is a low-voltage, high-performance, 8-bit CMOS microprocessor, which can be erased and written more than tens of thousands of times. It has the advantages of simple programming, low price, and convenient use. This design uses a power-on reset and a 12MHz crystal oscillator clock circuit to form the smallest system.Photosensitive circuit module: the AD8217 input terminal collects the voltage of GR1 terminal, performs A/D conversion, and sends the conversion result to the P2.7 port of the single-chip microcomputer through its OUT port, thereby completing the collection of indoor light brightness; infrared pyroelectric human body induction: Collect the high and low levels of the infrared sensor, and send the result to the P1.3 port of the single-chip microcomputer, so as to complete the judgment of presence or absence; relay control module: the P1.0 port of the single-chip microcomputer controls the relay, so as to realize the automatic control of the study lamp.2. Human body sensor module designThe main function of the human body sensor module is to detect whether there are people. It adopts the human body infrared sensor HC-SR501, which has the advantages of high sensitivity, fast response, good stability, and long service life. It has a digital output interface connected to the main control chip to detect wavelengths. It is 10 μm, because the normal human body emits infrared rays with a size of about 10 μm. When the infrared ray of this wavelength is detected (that is, the person enters its sensing range), it will output a high level. When the infrared ray of this wavelength is not detected (that is, the person leaves the sensing range), it will automatically delay turning off the high level and output a low level. .3. Photosensitive module designThe photoresistor GR1 is a component that is sensitive to light intensity, and different light rays will produce different resistance values on the component. The stronger the brightness, the lower the resistance value. With the increase of brightness, the resistance value keeps decreasing to below 1kΩ. When the brightness of the light becomes larger, its resistance value will become smaller, and the voltage value of the GR1 terminal will become lower at this time. The voltage of the GR1 terminal is collected by the ADC, and then the output signal is sent to the single-chip microcomputer. The single-chip microcomputer judges the range of the brightness and adjusts it. The brightness of the study lamp.4. LED lighting module designThe brightness adjustment of the LED lighting module is automatically adjusted by PWM dimming technology. The principle of the PWM dimming method is that the single-chip microcomputer outputs a digital pulse signal with a certain duty cycle to control the driver, so that the driver works according to the set frequency, so as to control the switching speed, so as to realize the control of the average current of the LED and achieve the effect of dimming.3. Software design of intelligent study lamp systemSoftware Design Ideas:(1) The system has two working modes: manual mode and automatic mode; (2) The single-chip microcomputer control module recognizes external sensor signals; (3) Generates simple digital pulse signals (ie PWM pulse signals) through single-chip microcomputer programming to realize the adjustment of LED lights brightness changes. The manual and automatic modes of the system are switched by keys. When the system enters the automatic mode, the relay automatically controls to turn on the power switch, detects whether there is anyone through infrared detection, and detects the brightness through the photosensitive resistor. If no one is detected, the small light will go out after waiting for a certain period of time.4. Realization and Results of Intelligent Study Lighting SystemThis design has two modes, manual and automatic, and all debugging will be carried out according to these two modes.1. Manual modeAfter the system is powered on, press the manual mode switch to enter the manual mode. In manual mode, several PWM pulse duty cycles are set in advance, and different duty cycles can be set through the number of keys to control the brightness of the lamp. The manual mode does not involve the application of the sensor, only the LED small light lighting system is applied, the procedure is simple, and the test is relatively successful.2. Automatic modeAfter the system is powered on, press the automatic mode switch to enter the automatic mode.(1) Adjustment of different brightness: When testing the automatic mode, in order to make the test phenomenon more obvious, different shading cloths are used to cover the photosensitive sensor so that it can obtain different brightness. The brightness can be adjusted, and the debugging is successful.(2) Test with and without people: After the system is started, the light is on, the inspector leaves the detection range, and the LED light is automatically turned off after the set time is reached; when the system is started, the light is on, the inspector leaves the detection range and reaches the set time. time, return to the detection range, and the LED light operates normally. Through the above tests, it is confirmed that the system can achieve the expected goal, that is, the brightness of the lamp can be adjusted manually, or the brightness of the lamp can be controlled automatically, and the power can be turned off in time, which not only protects the eyes, but also can turn off the light in time to save power.SummarizeThe design scheme in this paper is basically only a design on the principle level. Tested in the simulation software, the components and the environment in the simulation are ideal environments, without any major interference, and the working state of the circuit can achieve the effect of theoretical analysis. In the future, we will further improve the scheme proposed in this paper from the actual situation. According to the scheme designed in this paper, the design is made into a real object and tested in various environments to find out the problems of the scheme in different environments and optimize it to finally reach the optimal design of the scheme.The above are the details of the design of the intelligent study lamp system based on the single-chip microcomputer introduced by Shenzhen Zuchuang Microelectronics Co., Ltd. for you. We have rich experience in customized development of smart electronic products, can evaluate the development cycle and IC price as soon as possible, and can also calculate the PCBA quotation. We are the agent of Sonix MCU and Yingguang MCU agent, selling and developing MCU and voice IC solutions of Sonix and Yingguang. We act as an agent and develop ICs and solutions of Jieli, Ankai, Quanzhi, realtek and other series, and also develop BLE Bluetooth IC, dual-mode Bluetooth module, wifi module, and Internet of Things module. We have hardware design and software development capabilities. Covering circuit design, PCB design, single-chip microcomputer development, software custom development, APP custom development, WeChat official account development, voice recognition technology, Bluetooth development, wifi technology, etc. It can also undertake the research and development of smart electronic products, the design of household appliances, the development of beauty equipment, the development of Internet of Things applications, the design of smart home solutions, the development of TWS earphones, the development of Bluetooth earphone speakers, the development of children's toys, and the development of electronic education products.
03-31
2021
Design of Alcohol Detection System Based on Single Chip MicrocomputerThere are a large number of railway employees. Before each new employee enters the job, relevant departments will provide relevant entry training for them. During the training, it is clearly pointed out that the staff are not allowed to drink alcohol before work to prevent various accidents. Article 390 of the "Railway Technical Regulations" stipulates that relevant railway operators must take full rest before taking over shifts. Drinking alcohol is strictly prohibited. If there is any violation, the tasks they undertake will be stopped immediately. In the "Road Traffic Safety", the punishment for drinking has been stipulated accordingly. In order to protect the life safety of employees and prevent the occurrence of drunken work, an alcohol detector based on STC89C52 single-chip microcomputer is designed, which can detect the alcohol concentration of employees before they work.The alcohol concentration detector is based on the minimum system of single-chip microcomputer and alcohol sensor. It has sound and light alarm function and LCD display function, and uses assembly language to realize its software function. A variety of different workplaces. At the same time, the alcohol concentration detector also has the advantages of simple structure, reliable performance, convenient portability, and low power consumption, which can attract more market attention.1. The overall structure design of the alcohol detection systemThe alcohol detection system is mainly composed of the minimum system of single chip microcomputer, liquid crystal display module, power module, buzzer alarm module, indicator light module, key module, alcohol gas sensor module and analog-to-digital conversion module. The alcohol sensor is connected to the channel 1 port of the analog-to-digital conversion chip by means of resistive voltage division. When the alcohol sensor detects the alcohol concentration in the air, the alcohol concentration can be displayed on the liquid crystal display through the operation and processing of the single-chip microcomputer. The alarm threshold of the alcohol concentration can be set by pressing the button. When the alcohol concentration in the air is detected to exceed the standard, the buzzer will sound an alarm and the indicator light will start to flash.2.The design of the main hardware circuit of the alcohol detection system2.1 Design of the minimum system of single chip microcomputerThe minimum single-chip microcomputer system plays an overall role in the entire alcohol detection system. It needs to detect various parameters such as the keyboard and temperature sensor, and at the same time drive the LCD to display related parameters. This article selects STC89C52 single-chip microcomputer as the main control chip of the system to design the minimum system of single-chip microcomputer. It is mainly composed of STC89C52 microcontroller, reset circuit and clock circuit.2.2 Design of A/D Analog-to-Digital ConverterMost of the sensors transmit continuously changing analog quantities. After the analog quantities are converted into electrical signals by the sensor, they need A/D conversion to convert them into digital signals before they can be input into the digital system for processing and control. What this article chooses is the ADC0832 analog-to-digital converter, which has the advantages of small size, strong compatibility, and high cost performance.2.3 Design of the sensorThere are two general types of gas sensors: semiconductor gas sensors and electrochemical gas sensors. Semiconductor sensors have the advantages of simple structure, high sensitivity, and good dynamic performance. Moreover, semiconductors are sensitive materials, and it is easy to realize sensor intelligence and integration. Therefore, the MQ-3 semiconductor alcohol gas sensor is selected in this design.2.4 Design of liquid crystal display moduleThere are usually two types of liquid crystal displays commonly used in single-chip microcomputers, one is LCD12864 liquid crystal display, and the other is LCD1602 liquid crystal display. LCD1602 is a character liquid crystal display, and its main control chip is HD44780 or other compatible chips. LCD12864 liquid crystal display is a graphic dot matrix display, in addition to ordinary characters, it can also display images and Chinese characters. This article is mainly used to display the concentration of alcohol, and the LCD1602 display can fully meet the requirements of use.2.5 Design of sound and light alarm circuitThe alarm circuit of the alcohol detection system is driven by a PNP S8550 triode. When the output of the single-chip microcomputer is low level, the triode is turned on, the buzzer sends out an alarm, and the indicator light flashes; when the output of the single-chip microcomputer is high level, the triode is cut off, the buzzer stops alarming, and the indicator light goes out.3. Alcohol detection system program flow design and simulation analysis3.1 Program flow designThe program flow for designing the alcohol detection system is as follows: program initialization is performed first, and after the program initialization is completed, the sensor is preheated. The sensor must be preheated first, because the MQ-3 semiconductor resistive alcohol sensor has not been powered on for a period of time, and when the power is turned on again, the sensor cannot immediately collect alcohol concentration information normally, and it takes a period of time to warm up. Then the system will enter the monitoring state to detect the alcohol concentration in the air. After the alcohol concentration information is converted and processed by ADC0832, it is analyzed and processed by the single-chip microcomputer, and the current alcohol concentration is displayed on the LCD1602 liquid crystal screen, and the alarm is activated when the alcohol concentration exceeds the set value.3.2 Simulation AnalysisNext, start to simulate and analyze the alcohol detection system. When the concentration range is 10-1000ppm, the MQ-3 alcohol sensor can convert the detected alcohol concentration value into a voltage signal, which is processed by the STC89C52 microcontroller and the concentration is displayed on the LCD1602. In the process of simulating the alcohol monitoring system, the comparison between the input value and the set threshold can be changed through the sliding rheostat circuit. If the detected value is greater than the set value, the alarm circuit will send out an alarm.The simulation results are shown in Figure 1. In this simulation, the threshold is set to 10%, and the detected alcohol concentration is 14%, the system sounds an alarm, and the D2 light starts to flash.Through the simulation analysis of the alcohol detection system, it can be seen that the alcohol detection system designed in this paper can realize its alarm function in theory, and basically meets the design requirements.4. Experimental verification of alcohol detection systemNext, the designed alcohol detection system is experimentally verified to observe that it can meet the requirements of normal use.Purchase the required components and weld the alcohol detector shown in Figure 2. Set the alcohol concentration alarm threshold to 10%, then open a bottle of wine, put the bottle close to the alcohol detector, the alcohol detector detects that the alcohol concentration in the air is 14%, greater than 10%, the buzzer starts to alarm, and the indicator light starts blinking.It can be seen from experiments that when the alcohol concentration in the air exceeds the set threshold, the alcohol detector will give an audible and visual alarm; when the alcohol in the air slowly volatilizes below 10%, the alarm ends. It shows that the alcohol detection system designed in this paper can meet the requirements of use.Summarize(1) By analyzing the working principle of the alcohol detection system, its overall structure and internal circuit are designed in detail, and an alcohol detector that can meet the requirements of use is designed. (2) Programming and simulating the alcohol detection system, it is found that when the detected alcohol concentration exceeds the set threshold, an alarm will occur, which verifies the theoretical correctness of the alcohol detection system designed in this paper. (3) Carry out experimental tests on the designed alcohol detector. When the alcohol concentration in the air exceeds the standard, the alcohol detector will send out a sound and light alarm, which shows that the alcohol detector designed in this paper has practical value and can be used for railway workers to go to work Alcohol concentration test before.The above is the design method of the single-chip alcohol detection system introduced by Shenzhen Zuchuang Microelectronics Co., Ltd. for you. We have rich experience in customized development of smart electronic products, can evaluate the development cycle and IC price as soon as possible, and can also calculate the PCBA quotation. We are the agent of Sonix MCU and Yingguang MCU agent, selling and developing MCU and voice IC solutions of Sonix and Yingguang. We act as an agent and develop ICs and solutions of Jieli, Ankai, Quanzhi, realtek and other series, and also develop BLE Bluetooth IC, dual-mode Bluetooth module, wifi module, and Internet of Things module. We have hardware design and software development capabilities. Covering circuit design, PCB design, single-chip microcomputer development, software custom development, APP custom development, WeChat official account development, voice recognition technology, Bluetooth development, wifi technology, etc. It can also undertake the research and development of smart electronic products, the design of household appliances, the development of beauty equipment, the development of Internet of Things applications, the design of smart home solutions, the development of TWS earphones, the development of Bluetooth earphone speakers, the development of children's toys, and the development of electronic education products.