From e6128ff480a1983f9687cf9ffdd2429e26a85569 Mon Sep 17 00:00:00 2001 From: Beedlebub Date: Mon, 28 Apr 2025 20:52:14 -0700 Subject: [PATCH 1/3] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index de67cd4..38bc559 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,9 @@ The photo below shows the Phase 2 trainer hardware in its current state. -It includes an Arduino Uno, labeled Start/Stop/Fault buttons, NeoPixel LED, piezo buzzer for state feedback, a buck converter module, and a 4-channel relay board — all mounted to a 3D-printed frame. +It includes an Arduino Uno, labeled Start/Stop/Fault buttons, a NeoPixel LED, a piezo buzzer for state feedback, a buck converter module, and a 4-channel relay board — all mounted to a 3D-printed frame, all powered by a 12V 10A power supply. -This modular hardware layout will support future phases as new features like motor control, analog sensors, and networking are added. +This modular hardware layout will support future phases as new features, such as motor control, analog sensors, and networking, are added. ![PLC Trainer Setup](docs/plcTrainer_setup.jpg) @@ -117,7 +117,7 @@ monitor_speed = 115200 - Code organized with simple helper classes for LED and Buzzer management. - Phase 2 finalizes the "motor logic" portion without physical motor attached. -- PlatformIO used instead of Arduino IDE for better project management. +- PlatformIO is used instead of Arduino IDE for better project management. Future enhancements in Phase 3+ will add: - Real motor control via relay/motor driver From 447065c1e4641b93e087a0ab2b32c3effb1433af Mon Sep 17 00:00:00 2001 From: Beedlebub Date: Mon, 28 Apr 2025 21:08:45 -0700 Subject: [PATCH 2/3] .. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 38bc559..24757b5 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,9 @@ The photo below shows the Phase 2 trainer hardware in its current state. -It includes an Arduino Uno, labeled Start/Stop/Fault buttons, a NeoPixel LED, a piezo buzzer for state feedback, a buck converter module, and a 4-channel relay board — all mounted to a 3D-printed frame, all powered by a 12V 10A power supply. +It includes an Arduino Uno, a terminal adapter shield for easy wiring, labeled Start/Stop/Fault buttons, a NeoPixel LED and a piezo buzzer for state feedback, a buck converter module, and a 4-channel relay board — all mounted to a 3D-printed frame, and powered by a 12V 10A power supply. -This modular hardware layout will support future phases as new features, such as motor control, analog sensors, and networking, are added. +This modular hardware layout will support future phases as new features like motor control, analog sensors, and networking are added. ![PLC Trainer Setup](docs/plcTrainer_setup.jpg) From f6c914431f320df1af13581c2f1721e5df970999 Mon Sep 17 00:00:00 2001 From: Beedlebub Date: Thu, 8 May 2025 08:28:58 -0700 Subject: [PATCH 3/3] Added some misc documentation --- docs/Pin Lists in OpenPLC.txt | 17 ++++++ ...tTracker_5VArduino_OpenPLC_TrainerBuild.md | 61 +++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 docs/Pin Lists in OpenPLC.txt create mode 100644 docs/ProjectTracker_5VArduino_OpenPLC_TrainerBuild.md diff --git a/docs/Pin Lists in OpenPLC.txt b/docs/Pin Lists in OpenPLC.txt new file mode 100644 index 0000000..dcba50c --- /dev/null +++ b/docs/Pin Lists in OpenPLC.txt @@ -0,0 +1,17 @@ +Arduino Nano RP2040 Connect +Digital Inputs = 2, 3, 4, 5, 6, 7 +Digital Outputs = 8, 9, 10, 11, 12, 13 +Analog Inputs = A1, A2, A3 +Analog Outputs = 14 + +Raspberry Pi Pico W +Digital Inputs = 6, 7, 8, 9, 10, 11, 12, 13 +Digital Outputs = 14, 15, 16, 17, 18, 19, 20, 21 +Analog Inputs = 26, 27, 28 +Analog Outputs = 4, 5 + +Arduino Nano Every +Digital Inputs = 2, 3, 4, 5, 6 +Digital Outputs = 7, 8, 10, 11, 12, 13 +Analog Inputs = 15, 16, 17, 18, 19, 20, 21 +Analog Outputs = 9, 14 \ No newline at end of file diff --git a/docs/ProjectTracker_5VArduino_OpenPLC_TrainerBuild.md b/docs/ProjectTracker_5VArduino_OpenPLC_TrainerBuild.md new file mode 100644 index 0000000..951504c --- /dev/null +++ b/docs/ProjectTracker_5VArduino_OpenPLC_TrainerBuild.md @@ -0,0 +1,61 @@ +# 🔹 ProjectTracker_5VArduino_OpenPLC_TrainerBuild + +## 🔢 Hardware Setup +- [ ] Mount Arduino Uno/Nano Every on base panel +- [ ] Install breadboard (for LEDs and button wiring) +- [ ] Wire Green Start Button (5V, INPUT_PULLUP) +- [ ] Wire Red Stop Button (5V, INPUT_PULLUP) +- [ ] Wire optional Fault Button (5V, INPUT_PULLUP) +- [ ] Install and wire Green, Red, Yellow LEDs with 220Ω resistors +- [ ] Connect 5V and GND rails cleanly (shared power) + +## 🔢 OpenPLC Software Setup +- [ ] Flash OpenPLC firmware to Arduino +- [ ] Confirm OpenPLC runtime can detect Arduino board +- [ ] Create simple Ladder Logic program (Start/Stop latch) +- [ ] Test button functionality inside OpenPLC Editor +- [ ] Verify LED outputs toggle based on Ladder Logic + +## 🔢 Testing and Verification +- [ ] Power cycle test (board restarts safely) +- [ ] Manual button press test (physical and OpenPLC input response) +- [ ] LED feedback test (correct LED for each state) +- [ ] Safety/Fault testing (if optional fault button wired) + +--- + +# 🔹 Project Tracker: 12V M5Stack StamPLC Industrial Trainer Build + +## 🔢 Hardware Setup +- [ ] Mount StamPLC on trainer base panel +- [ ] Wire 12V input power correctly (common ground for devices) +- [ ] Install 22mm Green Start Button (NO contact) +- [ ] Install 22mm Red Stop Button (NO contact) +- [ ] Install 22mm Red Emergency Stop Button (NC contact preferred) +- [ ] Wire 12V IR beam breaker sensors (future phase) +- [ ] Mount relay control field (motor light control etc.) +- [ ] Setup I2C GPIO expander (optional) + +## 🔢 Arduino/PlatformIO Software Setup +- [ ] Setup PlatformIO project or Arduino IDE sketch for StamPLC +- [ ] Confirm basic digital input reading (Start/Stop/E-Stop) +- [ ] Confirm relay outputs activate correctly +- [ ] Implement basic control logic (Start/Stop Motor, Light Control) +- [ ] Plan future RS485 communication wiring + +## 🔢 Testing and Verification +- [ ] Full power-up test (12V bus operational, safe GND sharing) +- [ ] Button and LED response verification +- [ ] Relay output verification (switching 12V loads) +- [ ] Safety lockout testing (Emergency Stop triggers output shutdown) + +--- + +# ✅ Final Notes +- Progress milestones allow methodical development. +- Clean wiring and GND management at each step. +- Avoid mixing 5V and 12V systems during build/testing. +- Expand modularly: add RS485, sensors, and advanced functions later. + +--- +