Skip to content

Main - phase3 merge #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: phase3-dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions docs/Pin Lists in OpenPLC.txt
Original file line number Diff line number Diff line change
@@ -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
61 changes: 61 additions & 0 deletions docs/ProjectTracker_5VArduino_OpenPLC_TrainerBuild.md
Original file line number Diff line number Diff line change
@@ -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.

---