Section 4: Arduino Setup

The advanced features such as StallGuard can be purchased in our PDF guide here.

Now that we know how a stepper motor works, we need to program our ESP32 to make it move. I have taken the time to write all the firmware myself. What we will do in this course is examine it line by line, so you understand how each part works.

Let’s open the firmware in Arduino to begin. Download the example code by entering your email at the top of this page. Open the dual_core_basic folder. Open dual_core_basic.ino in the Arduino IDE 2.

 

Installing ESP Board

Follow this guide to install the ESP32 board.

 

Installing Libraries

Before we begin, we'll need to install some libraries to use this sketch. Open the Arduino library manager and install the following libraries:

  1. TMCStepper
  2. FastAccelStepper

    NEXT SECTION: 5

    Course Sections:

    Advanced Sections:

    Back to blog

    1 comment

    The Arduino firmware link does not work, I cannot download the sketch that the rest of the course makes reference..?
    How may I get this sketch…?
    Thanks

    Andy

    Leave a comment