Your picture does not show any power connections to the board to run the NodeMCU and the stepper motor. If your using the USB on the NodeMCU to power the system then you probably wont have enough power and risk damaging your NodeMCU.
Did the OP ever get anywhere with this? I think I might have the same driver board from www.doit.am and cannot get my 28BYJ-48 stepper to do anything with it.
I'm connecting the wires as OP but am also providing 5v from external source to the board and motor (while disconnected from USB). I see the NodeMCU led blinking as I've set it in the code, so I know that my code is running ok, but nothing happens to the motor.
I'm also looking to write my code with Arduino IDE much rather than with LUA but am clueless what the Stepper (or AccelStepper) pinouts should be for the driver board.
Stepper motor itself seems ok based on testing the coil pairs with a led.
I too was aiming to make a version of the IKEA Roller Blind that the OP is referencing
...and as a software developer have taken a LEGO approach to the electronics parts, as-in: "build as in a the pictures". Supporting that with next to no understanding on what is a BIPOLAR and UNIPOLAR stepper motor.
As far as I can tell I had the same parts than in the Instructables and connected as in the pictures/videos and expected something to happen. Not so much.
Will need to do my homework, although, to be honest, wouldn't know how to connect that driver to the nodemcu either.
Arduino pin 8 to In 1 on ULN2003 module, motor plugs into module socket.
10 to In 2 " " "
9 to In 3 " " "
11 to In 4 " " "
And works with the Arduino stepper library, here's the "stepper_oneRevolution" example sketch from the stepper library, modified for the 28BYJ-48, steps per revolution changed to 2048, speed changed to 8 RPM (16 RPM is about max for the 28BYJ-48 without missing steps.
/*
Stepper Motor Control - one revolution
This program drives a unipolar or bipolar stepper motor.
The motor is attached to digital pins 8 - 11 of the Arduino.
The motor should revolve one revolution in one direction, then
one revolution in the other direction.
Created 11 Mar. 2007
Modified 30 Nov. 2009
by Tom Igoe
*/
#include <Stepper.h>
const int stepsPerRevolution = 2048; // change this to fit the number of steps per revolution
// for your motor
// initialize the stepper library on pins 8 through 11:
Stepper myStepper(stepsPerRevolution, 8, 9, 10, 11);
void setup() {
// set the speed at 60 rpm:
myStepper.setSpeed(8);
// initialize the serial port:
Serial.begin(9600);
}
void loop() {
// step one revolution in one direction:
Serial.println("clockwise");
myStepper.step(stepsPerRevolution);
delay(500);
// step one revolution in the other direction:
Serial.println("counterclockwise");
myStepper.step(-stepsPerRevolution);
delay(500);
}
Hi All,
I understand that this thread is a little old, but there is a lot of relevant information that seems silly to force being explained again in a new thread.
I've purchased a similar set up to what's described here and am having similar issues. The motor is not turning, but rather is emitting a faint vibration.
For testing purposes, I'm using the same sketch discussed here, Ardunio sample --> stepper_oneRevolution
The steps are set to 200 with the function call as --> Stepper myStepper(stepsPerRevolution, 1, 3, 2, 4)
I'm wondering if the motor needs more current that the power supply can provide?
Although, it seems like it should be providing over 2A total, given the ESP8266 power requirements are quite low. Shouldn't 1A per coil be enough to make it turn?