For coupling the embedded Linux board to various types of devices, relays and sensors an expansion board is needed.
Here you can find more information on how to do this.
With two wires it possible to address up to 1136 members. IC2 is a synchronous bidirectional communication system that allows devices to transfer data using only two wires: a bidirectional data line (SDA) and a clock line (SCL).
Max clock rate: 400kHz.
The I/O board contains a PCA9555.
Three hardware pins (A0, A1, A2) vary the fixed I2C-bus address and allow up to eight devices to share the same I2C-bus/SMBus. The fixed I2C-bus address of the PCA9555, allowing up to eight of these devices in any combination to share the same I2C-bus/SMBus.
The PCA9555 is a Port-Expander with 16 GPIO-Pins, which can be controlled easily over I2C. Three device inputs (A0 - A2) determine the I2C address and allow up to eight I/O expander devices to share the same I2C bus. With a maximum of eight PCA9555 Port-Expanders the states of 64 inputs can be monitored and 64 outputs can be driven.
The first station with address number 0, corresponding to inputs and outputs 0.0 - 0.7 in a ladder diagram. The next station with address number 1, corresponding to inputs and outputs 1.0 - 1.7 in a ladder diagram, etc.
Port expander Board with 8 inputs and 8 outputs:
Port Expander schematic.
Alternative: Gnublin Port Expander PCA9555.
- GNUBLIN_Module-Port Expander
- Quickstart for Gnublin Port_Expander
- Simple test board for Gnublin Port Expander.
Schematic for Port Expander.
- Datasheet PCA9555
A simple ansi c library for the PCA9555 I2C Expander.
Ansi C source file.
Every PLC must have some means of receiving and interpreting signals from sensors such as switches,
inductive and capacitive proximity sensors, liquid level switches, etc . And be also able to affect control over solenoids, valves.
The most common industrial signals are 24Volt DC. So we need to create a 24 volt interface card.
PLµX standard pin configuration for PCA9555:
Error found let me know. Thanks in advance.
- Download schematic and PCB. Created with Eagle PCB Design Software cadsoftusa.
This figure shows the first successful PCB test.
The PLµX project provides maximum 4 GNUBLIN ADC-Modules(32 anlalog inputs).
This ADC module is used to measure voltages. The modules can be easily connected via a ribbon cable to the Gnublin Board or the Gnublin Module-Bridge.
How To create Ladder Diagram with analog inputs.
ADC Hardware in action.