At the beginning of this year 2020 a video of the PLC V4 was published. whose device still had to be improved, therefore, for this version 4.1, a Real Time Clock and a DC DC step down source have been integrated.
PLC with arduino (ATmega328p AU) V4.1, is a programmable logic controller that was designed by Electroall, whose circuit is based on the SIEMENS S7 1200 CPU1214c PLC device with relay outputs. Initially, the current version will have a 24VDC power supply like all industrial devices. In addition, it includes a Real Time Clock (RTC). Secondly, in this version there will be 8 digital inputs of 12-24VDC and 2 analog inputs of 0 to 5V . As for the outputs, there will be 8 outputs (relay).
For the control system, the ATmega328P AU (SMD) microcontroller will be used, since this µC can be easily programmed in the arudino IDE. On the other hand, this PLC will be programmed directly by computer - PLC V4.1. Finally, this device has the principles of high isolation similar to most industrial devices, both in the phase of the inputs and the outputs.
TECHNICAL SPECIFICATIONS
- Supply voltage ………………………. ………… 24VDC
- Supply current …………………. …………… 100mA
- DC source - DC step down ………………………………… .Yes
- Real Time Clock …………………………………………… Yes
- 12-24VDC digital inputs ………………………. …… 8
- 0-5V analog inputs ……………………………… ..2
- Direct Programming ……………………………………… ..Computer - PLC V4.1
- Programming environment ……………………… .. ……… ..Arduino IDE
- Environmental conditions min ……………………….….-10 °
- Environmental conditions max ………………… .. ……… .55 °
- RLY outputs ………………………………………………………… 8
- AC output voltage …………………………………………. …… 250V
- AC current ……………………………………………………… .5A
- DC voltage ………………………………………………………… 30V
- DC current ……………………………………………………… 5A
- Dimensions ……………………………………………………… .100x100mm
- Recessed ………………………………………………………… Yes
ELECTRONIC SCHEMATIC
ELECTRONIC COMPONENT LIST
- U1 ; CH340C integrated circuit (see & buy)
- U2 ; ATmega328p AU microcontroller (see & buy)
- U3-U4 ; 74HC245D Integrated Circuit (see & buy)
- U5 ; Integrated circuit ULN2803D (see & buy)
- U6-U7 ; 74HC14D integrated circuit (see & buy)
- U8-U15 ; Optocoupler TPL127 (see & buy)
- U16 ; I2C Serial EEPROM (see & buy)
- U17 ; Maxin Integrated RTC DS3231SN (see & buy)
- U18 ; Step-Down regulator LM2576S-5.0 / TR (see & buy)
- RL1-RL8 ; Relay 24V, (PA1A-24V) (see & buy)
- D1-D8, D10 ; led green SMD Package (1206) (see & buy)
- D11-D18 ; led red SMD Package (1206) (see & buy)
- D9 ; Schottky Diode SS14-TP (see & buy)
- D19, D20 ; Schottky Barrier Diodes B330A-13-F (see & buy)
- R1, R3, R4, R15-R22, R34 ; 1 / 10W SMD resistor, 10k Ohm, package 0603 (see & buy)
- R2 ; 1 / 10W SMD resistor, 1M Ohm, package 0603 (see & buy)
- R5-R12 ; 20k Ohm SMD resistor, package 1206 (see & buy)
- R13-R14 ; 1 / 10W SMD resistor, 1k Ohm, package 0603 (see & buy)
- R25-R32 ; 470 Ohm SMD resistor, package 1206 (see & buy)
- R33, R35 ; 1 / 10W SMD resistor, 4pack 4.7k Ohm array, package 0603 (see & buy)
- R36 ; 1 / 8W SMD resistor, 470 Ohm, package 0805 (see & buy)
- R37 ; 1 / 8W SMD resistor, 4.7k Ohm, package 0805 (see & buy)
- C1-C8, C12, C19 ; Ceramic Capacitor 0.1uF (0603) (see & buy)
- C9 ; Ceramic Capacitor 0.1uF (1206) (see & buy)
- C10 ; 470µF / 35V Electrolytic Capacitor (see & buy)
- C11 ; Electrolytic capacitor 220µF / 16V, (see & buy)
- L1 ; Inductor 100uH (see & buy)
- BTN1 ; SMD pushbutton (see & buy)
- SW1-SW2 ; male sprat connectors (see & buy)
- J1, J3, J4, J8, J10 ; 3-pin connection terminals (see)
- J2, J5, J7, J9 ; 2-pin connection terminals (see)
- J11, J12, J14 ; male sprat connectors (see & buy)
- J13 ; USB 2 type B jack (see & buy)
- BAT1 ; 3V battery socket (see & buy)
- FUSE ; Fuse 24V / 1A (see & buy)
- X2 ; Crystal SMD 16Mhz (see & buy)
- U1 ; CH340C integrated circuit (see & buy)
- U2 ; ATmega328p AU microcontroller (see & buy)
- U3-U4 ; 74HC245D Integrated Circuit (see & buy)
- U5 ; Integrated circuit ULN2803D (see & buy)
- U6-U7 ; 74HC14D integrated circuit (see & buy)
- U8-U15 ; Optocoupler TPL127 (see & buy)
- U16 ; I2C Serial EEPROM (see & buy)
- U17 ; Maxin Integrated RTC DS3231SN (see & buy)
- U18 ; Step-Down regulator LM2576S-5.0 / TR (see & buy)
- RL1-RL8 ; Relay 24V, (PA1A-24V) (see & buy)
- D1-D8, D10 ; led green SMD Package (1206) (see & buy)
- D11-D18 ; led red SMD Package (1206) (see & buy)
- D9 ; Schottky Diode SS14-TP (see & buy)
- D19, D20 ; Schottky Barrier Diodes B330A-13-F (see & buy)
- R1, R3, R4, R15-R22, R34 ; 1 / 10W SMD resistor, 10k Ohm, package 0603 (see & buy)
- R2 ; 1 / 10W SMD resistor, 1M Ohm, package 0603 (see & buy)
- R5-R12 ; 20k Ohm SMD resistor, package 1206 (see & buy)
- R13-R14 ; 1 / 10W SMD resistor, 1k Ohm, package 0603 (see & buy)
- R25-R32 ; 470 Ohm SMD resistor, package 1206 (see & buy)
- R33, R35 ; 1 / 10W SMD resistor, 4pack 4.7k Ohm array, package 0603 (see & buy)
- R36 ; 1 / 8W SMD resistor, 470 Ohm, package 0805 (see & buy)
- R37 ; 1 / 8W SMD resistor, 4.7k Ohm, package 0805 (see & buy)
- C1-C8, C12, C19 ; Ceramic Capacitor 0.1uF (0603) (see & buy)
- C9 ; Ceramic Capacitor 0.1uF (1206) (see & buy)
- C10 ; 470µF / 35V Electrolytic Capacitor (see & buy)
- C11 ; Electrolytic capacitor 220µF / 16V, (see & buy)
- L1 ; Inductor 100uH (see & buy)
- BTN1 ; SMD pushbutton (see & buy)
- SW1-SW2 ; male sprat connectors (see & buy)
- J1, J3, J4, J8, J10 ; 3-pin connection terminals (see)
- J2, J5, J7, J9 ; 2-pin connection terminals (see)
- J11, J12, J14 ; male sprat connectors (see & buy)
- J13 ; USB 2 type B jack (see & buy)
- BAT1 ; 3V battery socket (see & buy)
- FUSE ; Fuse 24V / 1A (see & buy)
- X2 ; Crystal SMD 16Mhz (see & buy)
STEPS TO UPLOAD A PROGRAM
STEP 1: UPLOAD BOOT MANAGER (BOOTLOADER)
To be able to use a new microcontroller (atmega328p-U), it is necessary to upload a boot loader, also called "BOOTLOADER", this will make it easier for us to upload programs in future occasions.
finally to burn the bootloader it will have to be done through the ICSP pins, which would practically be the pins [(MOSI = 11) (MISO = PIN12) (SCK = PIN13) (Slave = PIN10)]. To upload and burn the bootloader we will need an Arduino UNO or MEGA and make the following connections (ARDUINO UNO - PLC).
STEP 1: UPLOAD BOOT MANAGER (BOOTLOADER)
To be able to use a new microcontroller (atmega328p-U), it is necessary to upload a boot loader, also called "BOOTLOADER", this will make it easier for us to upload programs in future occasions.
finally to burn the bootloader it will have to be done through the ICSP pins, which would practically be the pins [(MOSI = 11) (MISO = PIN12) (SCK = PIN13) (Slave = PIN10)]. To upload and burn the bootloader we will need an Arduino UNO or MEGA and make the following connections (ARDUINO UNO - PLC).
Commentaires
Enregistrer un commentaire