Questions tagged [motor]
Use this tag for questions about connecting, controlling, and safely operating motors using an Arduino board.
688 questions
0
votes
1
answer
53
views
L298N Motor Driver works only for a single direction
I'm using a L298N motor driver with an UNO and when I try to run a motor few seconds for forward and few seconds backward, it will only move for a single direction and remain still in the second ...
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. ...
0
votes
1
answer
60
views
Compiling issues with included library MX1508 for Billy Bass build
Thank you for considering my question.
I have been learning Arduino so I can teach coding basics to my son. I came across a fun project to interface bluetooth with an old singing Billy Bass so he can ...
1
vote
2
answers
128
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
votes
1
answer
81
views
L298N motor driver not working with Arduino UNO R3
I was trying to use the motor driver, but the motors aren't spinning for some reason.
I am sure the motors are working; I tried and tested them. I can't understand if there is a problem with the code, ...
1
vote
1
answer
103
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
0
answers
63
views
Stepper Motor Direction Not Changing with Toggle Switch - Need Help
I’m trying to control the direction of a stepper motor using a toggle switch with my Arduino. While the LED indicates that the switch is working correctly (i.e., it changes state as expected), the ...
1
vote
1
answer
146
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 ...
0
votes
1
answer
141
views
Using a bistable solenoid valve with arduino from battery
Context
I have been trying for some time to control a 4.5 V bistable solenoid valve (a bistable solenoid valve is controlled by reversing the polarities) using an ATmega328P in order to be able 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 ...
0
votes
1
answer
478
views
How to make a stepper motor's speed follow a sine wave
I'm trying to have the rotational speed of a stepper follow that of a sine wave with a period of x seconds. So it starts at a speed of 0 at 0°, picks up and peaks at 90°, slows back down to 0 at 180°, ...
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, ...
0
votes
1
answer
90
views
Is it possible to use analogWrite() using an external Power Supply Unit?
As far as I know, my Arduino Nano can perform analogWrite() ranging from 0 to 1023 for 0 to 5 V respectively, but I want to control a DC motor which requires 9 V for good performance. Is it possible ...
-1
votes
1
answer
362
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 ...
-2
votes
2
answers
772
views
L298n driver with Arduino with 2 motors won't work
I connected the 12v power supply with 9v battery. The problem is that when i run 1 motor at time from any side (out 1, 2 out 3, 4) it works perfectly, but when I try to run both of them, only one will ...