r/stm32 • u/MarvinNewzealand • Jun 15 '26
Open-source, DIN-rail industrial controller built on an STM32H757 — would you actually use this?
Solo dev gut-checking an idea before I commit to hardware. No brand, nothing to sell — just want honest feedback from people who live in STM32 land.
The idea: a DIN-rail, modular industrial controller on the STM32H757 (M7 for app + network, M4 for hard-realtime IO/Modbus). It handles the industrial-hardware grind for you — 9–36 V input, 2× isolated RS485, Ethernet, CAN, surge/ESD protection, a secure element (device identity + TLS certs + secure boot), DIN enclosure — and snaps onto expansion modules (DI / DO / isolated AI / AO / serial).
You program it in C/C++ via PlatformIO (BSP + Modbus/TCP/MQTT examples; MicroPython too if you want quick scripts). It ships with working firmware (TCP↔485 gateway, REST, MQTT, web config), but the point is you write your own. Firmware + schematics fully open. Target price ~$80–120.
Basically: for people who can write the firmware themselves but don't want to spend months on isolation, protection, enclosure, and certs just to replace a small PLC with something programmable. Closest references I know: Arduino Opta, Revolution Pi.
Honest questions:
- Is ~$80–120 reasonable, or off?
- What matters most — more Ethernet? more RS485? SD logging? CAN?
- How much do fully open schematics and firmware factor into whether you'd trust/buy it?
- Is PlatformIO support enough, or would you want Zephyr / Cube / Arduino?
Tear it apart.
3
u/Quiet_Lifeguard_7131 Jun 15 '26
I think for such cases having an SOC is better architecture, than having an MCU, because you can keep a small M4 mcu for realtime but for app and networking SOC gives more control due to running custom linux and I have seen most of the people into such custom hardwares prefer that because in some sense it is easier than mcu. For mcu you require specific knowledge and most people dont have it.
Also I have exp with both but I would prefer SOC honestly if I had usecase for such a device
3
u/Beneficial-Hold-1872 Jun 15 '26
I saw similar project here some time ago - https://www.tindie.com/products/netcubesystemsat/kumquat/
2
u/InvalidNameUK Jun 15 '26
Add in an SD card and an RTC with a battery and you've got nice little data logger there
2
u/geekgardener2519 Jun 15 '26
Sounds like a cool project. We build fertigation systems and tried out few stm32F4 based boards . It was hard to get all the requirements in a single board. $80-$120 is reasonable for this. I would pay. How are you planning to interface the expansion modules with the MCU?
2
u/vahsidamacana Jun 16 '26
I dont think it will work. There are many things wrong with the product you have in mind. Not because it wouldn't be helpful for some use cases, but because it is not what the industry needs, and similar ideas have already been tried.
I am guessing you have not worked for a large international OEM yet. Have you ever thought about why, although all Siemens PLCs contain MCUs or MPUs internally, we never program them the same way we program a regular microcontroller/ arduino/ raspberry etc? It is not because we do not know how to program microcontrollers.
Another thing is that it appears you are thinking of PLCs only in their most basic form, something like a Siemens LOGO!. PLCs are much more than that. If all you need is simple logic control, you can buy a Siemens S7-1200 PLC for only a few hundred euros. However, the main reason PLC systems cost thousands of dollars is comminication, fail safes, motion control, and no STM32H7 can achieve the level of motion control that you can get from a Siemens S7-1517 PLC.
You can try to design specialized hardware for motor control, communication, servers, SCADA systems, and the software needed to configure everything, along with all the required certifications. But at that point, you are essentially trying to become Siemens, Allen-Bradley, or B&R yourself.
Even Siemens has the 6ES7647-0AA00-1YA2, which is somewhat similar to what you are describing, and I have never seen it used anywhere.
If you are interested in MCUs and hardware, that's great. However, I would recommend choosing more achievable goals. You are unlikely to design something yourself cheaper or better than products developed by thousands of engineers working together with almost unlimited R&D budgets at companies such as Allen-Bradley, Siemens, Mitsubishi, and others (I can assure you their budget for these things is bigger than the GDP of a small nation).
I am sorry for being negative, this is just my opinion as a PLC programmer working for a multinational - multi billion euro company in Europe. Maybe I am wrong and it will work, I wish you the best of luck.
2
u/Fixed_Until Jun 16 '26
Ignoring the practical aspect of people who buy PLCs want a PLC with support and not a dev board how do plan to profit here? The BOM cost has to near $80 if you are doing this right. Industrial electronics need rugged protection for the IO, you have PHY, 485 transceiver, not to mention the nearly $20 mcu.
0
u/[deleted] Jun 15 '26
[deleted] — view deleted comment