EasyManua.ls Logo

Elegoo Mega2560 - Page 214

Elegoo Mega2560
224 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
213
/
223
We are using 4 pins to control the Stepper.
Pin 8-11 are controlling the Stepper motor.
We connect the Ground from to MEGA2560 to the Stepper motor.
Code
After wiring, please open the program in the code folder- Lesson 31 Stepper Motor
and click UPLOAD to upload the program. See Lesson 2 for details about program
uploading if there are any errors.
Before you can run this, make sure that you have installed the < Stepper > library or
re-install it, if necessary. Otherwise, your code won't work.
For details about loading the library file, see Lesson 1.
Example picture

Table of Contents