Motor Control with the Gadgeteer Load Module

GHI has a very easy to use load control module.  I’m using it simply to turn a motor on/off.  My motor is a an Aristo-Craft CRE-RE140.  This motor has a voltage range of 1.5-3V with a current of 270mA.

This solution can be found on my Gadgeteer GitHub repository.

Attaching the Load Module to mainboard is easy, as usual.

The harder part is to wire the motor to the load module.  The motor’s positive wire needs to be wired to both the SRG plug and the positive battery.


My power supply is set to 1.5V with a current limit of 270mA.

The code is very basic.  There is only a button event which activates/deactivates load module’s pin.

      void button_ButtonPressed(GTM.GHIElectronics.Button sender, GTM.GHIElectronics.Button.ButtonState state)
            if (!runMotor)
                // run motor
                runMotor = true;
                // turn it off
                runMotor = false;

When the button is pressed, the PIN is activated. The speed of the motor can be controlled by turning the voltage ups and down.