Skip to the content
2 layersPLC Output PCB, the printed circuit board in 3D

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.md

Oscilloscope 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
QtyValueFootprintReferences
8SANYOU_SRD_Form_CRelay_THT:Relay_SPDT_SANYOU_SRD_Series_Form_CK1, K2, K3, K4, K5, K6, K7, K8
41500Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal_CUSTOMR1, R4, R7, R10
4330Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal_CUSTOMR2, R5, R8, R11
468Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal_CUSTOMR3, R6, R9, R12
1Arduino_Mega2560_R3_ShieldPCM_arduino-library:Arduino_Mega2560_R3_ShieldA1
1Conn_01x01_PinConnector_PinHeader_1.00mm:PinHeader_1x01_P1.00mm_VerticalJ9
1Conn_01x08_SocketConnector_PinSocket_1.00mm:PinSocket_1x08_P1.00mm_VerticalJ10

Similar boards

  • 2 layers65 × 56 mmPi servo hat, the printed circuit board in 3D

    Pi servo hat

    earthtojake/text-to-cad

    Design physical products with AI

    23 parts26kMIT
  • 2 layers14 × 100 mmYunomi, the printed circuit board in 3D

    Yunomi

    google/mozc-devices

    Circuit diagrams and firmware source code for Gboard DIY keyboards

    23 parts3kApache-2.0
  • 2 layers50.8 × 52.2 mmFuhhni, the printed circuit board in 3D

    Fuhhni

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    23 parts915
  • 2 layers138.8 × 89.8 mmKeyboard pcb, the printed circuit board in 3D

    Keyboard pcb

    diepala/cantor

    Cantor keyboard, a 42 key diodeless split keyboard.

    23 parts756GPL-3.0
  • 2 layers32.9 × 53.3 mmGoatgdo, the printed circuit board in 3D

    Goatgdo

    Kaldek/rat-ratgdo

    Open source schematics for ratgdo PCB

    23 parts511MIT
  • 2 layers35.5 × 50 mmTobo, the printed circuit board in 3D

    Tobo

    kelu124/echomods

    Open source ultrasound processing modules and building blocks

    23 parts463
  • 2 layers19 × 19 mmKeybit, the printed circuit board in 3D

    Keybit

    notaroomba/keybytes

    A truly modular keyboard

    23 parts444
  • 2 layers88.5 × 28 mmExpBreakout, the printed circuit board in 3D

    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.