Make: Action by Simon Monk

Make: Action by Simon Monk

Author:Simon Monk
Language: eng
Format: epub, pdf
Publisher: Maker Media, Inc.
Published: 2016-02-24T05:00:00+00:00


The code starts by defining the pins that will be used to control the motor. You can, of course, change these pins as long as you also modify your breadboard to match.

The variable period is the delay between each coil activation in a step of the motors’ rotation. This is initially set to 20 milliseconds. You can change this value over the Serial Monitor to speed up or slow down the motor.

The setup() function sets the control pins to be digital outputs, starts serial communication with the Serial Monitor, and then prints out a message explaining the format of the commands that you can send.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.