From 36062db7693f5f191c60a23a81d6e2fb8ee938ce Mon Sep 17 00:00:00 2001 From: gilgvirts Date: Fri, 20 Feb 2026 22:12:51 +0200 Subject: [PATCH] Update stepper-library-examples.md Description: The default Stepper library examples often use the sequence (8, 9, 10, 11). However, for the widely used 28BYJ-48 stepper motor paired with the ULN2003 driver board, this sequence causes vibration without rotation. Updating the pin definition to (8, 10, 9, 11) correctly sequences the internal coils, ensuring smooth rotation as intended by the tutorial. --- .../04.stepper-motors/stepper-library-examples.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/learn/04.electronics/04.stepper-motors/stepper-library-examples.md b/content/learn/04.electronics/04.stepper-motors/stepper-library-examples.md index 19494de4d8..a9b9f45d60 100644 --- a/content/learn/04.electronics/04.stepper-motors/stepper-library-examples.md +++ b/content/learn/04.electronics/04.stepper-motors/stepper-library-examples.md @@ -54,7 +54,7 @@ A stepper motor follows the turns of a potentiometer (or other sensor) on analog // create an instance of the stepper class, specifying // the number of steps of the motor and the pins it's // attached to -Stepper stepper(STEPS, 8, 9, 10, 11); +Stepper stepper(STEPS, 8, 10, 9, 11); // the previous reading from the analog input int previous = 0; @@ -173,4 +173,4 @@ void loop() { myStepper.step(stepsPerRevolution / 100); } } -``` \ No newline at end of file +```