Description
*Never struggle with limited I/O pins again!* In this video, I'll show you how I designed and built an industrial-grade 16-channel GPIO expander on a DIN-rail mountable PCB. From schematic design to assembly and testing, you'll see every step including how to protect your circuit with optoisolation, selectable 5V/24V power, and hardware address configuration with a 7-segment display.
*What You Will Learn in This Video:*
1️⃣ Designing the schematic in Altium with the MCP23017 I²C I/O expander.
2️⃣ Routing a 2-layer PCB with industrial protection features including optoisolation, reverse polarity protection, and TVS diodes.
3️⃣ Ordering the PCBs with SMT assembly from JLCPCB.
4️⃣ Assembling the board using a stencil and hot plate.
5️⃣ Testing the outputs and inputs with an Arduino Uno.
6️⃣ 3D printing a DIN-rail mountable enclosure.
---
*🛠️ TOOLS I USED*
Visit Altium Develop : Design your own PCBs → https://www.altium.com/yt/diyguychris
JLCPCB (Discount): Order PCBs → https://jlcpcb.com/?from=TIP
JLC3DP (3D Printing): DIN-rail enclosure → https://jlc3dp.com/?from=TIP
Online Altium Project Files : Access here → https://diy-guy-chris.365.altium.com/designs/B946E0F8-08BB-44F3-9F6D-7489046B26EA
---
*📁 PROJECT FILES*
Check full GitHub repo : https://github.com/BEEMB/Industrial-GPIO-Expander-MCP23017
Circuit Schematic : https://github.com/BEEMB/Industrial-GPIO-Expander-MCP23017/blob/main/Hardware/Schematic/Schematic.pdf
JLCPCB-optimized Gerbers : https://github.com/BEEMB/Industrial-GPIO-Expander-MCP23017/tree/main/Hardware/GERBER
STL for 3D Printed Enclosure : https://github.com/BEEMB/Industrial-GPIO-Expander-MCP23017/tree/main/Hardware/3D_Models
Arduino Test Code : https://github.com/BEEMB/Industrial-GPIO-Expander-MCP23017/tree/main/Software
---
*🔧 BUILD ESSENTIALS*
*PCB Assembly:*
- PCB from JLCPCB (with SMT assembly)
- Solder Paste: https://www.amazon.com/Solder-Bi57-6-No-Clean-Lead-Free-Temperature/dp/B0195V1QEI
- Flux cleaner: https://amzn.to/4vO94Lo
- Mini Hotplate: https://amzn.to/4e3BE5b
- Soldering station: https://amzn.to/4cvwEoN
- Precision Tweezers: https://amzn.to/4mNdXAe
- PCB Stencil (from JLCPCB)
*Debugging & Programming:*
- Digital Microscope Camera: https://amzn.to/41ZlhPQ
- Digital Multimeter: https://amzn.to/41VhvqF
- Arduino Uno (or compatible)
*3D Printing (DIN-rail Enclosure):*
- PLA Filament (or Resin)
- M3 Threaded Inserts
- DIN-rail Clip
---
*⏱️ CHAPTERS*
0:00 – Project intro & GPIO expander demo
2:01 – Schematic design in Altium (MCP23017, optocouplers, ULN2803A)
4:27 – PCB layout – industrial protection & PLC-style connector placement
5:08 – Ordering PCBs with SMT assembly from JLCPCB
5:32 – Component assembly (stencil, paste, hot plate reflow)
6:33 – Testing outputs with Arduino & I²C
7:48 – Testing inputs
8:05 – 3D printing the DIN-rail enclosure
8:23 – Final assembly and mounting on DIN-rail
---
*🔗 MORE PROJECTS*
Transparent Arduino UNO: https://youtu.be/CXMNoTEyvVs
Learn How to Burn Bootloader: https://youtu.be/UUYz1T53EIQ
Check my DIY Battery Spot Welder video: https://youtu.be/PaCtLfOyqVk
---
*★☆★ 💻 FOLLOW ME BELOW 💻 ★☆★*
Instructables: http://www.instructables.com/member/M...
Hackaday : https://hackaday.io/MegaDAS
Facebook : https://www.facebook.com/MEG.DAS1
Twitter : https://twitter.com/MEGADAS1
Hackster : https://www.hackster.io/mega-das
---
*Keywords:*
#jlcpcb #diy #arduino #pcb #gpio #gpioexpander #mcp23017 #industrial #automation #plc #dinrail #i2c #hardware #maker #circuit #diycrafts #diybuild #arduino #esp32 #raspberrypi #industrialautomation #openhardware
