Build a very cheap PLC using Programmable System on Chip or PSoC 4 CY8CKIT-049 42xx Prototyping Kits from Cypress.
Price now (since this article was written) is $4 per piece and the price is very cheap.
For build a PLC using Programmable System on Chip (PSoC) as PLC CPU, require additional components such as optocouplers, resistors, power supply 24vdc, DC-DC Voltage Step-Down 24V to 5V and Relay Module.
In PLC using ladder diagram programming, and PSoC using logic diagram programming or C/C++ Programming.
Video about Very Cheap PLC using PSoC 4 CY8CKIT-049 Cypress
Hardware:
1. PSoC 4 CY8CKIT-049 42xx : http://www.cypress.com/?rID=92146
2. Input Module:
- Optocoupler TLP521
- Resistor 3.3K ohm
- Resistor 10K ohm
3. Output Module:
- Optocoupler TLP521
- Resistor 560 ohm
4. 5V Relay Module with Active Low
5. Power Supply 24VDC
6. DC-DC Voltage Step-Down 24V to 5V, I use Step Down Buck KIS3R33S
Build Input/Output Modules:
Input Module with Light:
Output Module:
Other information about build Input/Output Modules, check the link http://program-plc.blogspot.com/2015/01/build-simple-plc-using-arduino.html
Hardware Connection:
Software:
All free software: http://www.cypress.com/?rID=92146 (goto Software Title)
1. PSoC Creator and PSoc Programmer:
Login to : http://www.cypress.com/go/creator/download
2. USB-Serial Software Development Kit:
http://www.cypress.com/?docID=47673
Example Programming:
Download Project file for PSoC Creator, click here
1. PLC Ladder Programming:
2. PSoC Logic Programming:
3. Psoc Code or C/C++ Programming
Bootloader Host: Communication Error
Problem:
Log:
- Programming Started
- Communication port reported error 'Unable to read data from the target device'.
Solving:
- When connecting the kit to the PC USB, depress the SW1 button in the kit.
- You will notice that the blue LED begins to blink rapidly; this indicates that the PSoC 4 is in 'Bootloader Mode' and is ready to be loaded.
Price now (since this article was written) is $4 per piece and the price is very cheap.
For build a PLC using Programmable System on Chip (PSoC) as PLC CPU, require additional components such as optocouplers, resistors, power supply 24vdc, DC-DC Voltage Step-Down 24V to 5V and Relay Module.
In PLC using ladder diagram programming, and PSoC using logic diagram programming or C/C++ Programming.
Video about Very Cheap PLC using PSoC 4 CY8CKIT-049 Cypress
Hardware:
1. PSoC 4 CY8CKIT-049 42xx : http://www.cypress.com/?rID=92146
2. Input Module:
- Optocoupler TLP521
- Resistor 3.3K ohm
- Resistor 10K ohm
3. Output Module:
- Optocoupler TLP521
- Resistor 560 ohm
4. 5V Relay Module with Active Low
5. Power Supply 24VDC
6. DC-DC Voltage Step-Down 24V to 5V, I use Step Down Buck KIS3R33S
Build Input/Output Modules:
Input Module with Light:
Output Module:
Other information about build Input/Output Modules, check the link http://program-plc.blogspot.com/2015/01/build-simple-plc-using-arduino.html
Hardware Connection:
Software:
All free software: http://www.cypress.com/?rID=92146 (goto Software Title)
1. PSoC Creator and PSoc Programmer:
Login to : http://www.cypress.com/go/creator/download
2. USB-Serial Software Development Kit:
http://www.cypress.com/?docID=47673
Example Programming:
Download Project file for PSoC Creator, click here
1. PLC Ladder Programming:
2. PSoC Logic Programming:
3. Psoc Code or C/C++ Programming
int main()
{
/* Place your
initialization/startup code here (e.g. MyInst_Start()) */
/*
CyGlobalIntEnable; */
/* Uncomment this line to enable global
interrupts. */
for(;;)
{
/* Place your
application code here. */
if((P2_0_Read() || P0_0_Read()) && !P2_2_Read()){
P0_0_Write(1);
}else{
P0_0_Write(0);
}
if(((P0_0_Read() && P2_1_Read()) || P0_1_Read()) &&
!P2_2_Read()){
P0_1_Write(1);
}else{
P0_1_Write(0);
}
}
}
Bootloader Host: Communication Error
Problem:
Log:
- Programming Started
- Communication port reported error 'Unable to read data from the target device'.
Solving:
- When connecting the kit to the PC USB, depress the SW1 button in the kit.
- You will notice that the blue LED begins to blink rapidly; this indicates that the PSoC 4 is in 'Bootloader Mode' and is ready to be loaded.
Labels:
Build a Simple PLC
Cypress
PLC and PSoC
PLC Application
Programmable System on Chip
PSoC
very Cheap PLC
Build a Simple PLC
Cypress
PLC and PSoC
PLC Application
Programmable System on Chip
PSoC
very Cheap PLC