Hardware Design of Data Collection and Transmission for Solar Power Generation System

Publisher:EtherealJourneyLatest update time:2010-06-28 Source: 现代电子技术Keywords:ARM  RS232  RS485  Ethernet  GSM Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

0 Introduction

ARM (Advanced RISC Machines) is a general term for a class of microprocessors. ARM is a well-known company in the microprocessor industry. It has designed a large number of high-performance, low-cost, low-energy RISC processors, related technologies and software. The ARM microprocessor is a high-performance, low-power 32-bit microprocessor that is widely used in embedded systems. ARM 9 represents the mainstream processor of ARM and has been widely used in handheld phones, set-top boxes, digital cameras, GPS, personal digital assistants and Internet devices. Here, the typical STR912FW44X6 chip in the ARM 9 series produced by ST is used as the MCU of the hardware development platform to complete the hardware design of the data acquisition and transmission system in the ARM-based solar power generation system, and a new method of using RS 485 serial port instead of RS 232 serial 121 for communication is proposed.

l Overall hardware design framework

The overall hardware design framework is shown in Figure 1.

Overall hardware design framework

2 Hardware Introduction

Now the STR912FW44X6 chip is used as the MCU of the hardware development platform. The STR912FW44X6 has expanded dot matrix LCD display, input buttons, UART interface, IrDA, CAN, USB, ETM interface, audio amplifier/microphone amplifier and Ethernet interface. Among them, this article uses the UART interface and Ethernet interface. The UART interface is divided into one RS 232 serial port and two RS 485 serial ports. The RS 232 serial port is used to connect to the RS 232 serial port of the GSM module to realize GPRS wireless transmission; two RS 485 serial ports, one is used as a MODBUS communication interface, and the other is used to connect to the electric meter to collect statistics and display the power generation of the solar power generation system. Ethernet is connected to the network through a network cable to realize wireless transmission of data.

3 Hardware circuit design and function implementation

3.1 Circuit design and function implementation of RS 232 serial port

RS 232 is a serial data interface standard, and is currently the most commonly used serial interface standard for data transmission between computers and between computers and peripherals. The RS 232 serial interface bus is suitable for communication distances between devices not exceeding 15 m, and the maximum transmission rate is 20 KB/s.

The RS 232 serial port is realized by ST3232EAR produced by ST. ST3232EAR is a chip that converts the RS 232 signal level (-10 V, +10 V) of the computer serial port to the TTL signal level (0 V, +3.3 V) used by the microcontroller. Its internal structure consists of three parts: the first part is the charge pump circuit, which consists of pins 1 to 6 and 4 capacitors. Its function is to generate two power supplies of +12 V and -12 V to provide the level requirements for the RS 232 serial port. The second part is the data conversion channel, which consists of pins 7 to 14 to form two data channels. Among them, pins 13 (RlIN), 12 (R1OUT), 11 (TlIN), and 14 (T1OUT) are the first data channel; pins 8 (R2IN), 9 (R2OUT), 10 (T2IN), and 7 (T2OUT) are the second data channel. The TTL/CMOS data is converted from T1IN and T2IN to RS 232 data, and sent to the computer DP9 plug from T1OUT and T2OUT; the RS 232 data of the DP9 plug is converted from R1IN and R2IN to TTL/CMOS data, and then output from R1OUT and R2OUT. The third part is the power supply, which consists of 15-pin GND and 16-pin VCC (+5 V).

By connecting the RXD and TXD of the GPIO in the MCU to the 12th pin (R1OUT) and the 11th pin (T1IN) of the ST3232 respectively, the 14th pin (T10UT) and the 13th pin (R1IN) output RS 232 level, and then connecting the RS 232 serial port of the GSM module and the RS 232 serial port on the MCU board, the purpose of controlling the function of the GSM module can be achieved by writing AT commands to the RS 232 interface, so as to realize data transmission through GPRS.

3.2 Circuit design and function implementation of RS 485 serial port

RS 485 is used to collect data from solar power generation systems. The reason why RS 485 is used here instead of RS 232 is that RS 485 has many advantages over RS ​​232. RS 232 adopts unbalanced transmission mode, that is, single-ended communication, and the data signals at the transmitting and receiving ends are all relative to the ground signal. Therefore, its common-mode suppression ability is poor. In addition, due to the distributed capacitance of the twisted pair, its maximum transmission distance is about 15 m, the maximum rate is 20 KB/s, and it can only support point-to-point communication. RS 485 uses balanced transmission and differential reception to achieve communication. Since the transmission line usually uses twisted pair and sometimes differential transmission, it has a strong ability to resist common-mode interference. The bus transceiver is very sensitive and can detect voltages as low as 200 mV, so its transmission signal can be restored over a kilometer. The maximum communication distance of RS 485 is about 1,219 m, and the maximum transmission rate is 10 MB/s. It uses dual half-duplex working mode to support multi-point data communication, and its bus generally supports a maximum of 32 nodes.

The RS 485 interface chip uses ADM3485. ADM3485 uses a single power supply +3.3 V to work, half-duplex communication mode, and can complete the function of converting TTL level to RS 485 level. The structure and pins of the ADM34185 chip are very simple. It contains a driver and a receiver inside. The RO and DI terminals are the output terminal of the receiver and the input terminal of the driver respectively. When connected to the microcontroller, it only needs to be connected to the RXD and TXD of the microcontroller respectively. The RE and DE terminals are the enable terminals for receiving and sending respectively. When RE is logic 0, the device is in the receiving state; when DE is logic 1, the device is in the sending state. Because ADM3485 works in half-duplex state, only one pin of the microcontroller is needed to control these two pins. The A terminal and the B terminal are the differential signal terminals for receiving and sending respectively. When the level of the A pin is higher than that of the B terminal, it means that the data to be sent is 1; when the level of the A pin is lower than that of the B terminal, it means that the data to be sent is 0. The wiring is very simple when connected to the microcontroller, and only one signal is needed to control the receiving and sending of the ADM3485. At the same time, a matching resistor is added between the A and B terminals, and a 100 Ω resistor can generally be selected. The design has two RS 485s, one of which is used as a MODBUS communication interface and the other is used to connect an electric meter to collect statistics and display the power generation of the solar power generation system.

3.3 Ethernet circuit design and function implementation

The Ethernet network port uses 0880-1X1T-01, and the Ethernet physical layer interface chip uses ST's STElOOP Fast Ethernet physical layer chip. The STElOOP Ethernet interface chip provides a set of media independent interfaces (MII). Media independence means that any type of PHY device can work normally without redesigning or replacing the MAC hardware. The MII interface is a standard interface between the Fast Ethernet MAC layer and the PHY layer, and is a standard for the Ethernet industry defined by IEEE 802.3. It includes a data interface and a management interface between the MAC and PHY. The data interface includes two independent channels for the transmitter and receiver respectively. Each channel has its own data, clock, and control signals. The MII data interface requires a total of 16 signals. The management interface is a dual-signal interface: one is a clock signal and the other is a data signal.

Through the management interface, the upper layer monitors and controls PHY. Based on Ethernet TCP/IP communication, ARM can be connected to the Internet through the network cable and can communicate with the computer in real time to transmit the real-time data of the solar power generation system.

4 Conclusion

A new communication method using RS 485 serial port instead of RS 232 serial port is proposed. This method solves the limitations of RS 232 serial port in transmission distance and number of nodes, and greatly improves the data transmission capacity.

Keywords:ARM  RS232  RS485  Ethernet  GSM Reference address:Hardware Design of Data Collection and Transmission for Solar Power Generation System

Previous article:Application of serial ADMAX1241 and serial DAMAX539
Next article:Only one circuit is needed to meet system resolution and 12-bit accuracy requirements

Recommended ReadingLatest update time:2024-11-16 19:33

Nordic Thingy:53 platform combines dual Arm Cortex-M33 processors and embedded machine learning
Nordic Thingy:53 platform combines dual Arm Cortex-M33 processors and embedded machine learning to accelerate IoT product prototyping Nordic Semiconductor’s newest member of the Thingy family combines flagship dual-core SoC, power management IC, PA/LNA range extender and multiple sensors with embedded machine learn
[Internet of Things]
Nordic Thingy:53 platform combines dual Arm Cortex-M33 processors and embedded machine learning
Arm and Ecarx jointly established a company in Wuhan specializing in automotive-grade SoC
On June 27, Wuhan Development Zone held a signing ceremony for major projects, with a total contract value of 135 billion yuan, covering next-generation automobiles, new energy, innovation and entrepreneurship and other fields. Peng Hao, director of the Wuhan Development Zone Management Committee, said that the sign
[Mobile phone portable]
Design of CAN network print server based on ARM
1 Introduction With the improvement of science and technology, intelligent electronic devices (IEDs) such as intelligent instruments or microcomputer devices have been widely used in industrial sites. Network print servers can provide reliable shared printing services for intelligent electronic devices a
[Microcontroller]
Design of CAN network print server based on ARM
Introduction to virtualization on ARM platform
This blog post mainly introduces the basic ideas of virtualization and how to perform virtualization on the ARM platform, the hardware features provided by ARM, etc. Introduction to Virtualization Technology Virtualization Technology Virtualization is a concept. From the perspective of this concept, any object used to
[Microcontroller]
Introduction to virtualization on ARM platform
The use of __packed in arm programming
When I was looking at the code today, I saw the following code: struct dsi_ctrl_hdr {       char dtype; /* data type */       char last; /* last in chain */       char vc; /* virtual chan */       char ack; /* ask ACK from peripheral */       char wait; /* ms */       short dlen; /* 16 bits */   } __packed; 
[Microcontroller]
Solve communication problems of UDP protocol based on ARM9 and DM9000 chips
introduction With the rapid development of embedded technology and network technology, Ethernet interfaces are increasingly used in embedded systems. Ethernet communication is fast. Universal, can be directly connected to the Internet, providing a wider range of remote access. Currently, in the field of embedded indus
[Microcontroller]
Solve communication problems of UDP protocol based on ARM9 and DM9000 chips
Design of real-time image acquisition and transmission system based on ARM and FPGA
The rapid development of image processing technology has made image acquisition and processing systems more and more widely used in improving the degree of automation in agricultural production. At present, some image acquisition systems are based on CCD cameras, image acquisition cards and computers, some are based o
[Microcontroller]
Design of real-time image acquisition and transmission system based on ARM and FPGA
Current Control of Valve Electric Upsetting Based on ARM
1. Introduction The intake and exhaust valves of the engine are important parts of the engine and are widely used in automobiles, aircraft, ships and other industries. One of the factors that has the greatest impact on the quality of the valve is the heating current during blank forming. The working princi
[Microcontroller]
Current Control of Valve Electric Upsetting Based on ARM
Latest Analog Electronics Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号