The making of a large 3D printer (400x400x400 mm) for a college project.
How to Make a Big 3D Printer at Home Using Arduino
Project tutorial by Desi Engineer
C# control a stepper motor. Contribute to tinohager/Nager.ArduinoStepperMotor development by creating an account on GitHub. C# control a stepper motor via Serial Port communication. Serial Commands (Baudrate 115200) Command. Quimat Arduino CNC Shield Kit with Stepper Motor: Project 2. Serial Commands (Baudrate 115200) Command. I am currently working on a third year university group project that involves a stepper motor, an arduino uno board and a big easy driver.
- 42,980 views
- 19 comments
- 152 respects
Here's an introduction to control a Nema 17 stepper motor with the help of the Adafruit TB6612 OR A4988 Stepstick OR PHPoC PES-2405 R2
Stepper - A First Introduction to Nema 17
by Ingo Lohs
- 15,763 views
- 7 comments
- 65 respects
A rotating platform based on a stepper motor 28BYJ48, controlled via the X113647 stepper motor driver by serial dialogue.
Stepper-Based Rotating Stand Controlled by Serial Dialogue
Project tutorial by CesareBrizio
- 4,071 views
- 8 comments
- 10 respects
Connect 2 Stepper Motors to Arduino and control them with Joystick - Quick and Easy!
Arduino Nano: Control 2 Stepper Motors With Joystick
Project tutorial by Boian Mitov
- 18,458 views
- 5 comments
- 41 respects
Disassemble an old printer (in this case a dot matrix) and drive the stepper motor(s) for linear motion or rotation. With Arduino.
Driving a Stepper Motor Saved from an Old Printer
by touchmysound
- 16,238 views
- 5 comments
- 46 respects
An easy method to control the stepper motor driven EEZYBOT MK2 robotic arm using a CNC shield and an Arduino Uno.
MK2 Plus Robot Arm Controller
Project tutorial by Samira Peiris
- 6,921 views
- 6 comments
- 24 respects
IKEA PS 2014 Pendant Lamp Modification
Wifi Death Lamp
Project showcase by Jhn S
- 32,617 views
- 3 comments
- 93 respects
A barn door astrophotography mount made with no special tools.
Star Tracker by Emvilza: A Stepper Barn Door Mount
Project tutorial by Emvilza
- 5,957 views
- 4 comments
- 25 respects
Use three stepper motors to make the classic analog clock movement in the opposite direction.
Backward Running Analog Clock with Three Steppers
Project tutorial by scott mangiacotti
- 1,932 views
- 4 comments
- 9 respects
The older members among you can still remember DVD-ROM drives well: let's take another look at the inner values of a past technology.
Check a Stepper Motor From the DVD-ROM
by Ingo Lohs
- 17,624 views
- 2 comments
- 44 respects
Connect Stepper Motor to Arduino and control it with Rotary Encoder - Quick and Easy!
Arduino + Visuino: Control Stepper Motor with Rotary Encoder
by Boian Mitov
- 10,240 views
- 2 comments
- 30 respects
This is a homemade automatic cat feeder instruction. Simple to use and easy to build, no special tools or materials are needed.
DIY Automatic Cat Feeder
Project tutorial by Rundhall
- 4,389 views
- 2 comments
- 11 respects
This device uses 4 servo-driven wheels to slide forwards, backwards, left, right, and turn. Currently under serial or Bluetooth control.
OMNI Wheel Robotics Platform
Project in progress by Jeremy S. Cook
- 3,689 views
- 2 comments
- 20 respects
Here I want to tell you how to make incremental encoder from stepper motor.
Using Stepper Motor as Rotary Encoder
by Andrewf1
- 4,864 views
- 1 comment
- 22 respects
Play around with Lego, Arduino, stepper motors, IR, and piezo beepers! Blip, blop!
Lego Stepperbot
Project tutorial by Fredrik Stridsman
- 3,774 views
- 0 comments
- 9 respects
We have created a car controlled by claps with Arduino. It also stops when it impacts with something.
Clap Controlled Car
Project showcase by Clara & Jone
- 2,267 views
- 0 comments
- 3 respects
A light-tracking turret based on two stepper motors - can rotate about 90 degrees in the vertical and 180 degrees in the horizontal plane.
Arduino-Controlled, Light-Tracking, 2-Axis Rotating Turret
Project tutorial by CesareBrizio
- 1,446 views
- 0 comments
- 6 respects
- Arduino Tutorial
- Arduino Function Libraries
- Arduino Advanced
- Arduino Projects
- Arduino Sensors
- Motor Control
- Arduino And Sound
- Arduino Useful Resources
- Selected Reading
In this chapter, we will interface different types of motors with the Arduino board (UNO) and show you how to connect the motor and drive it from your board.
There are three different type of motors −
- DC motor
- Servo motor
- Stepper motor
A DC motor (Direct Current motor) is the most common type of motor. DC motors normally have just two leads, one positive and one negative. If you connect these two leads directly to a battery, the motor will rotate. If you switch the leads, the motor will rotate in the opposite direction.
Warning − Do not drive the motor directly from Arduino board pins. This may damage the board. Use a driver Circuit or an IC.
We will divide this chapter into three parts −
- Just make your motor spin
- Control motor speed
- Control the direction of the spin of DC motor
Components Required
You will need the following components −
- 1x Arduino UNO board
- 1x PN2222 Transistor
- 1x Small 6V DC Motor
- 1x 1N4001 diode
- 1x 270 立 Resistor
Procedure
Follow the circuit diagram and make the connections as shown in the image given below.
Precautions
Take the following precautions while making the connections.
- First, make sure that the transistor is connected in the right way. The flat side of the transistor should face the Arduino board as shown in the arrangement.
- Second, the striped end of the diode should be towards the +5V power line according to the arrangement shown in the image.
Spin ControlArduino Code
Code to Note
The transistor acts like a switch, controlling the power to the motor. Arduino pin 3 is used to turn the transistor on and off and is given the name 'motorPin' in the sketch.
Result
Motor will spin in full speed when the Arduino pin number 3 goes high.
Motor Speed Control
Following is the schematic diagram of a DC motor, connected to the Arduino board.
Arduino Code
Code to Note
The transistor acts like a switch, controlling the power of the motor. Arduino pin 3 is used to turn the transistor on and off and is given the name 'motorPin' in the sketch.
When the program starts, it prompts you to give the values to control the speed of the motor. You need to enter a value between 0 and 255 in the Serial Monitor.
In the 'loop' function, the command 'Serial.parseInt' is used to read the number entered as text in the Serial Monitor and convert it into an 'int'. You can type any number here. The 'if' statement in the next line simply does an analog write with this number, if the number is between 0 and 255.
Result
The DC motor will spin with different speeds according to the value (0 to 250) received via the serial port.
Spin Direction Control
To control the direction of the spin of DC motor, without interchanging the leads, you can use a circuit called an H-Bridge. An H-bridge is an electronic circuit that can drive the motor in both directions. H-bridges are used in many different applications. One of the most common application is to control motors in robots. It is called an H-bridge because it uses four transistors connected in such a way that the schematic diagram looks like an 'H.'
We will be using the L298 H-Bridge IC here. The L298 can control the speed and direction of DC motors and stepper motors, and can control two motors simultaneously. Its current rating is 2A for each motor. At these currents, however, you will need to use heat sinks.
Components Required
You will need the following components −
- 1 × L298 bridge IC
- 1 × DC motor
- 1 × Arduino UNO
- 1 × breadboard
- 10 × jumper wires
Procedure
Following is the schematic diagram of the DC motor interface to Arduino Uno board.
The above diagram shows how to connect the L298 IC to control two motors. There are three input pins for each motor, Input1 (IN1), Input2 (IN2), and Enable1 (EN1) for Motor1 and Input3, Input4, and Enable2 for Motor2.
Since we will be controlling only one motor in this example, we will connect the Arduino to IN1 (pin 5), IN2 (pin 7), and Enable1 (pin 6) of the L298 IC. Pins 5 and 7 are digital, i.e. ON or OFF inputs, while pin 6 needs a pulse-width modulated (PWM) signal to control the motor speed.
The following table shows which direction the motor will turn based on the digital values of IN1 and IN2.
IN1 | IN2 | Motor Behavior |
---|---|---|
BRAKE | ||
1 | FORWARD | |
1 | BACKWARD | |
1 | 1 | BRAKE |
Pin IN1 of the IC L298 is connected to pin 8 of Arduino while IN2 is connected to pin 9. These two digital pins of Arduino control the direction of the motor. The EN A pin of IC is connected to the PWM pin 2 of Arduino. This will control the speed of the motor.
To set the values of Arduino pins 8 and 9, we have used the digitalWrite() function, and to set the value of pin 2, we have to use the analogWrite() function.
Connection Steps
- Connect 5V and the ground of the IC to 5V and the ground of Arduino, respectively.
- Connect the motor to pins 2 and 3 of the IC.
- Connect IN1 of the IC to pin 8 of Arduino.
- Connect IN2 of the IC to pin 9 of Arduino.
- Connect EN1 of IC to pin 2 of Arduino.
- Connect SENS A pin of IC to the ground.
- Connect Arduino using Arduino USB cable and upload the program to Arduino using Arduino IDE software.
- Provide power to Arduino board using power supply, battery, or USB cable.
Arduino Code
Result
The motor will run first in the clockwise (CW) direction for 3 seconds and then counter-clockwise (CCW) for 3 seconds.