With Instructables you can share what you make with the world, and tap into an ever-growing community of creative experts.
Tell us about yourself!
If you want to control the speed of the motor without the potentiometer, you can replace:sensorValue = analogRead(analogInPin)/4;outputValue = map(sensorValue, 0, 1023, 0, 255);with:outputValue = 255; // stop=0-255=full speedAnd, of course, you can programmatically set outputValue to whatever value you want based on the logic of your application.
Let your inbox help you discover our best projects, classes, and contests. Instructables will help you learn how to make anything!
© 2016 Autodesk, Inc.