A control and actuation system is provided for a molding machine for producing expanded-grain cakes. The system includes a control unit, a temperature-regulated heating system, multiple motors operated by the control unit for separately actuating mechanical functions, multiple sensors for providing grain level and mechanism positional data to the control unit, control inputs for programming and otherwise providing input to the control unit, and a display device allowing the control unit to provide operational status information. The control unit regulates the thermal energy input to the mold, the molding cycle frequency, and the size of the grain charge. Several interrupts are used to ensure conformance to the control parameters and to enhance operator safety.