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)
// 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.
Share this Post