Questions tagged [motor]
Use this tag for questions about connecting, controlling, and safely operating motors using an Arduino board.
689 questions
-2 votes
0 answers
25 views
Controlling a gear motor turn a valve handle [closed]
How to make the gear motor to turn only from 0 degrees to 90 degrees and back to 0 degrees?
0 votes
1 answer
75 views
MKR1010 Interference when relay motor engages?
I am a complete beginner. Are Arduino products really flaky? I've thrown together the circuit in the diagram - an MKR1010 in a relay shield. I've wired up 2 sets of sensors, an LCD screen and a motor. ...
1 vote
2 answers
129 views
Arduino keeps restarting with L9110 and DC motor
I am trying to control a DC motor using the L9110 motor driver and Arduino MEGA 2560. Here's the code. #include <Arduino.h> const int rightA = A3; const int rightB = A2; void setup() { ...
1 vote
1 answer
105 views
Connect a 3-pin 5V DC fan to a Grove - 16 Channel PWM Driver
I wish to connect a 3-pin 5V DC fan like Arctic f9 to a Grove - 16 Channel PWM Driver (PCA9685) Does the fan cable match the connector. What is the correct seeeduino connector type shown in Thanks a ...
1 vote
1 answer
147 views
Motors whining and never spinning with L298N
I have a problem involving my ESP32, a L298n module, two whining motors and a 9V battery. I've connected the battery positive 12 VDC to VCC, and the negative to GND. Two 9V motors are connected to ...
1 vote
2 answers
89 views
Can't exit while loop
I made code to make 2 servos work. the sequence of working is to make the servo 1 start rotate 2 cycles then stop and the second servo start rotate for another 2 cycles then detach both of them. I ...
3 votes
1 answer
1k views
How to change the direction of a stepper motor using the AccelStepper library?
I'm using a Nema 17 stepper motor (200 steps) and a DRV8825 motor driver. This is the configuration I am using: I am using a 9 V power supply. The dirPin is connected to pin 3 on the Arduino board, ...
-1 votes
1 answer
366 views
Why does an ESP01 WiFi module reset when it's connected to a DC motor/water pump?
When I connect an ESP01 WiFi module and water pump in a parallel circuit to an Arduino Uno's 5 V pin, the ESP01 stops working. The ESP01's built-in LED starts blinking chaotically and the serial ...