Examples / Stepper motor

Stepper motor

Precise position moves, continuous rotation, and a live position readout — the browser as a motor controller.

IntermediateMotionTool
Stepper motor — the example running

Stepper motor

Drive a stepper motor from the browser with Pardalote. Demonstrates accel-limited position moves, continuous rotation, live position readout, and the done completion event.

Hardware

Wiring for a STEP/DIR driver:

Driver pin Arduino
STEP pin 2 (default — change it in the page's Wiring row)
DIR pin 3 (default)
EN pin 4 (default) — optional, active-LOW on most drivers; −1 = none
GND shared ground with the Arduino

Set microstepping with the driver's MS pins as usual, then tell the JS side how many steps that makes per revolution with setStepsPerRev().

Arduino

Install the AccelStepper library (Arduino IDE → Manage Libraries), then upload File → Examples → Pardalote → stepper-motor. Note the IP address the board reports (LED matrix on UNO R4, Serial Monitor on ESP32).

Browser

This is a tool — it works out of the box, no code editing:

  1. Open index.html in a browser.
  2. Type the board's IP into the Board row and press Connect.
  3. Pick your driver type and pins in the Wiring row (STEP/DIR or 4 coil pins), then press Connect again to apply.

The browser remembers your IP, wiring, and motion profile, so next visit it reconnects with one click. Every stepper feature has a control row — position and timed moves, continuous spin, torque on/off, soft limits, limit switches, and the homing routine — with a live dial and a call log underneath.

Notes