Simorgh Aviation Factory · 2018 – 2020
Automated monitoring and power control for a mining farm
A Raspberry Pi that watches every mining rig, decides when one needs a reboot or a shutdown, and does it physically through Arduino-driven relays and contactors, with a web panel for remote control.
- Role
- Project manager and developer: software and wiring
- Stack
- Python agent on every rig, decisions on a Raspberry Pi
- I²C commands to 4 Arduino boards
- Relays that press the power button like a person would
A room full of cryptocurrency mining rigs runs hot and runs all the time. A crashed GPU or a failed fan means lost income, or damaged hardware, until someone notices. I built a system that notices, decides and acts on its own, down to physically pressing a rig’s power button.
Architecture
Mining rig ×N ── Python agent ──(network)──▶ Raspberry Pi ── Python service ── web panel
│
└── I²C ──▶ 4 × Arduino ──▶ relays / contactors ──▶ rigs
Agents on every rig
A small Python client runs on every rig and reports its health to the Raspberry Pi: GPU temperatures, fan speeds, hash rate and more.
Decisions on the Raspberry Pi
A Python service on the Pi collects the reports and decides what to do with each rig: leave it alone, reboot it, turn it off, or turn it off permanently if it keeps failing.
Physical control through Arduino
The Pi sends predefined command codes over I²C to four Arduino boards, each responsible for a group of rigs. The Arduinos switch the hardware:
- Contactors cut or restore mains power to a rig.
- Relays wired in parallel with each rig’s power button close for a moment to imitate a real button press, so a rig can be booted or forced off cleanly without cutting its power.
I did the wiring too: every rig’s power button connects to the control panel.
Remote web panel
The Pi also serves a web panel reachable over the internet, where an operator can see every rig and turn it on, turn it off or reboot it by hand.
What it shows
Software that makes decisions and then acts on real hardware: sensors in, logic in the middle, relays out. The same combination, at a larger scale and under regulation, is at the heart of the Multikiosk work.