

PLC Output PCB
Code for an Arduino board to set PLC inputs given control logic.
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 23
- Nets
- 116
- Pads
- 171
- Tracks, vias
- 0, 0
- Routed
- Not yet
- KiCad
- KiCad 9.0 (file 20241229)
- Created
- 21 May 2025
- Updated
- 12 Aug 2025
Overview
PLC Output PCB is an open-source printed circuit board by Yousselfie, from the Yousselfie/OscopeDataAcq repository on GitHub. It is a 2-layer board with 23 parts on 116 nets.
Its parts include 12 resistors, 8 switches and 2 connectors. It belongs with the AVR (ATmega, ATtiny) boards of this library.
README
README.mdOscilloscope Data Acquisition
Programs related to the gathering of EM (electromagnetic) wave data from the processing unit of a PLC (programmable logic controller) as it runs various control logic.
Use of Arduino
In order to capture the EM data of a specific control logic, it must be running on the controller. Normally, this would mean connecting the PLC to the PC, downloading the control logic to the PLC, then running it. This becomes a tedious process when there are many possible symbolic paths of specific control logic for the PLC to run and for data to be collected from. To make this process more efficient, we make use of a microcontroller (Arduino) to automatically modify the inputs of a PLC to simulate new control logic. Given all the symbolic execution paths in a control logic, the Arduino will set and unset inputs on the PLC to match each one for a set amount of time before the next path is simulated. This allows for continous data collection using the oscilloscope.
Project Directories
./ControlPLC - Contains code relating to writing/reading to the Arduino controlling the PLC inputs and accessing the PLC outputs.
./ControlPLC/src - Contains the source code and pseudocode for the main cpp file uploaded into the microcontroller. This code defines how the Arduino communicates with and interprets data from the local machine (Python controller).
./ControlPLC/python_controllers - Contains multiple different Python programs that each establish communication with the Arduino, send data to be parsed, and ultimately determine PLC I/O from the Arduino. Each of these has been used for a different testing purpose (such as turning on all the PLC inputs or running through all symbolic paths of a sample program and turning on/off inputs based on each path).
./SignalProcessing - Contains scripts for cleaning and comparing captured signals in CSV format. Most important is the script that compares two signals using dynamic time warping and the script that compares two signals after wavelet denoising them.
Parts
23| Qty | Value | Footprint | References |
|---|---|---|---|
| 8 | SANYOU_SRD_Form_C | Relay_THT:Relay_SPDT_SANYOU_SRD_Series_Form_C | K1, K2, K3, K4, K5, K6, K7, K8 |
| 4 | 1500 | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal_CUSTOM | R1, R4, R7, R10 |
| 4 | 330 | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal_CUSTOM | R2, R5, R8, R11 |
| 4 | 68 | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal_CUSTOM | R3, R6, R9, R12 |
| 1 | Arduino_Mega2560_R3_Shield | PCM_arduino-library:Arduino_Mega2560_R3_Shield | A1 |
| 1 | Conn_01x01_Pin | Connector_PinHeader_1.00mm:PinHeader_1x01_P1.00mm_Vertical | J9 |
| 1 | Conn_01x08_Socket | Connector_PinSocket_1.00mm:PinSocket_1x08_P1.00mm_Vertical | J10 |
Similar boards
- 2 layers65 × 56 mm

- 2 layers14 × 100 mm

Yunomi
google/mozc-devices
Circuit diagrams and firmware source code for Gboard DIY keyboards
23 parts3kApache-2.0 - 2 layers50.8 × 52.2 mm

- 2 layers138.8 × 89.8 mm

- 2 layers32.9 × 53.3 mm

- 2 layers35.5 × 50 mm

- 2 layers19 × 19 mm

- 2 layers88.5 × 28 mm

ExpBreakout
Duet3D/Duet-2-Hardware
The KiCAD source for the Duet 3d printer controller see www.duet3d.com
23 parts258
Questions
What parts does the PLC Output PCB use?
23 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
Where can I download the PLC Output PCB KiCad files?
From the Yousselfie/OscopeDataAcq repository on GitHub, at the commit this page was made from: the board is pcb/PLC_Output_PCB.kicad_pcb and its schematic pcb/PLC_Output_PCB.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the PLC Output PCB design in my own project?
Its repository states no licence, so its author keeps all rights: ask Yousselfie before reusing the design.