Stufin
Home Quick Cart Profile

28BYJ-48 5V DC Stepper Motor

Buy Now on Stufin

Name

28BYJ-48 5V DC Stepper Motor

Type

Bipolar Stepper Motor

Description

The 28BYJ-48 5V DC Stepper Motor is a small, compact, and affordable bipolar stepper motor widely used in various IoT projects, robots, and automation systems. It is a 5-pin motor that operates on a 5V DC power supply, making it suitable for a broad range of applications.

Functionality

The 28BYJ-48 5V DC Stepper Motor is designed to convert electrical pulses into precise mechanical movements. It accomplishes this by dividing a full rotation into a sequence of small, discrete steps. The motor's shaft rotates in small increments, allowing for precise control over the motor's position and velocity.

Key Features

  • Step Angle: 5.625 (48 steps per revolution)
  • Rated Voltage: 5V DC
  • Rated Current: 150mA
  • Phase resistance: 30 10%
  • Phase inductance: 20mH 20%
  • Hold torque: 20N.cm (min)
  • Shaft diameter: 5mm (D-type)
  • Shaft length: 24mm
  • Motor size: 28 28 34.5mm
  • Weight: approximately 50g
  • Connection: 5-pin header (compatible with ULN2003 driver IC)

Operating temperature range

-20C to 40C

Storage temperature range

-30C to 60C

Insulation resistance

10M (at 500V DC)

Dielectric strength

500V AC (for 1 minute)

Applications

The 28BYJ-48 5V DC Stepper Motor is suitable for various IoT projects, including

Robotics and robotic arms

CNC machines and 3D printers

Automated systems and control systems

Medical devices and equipment

Home automation and security systems

Conclusion

The 28BYJ-48 5V DC Stepper Motor is a compact, reliable, and affordable bipolar stepper motor ideal for a wide range of applications. Its precise control and high torque make it an excellent choice for IoT projects requiring accurate positioning and movement.

Pin Configuration

  • 28BYJ-48 5V DC Stepper Motor Pinout and Connection Guide
  • The 28BYJ-48 5V DC Stepper Motor is a popular and affordable motor used in various IoT and robotics applications. It has a total of 5 pins, which need to be connected correctly to control the motor's operation. Here's a detailed explanation of each pin and how to connect them:
  • Pinout:
  • 1. VCC (Red Wire): This pin is the positive power supply pin, which connects to the 5V DC power source.
  • 2. GND (Black Wire): This pin is the ground or negative power supply pin, which connects to the 0V or negative terminal of the power source.
  • 3. IN1 (Yellow Wire): This pin is one of the input pins that control the motor's rotation direction and step sequence. It connects to the microcontroller's digital output pin.
  • 4. IN2 (White Wire): This pin is the other input pin that controls the motor's rotation direction and step sequence. It connects to the microcontroller's digital output pin.
  • 5. IN3 (Blue Wire): This pin is not used in the 28BYJ-48 motor and is typically left unconnected.
  • Connection Structure:
  • To connect the motor to a microcontroller or a driver circuit, follow this structure:
  • Power Supply:
  • + VCC (Red Wire) 5V DC Power Source (Positive Terminal)
  • + GND (Black Wire) 0V or Negative Terminal of the Power Source
  • Control Signals:
  • + IN1 (Yellow Wire) Microcontroller's Digital Output Pin (e.g., Arduino's Digital Pin 2)
  • + IN2 (White Wire) Microcontroller's Digital Output Pin (e.g., Arduino's Digital Pin 3)
  • Important Notes:
  • The motor requires a 5V DC power supply to operate correctly.
  • The motor's rotation direction and step sequence are controlled by the input pins IN1 and IN2.
  • The motor's wiring should be done carefully to avoid any damage or malfunction.
  • It is recommended to use a suitable motor driver IC (such as the ULN2003) to control the motor, especially when using a microcontroller with limited current output capabilities.
  • By following this pinout and connection guide, you can successfully integrate the 28BYJ-48 5V DC Stepper Motor into your IoT or robotics project.

Code Examples

28BYJ-48 5V DC Stepper Motor Documentation
Overview
The 28BYJ-48 is a 5V DC stepper motor that is commonly used in various IoT projects, robotics, and automation systems. It is a unipolar stepper motor, meaning it has 5 wires: 4 coil wires and 1 power wire. This documentation provides an overview of the motor's specifications, pinouts, and code examples for using it with popular microcontrollers.
Specifications
Voltage: 5V DC
 Current: 0.1A per phase
 Steps per Revolution: 48
 Step Angle: 7.5
 Holding Torque: 34 oz-in (240 mN-m)
 Rotor Inertia: 25 oz-in-s (180 kg-mm)
 Coil Resistance: 50 ohms per phase
 Coil Inductance: 10 mH per phase
Pinout
The 28BYJ-48 stepper motor has 5 wires:
Red (VCC): Power wire, connected to 5V DC
 Yellow: Coil 1A wire
 Pink: Coil 1B wire
 Orange: Coil 2A wire
 Blue: Coil 2B wire
Code Examples
### Example 1: Using 28BYJ-48 with Arduino
This example demonstrates how to use the 28BYJ-48 stepper motor with an Arduino board to rotate the motor clockwise and counterclockwise.
```c
#include <Stepper.h>
// Define the stepper motor pins
#define IN1  2
#define IN2  3
#define IN3  4
#define IN4  5
// Create a Stepper instance
Stepper stepper(200, IN1, IN3, IN2, IN4);
void setup() {
  // Set the motor speed (RPM)
  stepper.setSpeed(60);
}
void loop() {
  // Rotate the motor clockwise
  stepper.step(200);
  delay(500);
// Rotate the motor counterclockwise
  stepper.step(-200);
  delay(500);
}
```
### Example 2: Using 28BYJ-48 with Raspberry Pi (Python)
This example demonstrates how to use the 28BYJ-48 stepper motor with a Raspberry Pi board to rotate the motor using Python.
```python
import RPi.GPIO as GPIO
import time
# Define the stepper motor pins
IN1 = 17
IN2 = 23
IN3 = 24
IN4 = 25
# Set up GPIO mode
GPIO.setmode(GPIO.BCM)
# Set up the motor pins as outputs
GPIO.setup(IN1, GPIO.OUT)
GPIO.setup(IN2, GPIO.OUT)
GPIO.setup(IN3, GPIO.OUT)
GPIO.setup(IN4, GPIO.OUT)
# Define the sequence of motor steps
sequence = [[1, 0, 0, 0],
             [0, 1, 0, 0],
             [0, 0, 1, 0],
             [0, 0, 0, 1]]
try:
    while True:
        # Rotate the motor clockwise
        for i in range(200):
            for step in sequence:
                GPIO.output(IN1, step[0])
                GPIO.output(IN2, step[1])
                GPIO.output(IN3, step[2])
                GPIO.output(IN4, step[3])
                time.sleep(0.01)
# Rotate the motor counterclockwise
        for i in range(200):
            for step in reversed(sequence):
                GPIO.output(IN1, step[0])
                GPIO.output(IN2, step[1])
                GPIO.output(IN3, step[2])
                GPIO.output(IN4, step[3])
                time.sleep(0.01)
except KeyboardInterrupt:
    # Clean up GPIOs on exit
    GPIO.cleanup()
```
Note: These code examples are for illustration purposes only and may require modifications to work with specific microcontrollers, power supplies, and other components in your project. Always ensure proper voltage and current supply to the motor, and handle motor control carefully to avoid damage or injury.