Editor Version ×
recommended

Pro Edition

free

Brand new interactions and interfaces

Smooth support for design sizes of over 3W

devices or 10W pads

More rigorous design constraints, more

standardized processes

For enterprises, more professional users

Std Edition

Easy to use and quick to get started

The process supports design scales of 300

devices or 1000 pads

Supports simple circuit simulation

For students, teachers, creators

Ongoing

STD Electricity monitor control module

Electricity monitor control module

Project tags

License

License:

Mode:

Mode

Editors' pick

Editors' pick

  • 2.1k
  • 0
  • 2
Update time: 2021-04-10 18:34:41
Creation time: 2015-11-20 11:39:59
Description

Description

## Electricity monitor control module ## 16 commercial power monitoring module, input use optocoupler PC817 isolation and prevent city electrical interference into the acquisition system, 220V direct access, do not need to buck and saves the cost of the circuit. The use of two 74HC245 circuit work cycle, by a pin to control the 74HC245 chip microcontroller, control. MAX813 to achieve the watchdog control, to prevent the external environment to interfere with the microcontroller, microcontroller timing to the MAX813 pulse, in the microcontroller does not work or the emergence of the death cycle, MAX813 generates a reset signal, microcontroller reset. Collected data through the serial port, the use of the 485 communication mode. ![enter image description here][1] ![enter image description here][2] ## AT89S52 low power microcontroller ## AT89S52 is a low power, high performance CMOS 8 bit microcontroller, with 8K system programmable Flash memory. High density nonvolatile memory technology is manufactured using Atmel's high density, fully compatible with industrial 80C51 product instructions and pins. The on-chip Flash allows the program memory to be reprogrammed in system, also suitable for conventional programming. On one chip, 8 bit CPU and Flash are available in the system, which makes the AT89S52 widely used in many embedded control applications. AT89S52 has the function of the following criteria: 8K bytes of flash, 256 bytes of ram, 32 I / O lines, watchdog timer, two data pointers, three 16 bit timer / counter, a six vector two-level interrupt structure, a full duplex serial port, on-chip crystal oscillator, and a clock circuit. In addition, the AT89S52 can be reduced to 0Hz static logic operation, supports 2 software selectable power saving modes. In idle mode, the CPU stops working, allowing the RAM, timer / timer, serial port and interrupt to continue to work. Power down protection mode, the RAM content is saved, the oscillator is frozen, the microcontroller all work to stop, until the next interrupt or hardware reset. ![enter image description here][3] Serial communication parameter interface type RS-485 The baud rate is 9600 Data bit 8 Parity check None Stop bit 1 Flow control None Communication protocol RTU Modbus Serial port protection ESD 1.5KV Serial lightning protection 600W Over current, over voltage is less than 240V, less than 80mA Power supply parameters 9-24VDC (recommended 12VDC) Current 12VDC 100mA Surge protection 1.5kW Power over voltage, over current 500mA, 60V Power consumption is less than 2W **program** #include sbit CSCTL0 = P2^5; sbit CSCTL1 = P2^4; sbit CSCTL2 = P2^3; sbit CTL485 = P2^6; sbit WTCHDOG = P2^7; sbit LED = P1^2; #define send 1 #define recieve 0 unsigned char digitaldata0 = 0; unsigned char digitaldata1 = 0; unsigned char digitaldata = 0; /*void delay100(unsigned int time); void delay1000(unsigned int time); void serialcomm_init( void ); void time0_initial (); void send_char_com( unsigned char ch);*/ [1]: https://easyeda.com/normal/doc-iuoiAS93J.png [2]: https://easyeda.com/normal/doc-Dd7DVd7pG.png [3]: /editor/20151121/565069ab867a4.jpg
Design Drawing

Design Drawing

schematic diagram
1 /
PCB
1 /
The preview image was not generated, please save it again in the editor.
ID Name Designator Footprint Quantity
1 XTAL Y1 XTAL 1
2 104 C6,C7,C8,C5,C4,C3 C0603 6
3 22p C1,C2 C0603 2
4 817 UN1,UN2,UN3,UN4,UN5,UN6,UN7,UN8,UN9,UN10,UN11,UN12,UN13,UN14,UN15,UN16 DIP-4 16
5 150K R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,R11,R12,R13,R14,R15,R16 AXIAL-0.4 16
6 1N4007 D1,D2,D3,D4,D5,D6,D7,D8,D9,D10,D11,D12,D13,D14,D15,D16 DIODE-0.4 16
7 10uF CAP1,CAP2,CAP3,CAP4,CAP5,CAP6,CAP7,CAP8,CAP9,CAP10,CAP11,CAP12,CAP13,CAP14,CAP15,CAP16 C1206 16
8 330uF CAP17 CASED 1
9 47uF CAP18 CASEC 1
10 0.33uF C15 C0603 1
11 0.1uF C16 C0603 1
12 LED0 LED1,LED2 LED直插 2
13 Res2 RE1,RE2,RE3 R0603 3
14 LED0 LED3 LED0805 1
15 AT89S52 U1 QFP44 1
16 max813L U2 SO8 1
17 MAX485ESA U6 SO8 1
18 7805 U3 7805 1
19 Header 16 P2,P1 CON5.08mm 2
20 SN74HC245PWLE U4,U5 SO-20 2
21 Header 9 R17,R18,R19 HDR1X9 3
22 ISP J1 HDR1X6 1
23 SR54 D17 SMC 1

Unfold

Project Attachments

Project Attachments

Empty
Project Members

Project Members

Target complaint
Related Projects
Change a batch
Loading...

Comment

Add to album ×

Loading...

reminder ×

Do you need to add this project to the album?

服务时间

周一至周五 9:00~18:00
  • 0755 - 2382 4495
  • 153 6159 2675

服务时间

周一至周五 9:00~18:00
  • 立创EDA微信号

    easyeda

  • QQ交流群

    664186054

  • 立创EDA公众号

    lceda-cn