Simple Speed Control
PURPOSE: Driving a motor using the onboard trimpots as a speed controller.
PRODUCTS TESTED: GM215
SETUP: IN2, TRIM4 and TRIM5
Many simple motion applications require a set speed on a motor when you turn it on. This will allow you to set the speed once manually and be able to turn the motor on indefinitely at the push of a button.
Initial setup for this requires a momentary switch going from IN2 to +5V, with the negative of your 5V supply going to COMMON. Be sure that your GM215 is set to EDIT mode and is assigned the proper axis designation according to the DIP switches.
x configure: 1.5 amps, idle at 50% after 1 seconds
IF x in2 is off GOTO false
IF x in2 is on GOTO true
ANALOG INPUTS TO x
x SPEED CONTROL +1000
goto true ; REPEAT. INFINITE LOOP
If you would like to submit a piece of code to be added please email it to [email protected] and we will add it once it has been verified to work as intended.