The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [motor]

Use this tag for questions about connecting, controlling, and safely operating motors using an Arduino board.

Filter by
Sorted by
Tagged with
0
votes
1answer
30 views

Need a component to connect a 9v water pump

I have a 9v water pump that i want to turn on\off from the arduino, What module should i use to turn it on and off? I am using now a mosfet for my 5v pump, can a mosfet be used for 9v as well? Or is ...
-1
votes
1answer
34 views

Could i use a stepper motor?

i want to make a 3-axis gimbal with arduino but brush-less motors seem incredibly hard so would stepper motors work for this purpose? if their is a way if not, is how can i connect 3 gimbal motors to ...
0
votes
0answers
23 views

Please help! My Bluetooth Controlled Car Isn't working

I followed this tutorial: enter link description here I built it according to the schematic except I didn't connect an LED (I assume this isn't the problem). This is the schematic: I'm a beginner so ...
0
votes
1answer
36 views

Stepper Motor Direction via Flow Amps

I have a problem with stepper motor direction. I want to change the direction of the stepper motor rotation, when the stepper motor shaft is stuck. For example, when I hold the shaft of the ...
0
votes
1answer
29 views

Control DC Motor with Arduino Uno WiFi Rev2 Html Slider Code

I would like to control my dc motor using the Arduino Uno WiFi Rev2 using an html range slider. Now I can control the motors speed and direction using push buttons just fine. My code is posted below ...
-1
votes
2answers
22 views

DC motor command [on hold]

I am wondering if this circuit exist or how it could be built using transistors.
0
votes
3answers
21 views

Help me get my robotic car to work?

So I recently followed a tutorial on youtube and I've assembled the car and connected all the wires. What I've done: Car Now in the video, when the guy connects all the wires, the wheels constantly ...
-1
votes
1answer
42 views

Have I fried my arduino uno?

I made a smart dustbin using arduino, servo motor, & ultrasonic sensor. It worked pretty well for a few number of days. But once I don't know how but the Arduino 'ON' light started to become dim ...
0
votes
0answers
21 views

How to control segway motor with arduino uno?

I salvaged segway motor with 8 wires. I did completed basic connection of 5 hall sensors and power from 36V lipo battery in the image below. When I connect self-learning wires then motor starts ...
0
votes
2answers
40 views

Why can't I control speed of the motor? (M1 and E1)

When myservo_1,myservo_2,myservo_3,myservo_4 is commented, I can't control the speed of my M1 motor. But only when I uncomment myservo_1 and so on, I can control the motor speed again. Can someone ...
-3
votes
0answers
17 views

connecting two stepper motors to one arduino board and its code modification [duplicate]

I have tested two stepper motors separately with arduino UNO R3 and they worked correctely. So, I want to connect them all to one arduino board and make them work independently. How to wire them and ...
0
votes
2answers
46 views

L298N motor driver issue

I am facing the same issue with my motor driver. Initially I ran the code and connected the L298N with Arduino and it worked fine. At that time motors were running absolutely fine. But when I ran it ...
0
votes
0answers
21 views

How to use void swap with multi-dimensional array to control motor with openCR board

i am a beginner. About my problem, there is an "invalid conversion' error in the swap(goal_positionall) #include <DynamixelWorkbench.h> #define Device_Name "" #define BAUDRATE 57600 #define ...
0
votes
1answer
81 views

Feeding microcontroller and linear actuators (motors) with the same power supply

I have already made a diagram using a motor controller. I want to use only one power supply to feed arduino and motors. I want to use MDD10 dual motor driver. The details of the actuators each one is:...
0
votes
0answers
30 views

Motor is vibrating in one direction

When I test this program, the motor starts vibrating when proxy1 is low and proxy2 is high. The displayed text also goes wrong. #include <LiquidCrystal.h> LiquidCrystal lcd(8,9,4,5,6,7); int ...
0
votes
1answer
84 views

2 buttons pressed at the same time elevator logic

I have currently created a working elevator code where the elevator goes up when pressed a button, and stops at a floor when the sensor senses that it has reached the floor. This is how it works: #...
0
votes
1answer
28 views

How to Work Two Linear Actuator Synchronously by Using Arduino and VNH5019 Motor Driver?

I am newbie and I want to build a project that contains two linear actuator that move synchronously. Two of them will lift up and down at same time. I use arduino mega and VNH5019 motor driver. I have ...
0
votes
1answer
55 views

can I check if why my motor isn't working?

I am currently using the arduino Uno connected with L298N(green pcb) connected to a dc motor rated 12V. I provided dedicated 12v power supply to the dc motor and the arduino board's power is supplied ...
0
votes
3answers
56 views

Dc motor backvoltage, how to place the diode correctly?

My previous questions have been anwsered, so thank you all for that! I make a new question post because I have some other problems with my setup. I use a esp12s 8266 chip. It sends a PWM signal to a ...
0
votes
0answers
18 views

How can I make Arduino communication as fast as possible with minimal (if any) error?

I'm building an inverted pendulum. I have two rotary encoders and a 12V DC motor. Right now when I try to run the DC motor and change one of the rotary encoders, the rotary encoder will not print to ...
0
votes
0answers
28 views

BLDC motor control

I want to control a BLDC motor with Arduino board and a circuit with some transistors and other elements, the input of this board will be flight control. my question is that is it possible to connect ...
1
vote
1answer
52 views

Can I use this board to control multiple vibration motors?

I am looking at this: https://learn.adafruit.com/16-channel-pwm-servo-driver Although it’s meant for servos, I was wondering if I could use them to control vibration motors. Motors like these: ...
-2
votes
1answer
48 views

How do you determine Lead Screw position using Absolute Encoder?

I need to control the position of a lead Screw Stepper motor using EMS22A Absolute Encoder? I've seen James Bruton do this in his video. can anyone help me? James Bruton Video: https://www.youtube....
1
vote
1answer
84 views

Motor with sinusoidal motion

I need to run a motor to have a harmonic motion with specified amplitude and frequency ( harmonic motion mean that the angular position of the motor is a sine function of the time). I’m Looking to do ...
0
votes
1answer
67 views

Control speed of a dc motor with a 9v battery [closed]

Problem: I want to have a 9v battery that powers a dc motor. I want to control it with a bluetooth remote that has 3 buttons. 1st button is turn the motor with 1.5v, 2nd button is motor off and the ...
-1
votes
1answer
190 views

My 12V DC Vending Machine motor rotates 1 extra 360 degree rotation sometimes. What could be the reasons?

have main board which has motor control circuit and has row and column to control the row and column of the vending machine. I have made changes in motor in two ways: A. I have attached an image for ...
0
votes
0answers
42 views

Effective Controlling of Continous Servo Motor

I have difficulty in controlling a MG995 continuous motor. For I know I can control the speed of the motor as writing servo1.write(p) , where the value of p changes the speed of the motor. When the ...
0
votes
2answers
74 views

Is My Motor Shield Broken?

So I am trying to work on a mini battle bot project. However, it has been a while since I have worked with my Arduino electronics. So I am going through and learning how to do each thing before ...
0
votes
1answer
52 views

L298N beeps and malfunctions when receiving certain analogWrite values

I created a simple circuit with an UNO, L298N and a single motor. Wrote the following code to test controlling the speed of the motor. Tested motor with digitalWrite() function and it works fine. ...
0
votes
1answer
40 views

Why is Arduino I2C so sensitive to RFI/EMI?

I have a 2-motor robot project that uses a MP6050 for relative heading (yaw) measurements, and I'm having problems with the I2C bus when the motors are running. I have done most of the things ...
0
votes
1answer
49 views

Controlling a servo motor with two arduinos?

I have two Arduinos, two buttons and one servo motor. I want to control a servo motor with two Arduino's when I pressed the buttons. I linked Arduino PWM pins (first Arduino PWM pin is 9, and second ...
0
votes
0answers
51 views

How can I pause a stepper motor with a ultrasonic sensor?

I'm trying to use a stepper motor to stay stationary and rotate about 90 degrees, when the ultrasonic sensor detects something in front of it, and stay at that position until the ultrasonic sensor ...
0
votes
0answers
14 views

Why is my quadrature encoder writing as irregular intervals in serial monitor after working fine?

I'll try to keep this brief and add code/output at the bottom. I am using an Arduino Uno with a Pololu motor shield and two Pololu motors. I am driving speed control using the encoders at the ends of ...
-1
votes
1answer
66 views

Using an NPN transistor as a switch to turn on/off a DC Motor

I am trying to control a 3V DC motor (FA-130) with my Arduino Uno, and am trying to do that using an NPN transistor (2N3904) as a switch, as shown in this diagram. I used the Blink example and ...
2
votes
3answers
90 views

DC motors only run in one direction

I'm quite new to Arduino and am making my first proper project, an obstacle avoiding robot. I'm using an Arduino Uno and a motor shield compatible with the Adafruit motor driver library. I'm trying ...
0
votes
2answers
49 views

How to run 3 mode of operation for each operation has individual push button to select the mode in Arduino?

I need to run 3 modes of operation if 3 push buttons are pushed in arduino. I have made the initiate code logic for one push button and one operation but I got an error message of "redefinition of int ...
0
votes
2answers
71 views

Handling arduino output current

I need to power an actuator that requires 12 volts and consumes between 5 and 10 amperes depending on the weight it is charging. Therefore I bought a power supply of 12 volts and 10 amperes. My ...
0
votes
0answers
68 views

Run DC motor with 2 limit switch and reverse delay time

I setup the feeding system with arduino uno, L298, dc motor and two limit switches. When i press the push button rotate CW and opened gate. All right up to here. But i want to make i pushed button ...
1
vote
1answer
52 views

Arduino UNO and TB67H303HG Ic driver: Wiring question

I would like to control the TB67H303HG (a full bridge driver IC for DC motor adopting MOS in output transistor) with my Arduino UNO. This is its datasheet. I was thinking to connect: PIN 3 INPUT to ...
0
votes
1answer
78 views

Are my stepper motors being burnt out? What is the issue here?

I am building a mini-cnc laser engraver as shown in this intructable and this youtube video. I have built the circuit (minus the jst connector and two male pins at the top left of the board) and have ...
0
votes
2answers
137 views

How to rotate a servo motor on a specific angle?

I am trying to rotate a top on a specific angle after every 1 second. For example: 1 degree/second. I have two question: Can I achieve this with servo motors? If not, what motor should I use? I ...
0
votes
0answers
51 views

How to control motor in trapezoidal manner using arduino

I am Working on a project in that i have to control motor in a Trapezoidal motion profile. on Y-axis is the velocity and X- axis as a time. Velocity increases linearly for a certain time, then ...
0
votes
1answer
41 views

How can i stop DC motor when button on remote is released? [closed]

I am trying to control a motor using a remote with Arduino Mega. The motor turns on when I press the button on the remote but when I release the button, it continues to move. Does anyone know how to ...
0
votes
1answer
49 views

Can you drive a stepper motor without the L293D

Can you drive a stepper motor without L293D. Don't awnser without giving explanations or saying it will be cheaper to buy the L293D. Thanks
1
vote
1answer
61 views

Servo motor (HSR-1425R) not running continuously

I'm trying to programme a servo motor to reach certain positions. I have a 360 degrees servo motor, so I can not use the Servo library and I can only control the speed. Therefore I want to regulate ...
0
votes
0answers
17 views

Use joypad to control a robotic arm with 8 servos

I'm using Arduino UNO and the SSC-32U board to control a robotic arm made up by 8 digital servos. At the moment, I'm correctly able to move each servo by using the following code: move1(servo_pin, ...
1
vote
1answer
25 views

Help Troubleshooting L298n connected to dc motor

I am relatively new to Arduino, and I am trying to power a DC motor with the L298N dual H-Bridge. I have done as follows: I am powering everything with the Arduino that is connected to the PC. (I know ...
0
votes
0answers
34 views

Servo not moving

I have connected my servomotor (MG996R) to my L293D motor shield, which is connected to an Arduino Uno R3 Board. I use 4x AA 1.2V NiMH batteries to power the shield, and a regular 9V battery to power ...
0
votes
1answer
233 views

How to connect L298N motor driver to 5v input supply? [closed]

I'm trying to connect 5v supply to a L298N motor driver at it's 12V-35V input pin but it's not working. If I'm connecting to 7.2V supply it's working. Is there any way to connect 5v supply? I want a ...
0
votes
2answers
156 views

Speed Control of Brushless DC Motor

I cannot understand the code of controlling the speed of brushless dc motor using ESP8266 WiFi Module. I found it in- https://ubidots.com/blog/speed-control-for-brushless-motors-with-an-esp8266-2/ ...