Tuesday, February 10, 2015

Build a very Cheap PLC using Programmable System on Chip (PSoC) from Cypress

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.

Build a very cheap PLC using PSoC 4 from Cypress

Video about Very Cheap PLC using PSoC 4 CY8CKIT-049 Cypress

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:

Input module with light of bulid a very cheap PLC

Output Module:

Output module of bulid a very cheap PLC

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:

Hardware of bulid a very cheap PLC

Hardware connection of bulid a very cheap PLC

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:

Example Programming:
Download Project file for PSoC Creator, click here

1. PLC Ladder Programming:

PLC Ladder Programming

2. PSoC Logic Programming:

PSoC Logic Programming of bulid a very cheap PLC

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. */
        /* Place your application code here. */  
        if((P2_0_Read() || P0_0_Read()) && !P2_2_Read()){
        if(((P0_0_Read() && P2_1_Read()) || P0_1_Read()) && !P2_2_Read()){


Bootloader Host: Communication Error
- Programming Started
- Communication port reported error 'Unable to read data from the target device'.
- 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.


Newer Post Older Post Home

You may also like these ebook:

Get Free PLC eBook directly sent to your email,
and email subscription to program-plc.blogspot.com

We hate SPAM. Your information is never sold or shared with anyone.

Your Email Will Be 100% Secured !