arduino, motor stepper by one step at a time

  Рет қаралды 1,298

Mixtarx

Mixtarx

7 жыл бұрын

Arduino code, see below
// written by MIXVIDEO
int in1 = 4; // IN1-IN4= input is of your motorstepper driver (L298N MODULE)
int in2 = 5;
int in3 = 6;
int in4 = 7;
void setup()
{
pinMode(in1, OUTPUT);
pinMode(in2, OUTPUT);
pinMode(in3, OUTPUT);
pinMode(in4, OUTPUT);
}
void loop()
{
digitalWrite(in1, HIGH);
digitalWrite(in2, LOW);
digitalWrite(in3, LOW);
digitalWrite(in4, LOW);
delay(1000); // delay 1=1ms and 1000= 1 seconde
digitalWrite(in1, LOW);
digitalWrite(in2, HIGH);
digitalWrite(in3, LOW);
digitalWrite(in4, LOW);
delay(1000); // delay 1=1ms and 1000= 1 seconde
digitalWrite(in1, LOW);
digitalWrite(in2, LOW);
digitalWrite(in3, HIGH);
digitalWrite(in4, LOW);
delay(1000); // delay 1=1ms and 1000= 1 seconde
digitalWrite(in1, LOW);
digitalWrite(in2, LOW);
digitalWrite(in3, LOW);
digitalWrite(in4, HIGH);
delay(1000); // delay 1=1ms and 1000= 1 seconde
}

Пікірлер: 2
@davidmarle4890
@davidmarle4890 5 жыл бұрын
-Fue de mucha ayuda tu codigo! gracias!
@ATWORKZ
@ATWORKZ 5 жыл бұрын
You welcome
Big Stepper Motors with Arduino
29:43
DroneBot Workshop
Рет қаралды 1,2 МЛН
ROCKET that LITERALLY BURNS WATER as FUEL
19:00
Integza
Рет қаралды 1,7 МЛН
EVOLUTION OF ICE CREAM 😱 #shorts
00:11
Savage Vlogs
Рет қаралды 7 МЛН
WORLD'S SHORTEST WOMAN
00:58
Stokes Twins
Рет қаралды 46 МЛН
ЧУТЬ НЕ УТОНУЛ #shorts
00:27
Паша Осадчий
Рет қаралды 10 МЛН
Stepper Motors and Arduino - The Ultimate Guide
29:57
How To Mechatronics
Рет қаралды 1,1 МЛН
Hacking a weird TV censoring device
20:59
Ben Eater
Рет қаралды 3 МЛН
M5 Bruce is on guys!!
19:59
Bernardo Morcelli
Рет қаралды 7 М.
Try these 16 Brilliant ESP32 projects!!!
11:18
ToP Projects Compilation
Рет қаралды 557 М.
DC motor PID speed control
15:29
Curio Res
Рет қаралды 226 М.
Servo Motors, how do they work?
15:12
The Engineering Mindset
Рет қаралды 1,9 МЛН
Make a TINY Arduino Drone with FPV Camera - Will It Fly?
20:26
Max Imagination
Рет қаралды 733 М.
Hacker's Guide to UART Root Shells
17:40
Flashback Team
Рет қаралды 471 М.
I tried the Cheapest Arduino Alternative (that Nobody heard of)
13:31
Stepper Motors with Arduino - Controlling Bipolar & Unipolar stepper motors
50:22
архив.. Северные Дачи Угледара 23..
0:15
Виталик
Рет қаралды 13 МЛН
🥹Он герой (shawn_cnhk on IG)
0:15
Бутылочка
Рет қаралды 5 МЛН
Бедная бабушка...
0:56
Почему?
Рет қаралды 3,8 МЛН
Useful gadget for styling hair 🤩💖 #gadgets #hairstyle
0:20
FLIP FLOP Hacks
Рет қаралды 9 МЛН
A woman comes a plan to teach her indifferent husband a lesson #shorts
0:44
Fabiosa Best Lifehacks
Рет қаралды 2,3 МЛН