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.
Join 2 million + to receive instant DIY inspiration in your inbox.
© 2016 Autodesk, Inc.