
Sector67 has an injection molding machine. It’s a tiny Arburg Allrounder C4S, and we’ve only ever made one mold for it, but it’s a cute little thing that’s good for teaching. When Sector moved locations, this was unfortunately dropped from the second story, and the electronics were banged up. Everything else was ok, mostly because it landed on mud rather than concrete. I was tasked with replacing the electronics. It’s pretty simple. There’s a heater element, which is easy to control with a separate PID controller. There’s a solenoid that controls the clamp, and a solenoid that controls the injection. And there are switches for the fence, the mold closed sensor, and the ejection sensor. The original electronics had a couple analog timers for running it, but I opted for an Arduino instead. Inside the new box is a 5V power supply, which provides power to the PID controller and the Arduino. The Arduino has a keypad and LCD shield attached. Two pins go to the solenoids, with some extra momentary buttons to manually control the solenoids if desired, and two pins come from the switches to go into the Arduino as input. The PID controller operates a solid state relay for the heater element, and the Arduino controls a relay board to operate the solenoids. And that’s pretty much it.
The damage to the old electronics was extensive, and they were so old that it wasn’t worth trying to repair it all. I wanted to start over with something I could have a lot more control over.

The interface is simple. A power button on the left controls everything, including the heater element, the solenoids, and the sensors. The heating element is a separate PID controller module and runs on its own. Then there’s the Arduino with an LCD shield on top with 5 buttons for controlling the user interface. The final two buttons are for manually controlling the solenoids.

Inside I reused the plate that contained all the connectors. Since most of the plugs and the things they were connecting to were fine, this was an easy line to draw to separate the new from the old stuff. The PID controller controls a solid state relay to turn on the heater element. An Arduino controls the two relay modules that turn on the clamp and the screw solenoids. A small 5V power supply powers everything. There is an external switch for detecting if the clamp is closed or not, and there’s an IR transmitter/receiver pair under the eject port that detects when a part has been ejected successfully. This is incorporated into the firmware to wait for those switches to actuate appropriately, but it’s a configurable setting to wait for those switches vs. just do it based on time.


The firmware has two things that it controls: the clamp that shuts the mold together, and the screw that forces the plastic into the mold. The trick is to do it at the right time. With configurable settings, the cycle can be adjusted to work for any mold.
Video of it working is here: https://photos.app.goo.gl/fNatB85DSHzLxeoeA