• 20Jul

    1 Introduction

     

    Ding Yi battery plates in the process of manufacturing the battery is an important element. The so-called chemical process is loading and unloading of the plate, namely the use of the electrochemical reaction into electrical energy into chemical energy stored. In the battery charge and discharge process is a complex under an applied voltage of chemical reaction process that requires a monitoring system to monitor the plate current and voltage values of the discharge parameters and continuously adjusted. Typically, a plant for manufacturing the battery, it is 10 units, or hundreds of machines and their dependents in the control system to run under, and these control systems are generally RS485/CAN bus with the host computer via the serial port to achieve master-slave communication. With the growing popularity of the network, it is still using the bus 485 for connecting the bottom, while leaving the Ethernet interface directly connected to the Intranet. Here the emphasis on implementation of the Ethernet connection. Sony NP-BG1 Charger Sony NP-FC10 Charger

     

    2 Monitoring System and the principle

     

    The control system of the AVR-based core collection in real time by the CS5460A voltage current sent to the host controller. host controller according to data in real time, to take specific charge and discharge mechanism, the D / A converter TLC5615 by the output voltage follower 0 ~ 5 V for voltage control circuit power supply, and then the stack of plates with different charges and the discharge process. RTL8019AS selected as the network card, the system uIP embedded protocol stack, allowing the tracking system and PC, the Ethernet connection.

     

    3 Hardware Design

    Options 3.1 host controller

     

    Atmega128 using RISC structure, 128 Kb in-system programming / scheduling application program Flash, 4KB EEPROM, 4KB SRAM, a wealth of resources on the chip is easy to run a small system of operation as μC/OS- can be integrated TCP / IP protocol. Sony NP-FC11 Charger Dell Inspiron 1100 battery

     

    3.2 Data Acquisition Circuit

     

    CS5460A devices for collecting current and voltage of the instantaneous value of the plate, it is a calculation engine power single-chip CMOS power measurement device can measure the instantaneous current, instantaneous voltage, instantaneous power The energy and voltage RMS current and RMS. It corresponds to the SPI interface and a host interface with 4-Port I / O, respectively, CS chip select, the data string in the SDI, SDO and a data string of serial clock SCLK. To avoid external interference with the host controller by the optical isolation between the device isolation 6N137. What are VIN + VIN-input voltage, charge and discharge circuit for detecting the instantaneous value of voltage IIN +, IIN-end for the current input, for detecting the current instant. Feng controller parallel external memory expansion AM29F040B record sample value of the time, external serial AT24C04 EEP-ROM recording the load and discharge parameters. Dell Inspiron 15z battery Dell Latitude 2100 battery

     

    3.3 Design of Ethernet interface circuits

     

    RTL8019AS is highly integrated 10-MB Ethernet controller and support NE2000 compatible 8-bit, 16-bit data bus, built in cache 16 KBSRAM; can be connected to coaxial cables and twisted pairs, and can automatically detect connection means, the connection diagram in Figure 3.

     

    RTL8019AS Pin JP determines the work of the NIC. JP then design pin high (VCC = +5 V), which means using the jumper, then you can switch between the external EEPROM. Host via the I / O to access the Ethernet controller mode. RTL80-19AS work in 8-bit mode, the ground pin IOCS16B by the resistance, all the control functions or data transmission is by visiting the address offset registers at 00 ~ 1FH completed, so that five lines address (SA0 ~ SA4) is in. RTL8019AS in pull mode of I / O addresses of the stem of the decision IOS3 IOS0 ~. The pin corresponding IOS0 IOS3 ~ all weak, SA8 SA9 and then high, then RTL8019AS I / O base address is 300H. 8-bit data line is SD0 ~ DS7. PLl1 PL0 and the use of twisted pair connections. NEA is the address enable terminal, active-low. hp Pavilion dv7 battery hp 550 battery

     

    4 Software Design

    4.1 The system, the composition of the task module

     

    task system is divided into five modules, namely, the acquisition module, payment module and the discharge control module, RS485 communication bus, the Ethernet communication module, a module for detecting defects. A charge and discharge control module based on parameters set by the D / A 0 ~ 5V input mountains between voltage and voltage to maintain the specified time; detection module faults, including fault current, Without stopping, over-current fault, the fault error, less power because of pressure and failure in the short term.

     

    4.2 Communication Module Ethernet programming

     

    Firstly, the network adapter driver ready to complete the number of communication networks in the task of digging the link layer, it offers three interface functions above: hp pavilion dv4 battery hp pavilion dv5 battery

     

    As the mechanism of multi-tasking system, if a small embedded operating system μC/OS- . uIP structure is very simple card to receive the package simply fill uip_buf people, adjust the length uip_len packet length, then the polling cycle uip_len check IPU is greater than zero. The program μC/OS- Ethernet as a mission, part of the program code is as follows:

      

    5 Conclusion

     

    Control System with Ethernet interface allows direct connection to the upper network, but must extend the factory floor Ethernet support, equipment, embedded web server allows conditional access direct Internet to communicate directly with the information outside world. hp pavilion zv5000 battery hp pavilion zv6000 battery

Comments are closed.