- Description
- Additional information
- Reviews (4)
- Enquiry2
Description
Model Version: 28BYJ-48-5V
Specification:
- Diameter: 28mm
- Voltage: 5V
- Step angle: 5.625 x 1 / 64
- Reduction ratio: 1 / 64
5 Line 4 phase can be driven by ordinary ULN2003 chip can also be connected in phase 2 development board used for supporting the use of a direct plug and easy to use stepper motor used in the development board.
You will need any motor driver shield to make it work, preferable ULN2003 board, and the driving shield could control by arduino or other MCU
Additional information
Weight | 0.04 kg |
---|
lasupermarmota –
The motor is a little slow, 1 turn/3 seconds. But its a reduced so it is strong.
Test in arduino with this code
/*
Connect like this:
ARDUINO ULN2003 STEPPER M.
Red = 5v
4——-1 16——Orange
5——-2 15——Yellow
6——-3 14——Pink
7——-4 13——Blue
Gnd–8 9–+5v
*/
void setup() {
// initialize the LED pin as an output:
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
digitalWrite(4, LOW);
digitalWrite(5, LOW);
digitalWrite(6, LOW);
digitalWrite(7, LOW);
}
void loop(){
int time = 800;
//step 1
delay(time);
digitalWrite(4, LOW);
digitalWrite(5, HIGH);
digitalWrite(6, HIGH);
digitalWrite(7, HIGH);
//step 2
delay(time);
digitalWrite(4, LOW);
digitalWrite(5, LOW);
digitalWrite(6, HIGH);
digitalWrite(7, HIGH);
//step 3
delay(time);
digitalWrite(4, HIGH);
digitalWrite(5, LOW);
digitalWrite(6, HIGH);
digitalWrite(7, HIGH);
//step 4
delay(time);
digitalWrite(4, HIGH);
digitalWrite(5, LOW);
digitalWrite(6, LOW);
digitalWrite(7, HIGH);
//step 5
delay(time);
digitalWrite(4, HIGH);
digitalWrite(5, HIGH);
digitalWrite(6, LOW);
digitalWrite(7, HIGH);
//step 6
delay(time);
digitalWrite(4, HIGH);
digitalWrite(5, HIGH);
digitalWrite(6, LOW);
digitalWrite(7, LOW);
//step 7
delay(time);
digitalWrite(4, HIGH);
digitalWrite(5, HIGH);
digitalWrite(6, HIGH);
digitalWrite(7, LOW);
//step 8
delay(time);
digitalWrite(4, LOW);
digitalWrite(5, HIGH);
digitalWrite(6, HIGH);
digitalWrite(7, LOW);
}
jounihuo (verified owner) –
One of the cheapest steppers out there. Works great with Arduino and the stepper driver board!
remymorra (verified owner) –
gooooooooooooood
bandula de silva –
i used the above programme it is perfectly work thank you very much and did some modifications to run the stepper motor to rotate in reverse direction. i included two functions to do it
here is the listing
/*
Connect like this:
ARDUINO ULN2003 STEPPER M.
Red = 5v
4——-1 16——Orange
5——-2 15——Yellow
6——-3 14——Pink
7——-4 13——Blue
Gnd–8 9–+5v
*/
int time = 4;int j=0;
void setup() {
// initialize the LED pin as an output:
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
digitalWrite(4, LOW);
digitalWrite(5, LOW);
digitalWrite(6, LOW);
digitalWrite(7, LOW);
}
void loop(){
while(j<1000)
{ j++;
forward();
}
digitalWrite(4, LOW);
digitalWrite(5, LOW);
digitalWrite(6, LOW);
digitalWrite(7, LOW);
delay(300);
j=0;
while(j<1000)
{ j++;
reverse();
}
//wait
digitalWrite(4, LOW);
digitalWrite(5, LOW);
digitalWrite(6, LOW);
digitalWrite(7, LOW);
delay(300);
j=0;
}
void reverse()
{
//step 9
delay(time);
digitalWrite(4, HIGH);
digitalWrite(5, HIGH);
digitalWrite(6, HIGH);
digitalWrite(7, LOW);
//step 10
delay(time);
digitalWrite(4, HIGH);
digitalWrite(5, HIGH);
digitalWrite(6, LOW);
digitalWrite(7, LOW);
//step 11
delay(time);
digitalWrite(4, HIGH);
digitalWrite(5, HIGH);
digitalWrite(6, LOW);
digitalWrite(7, HIGH);
//step 12
delay(time);
digitalWrite(4, HIGH);
digitalWrite(5, LOW);
digitalWrite(6, LOW);
digitalWrite(7, HIGH);
//step 3
delay(time);
digitalWrite(4, HIGH);
digitalWrite(5, LOW);
digitalWrite(6, HIGH);
digitalWrite(7, HIGH);
//step 2
delay(time);
digitalWrite(4, LOW);
digitalWrite(5, LOW);
digitalWrite(6, HIGH);
digitalWrite(7, HIGH);
//step 1
delay(time);
digitalWrite(4, LOW);
digitalWrite(5, HIGH);
digitalWrite(6, HIGH);
digitalWrite(7, HIGH);
}
void forward()
{//step 1
delay(time);
digitalWrite(4, LOW);
digitalWrite(5, HIGH);
digitalWrite(6, HIGH);
digitalWrite(7, HIGH);
//step 2
delay(time);
digitalWrite(4, LOW);
digitalWrite(5, LOW);
digitalWrite(6, HIGH);
digitalWrite(7, HIGH);
//step 3
delay(time);
digitalWrite(4, HIGH);
digitalWrite(5, LOW);
digitalWrite(6, HIGH);
digitalWrite(7, HIGH);
//step 4
delay(time);
digitalWrite(4, HIGH);
digitalWrite(5, LOW);
digitalWrite(6, LOW);
digitalWrite(7, HIGH);
//step 5
delay(time);
digitalWrite(4, HIGH);
digitalWrite(5, HIGH);
digitalWrite(6, LOW);
digitalWrite(7, HIGH);
//step 6
delay(time);
digitalWrite(4, HIGH);
digitalWrite(5, HIGH);
digitalWrite(6, LOW);
digitalWrite(7, LOW);
//step 7
delay(time);
digitalWrite(4, HIGH);
digitalWrite(5, HIGH);
digitalWrite(6, HIGH);
digitalWrite(7, LOW);
//step 8
delay(time);
digitalWrite(4, LOW);
digitalWrite(5, HIGH);
digitalWrite(6, HIGH);
digitalWrite(7, LOW);
}