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
0answers
10 views

Stepper motor stops working when Arduino is plugged to USB

I am building a CNC laser engraver and for movement I'm using two Nema 17 motors connected to L298N drivers, each powered by an ATX power supply. It al works fine and is even able to engrave simple ...
0
votes
0answers
7 views

MPU6050 with Arduino I2C Unreliable with Motor Noise

I have an autonomous wall-tracking robot that uses relative angle changes from a I2C-connected MPU6050 module along with ultrasonic 'ping' sensors for motor speed control to acquire and then track a ...
0
votes
0answers
18 views

Trying to get a servo motor to move to certain setpoints when a control potentiometer shows certain values

Here's my Code so far: void setup() { Serial.begin(9600); } void loop() { float a; float angle; int setpoint; a = analogRead(A1); angle = map(a, 0, 1023, 0, 180); if ( (angle>0) &...
0
votes
1answer
34 views

Trying to control DC motor speed with PID

i'm trying to control a DC motor with PID. I have already made a code where i control the motor with an ultrasonic sensor (for distance) but now i need to run the motor at a given RPM (the Output). I ...
0
votes
2answers
59 views

How to toggle LED and motor on button press?

we want to have a LED turn on with the press of a button, and become brigther and brighter as times go by (whithin a defined time frame), and when it reaches maximum brightness to turn off for a ...
0
votes
1answer
15 views

How to Control 2-wire Rotary-Gear Linear Actuator

Any ideas how to control a 2-wire DC 5V 10mm Stroke Mini Linear Actuator based Rotary Gear Motor? Most linear actuators (aside from solenoids) are controlled via 3-4 wires. Do I need a separate motor ...
0
votes
2answers
32 views

Position Feedback for Stepper Motor

I want to rotate a gearwheel with a stepper motor. While Arduino is on everything is well. My gearwheel transfer its power to a gear worm. The worm will go 10th cm and back repeatedly. When I cut the ...
0
votes
0answers
21 views

To stop the geared DC motor based on the number of rotation

I am doing a small project in which I need to stop rotating the dc geared motor based on its number of rotation (in my case I need only 2 rotation), after two rotation it should stop rotating. I am ...
0
votes
0answers
30 views

Will this code for braking of dc motor using sensor work?

#define trigPin 13 #define echoPin 14 #define e1 10 // Enable Pin for motor 1 #define t1 8 // Control pin 1 for motor 1 #define t2 9 // Control pin 2 for motor 1 #define led 3 #define led2 5 #...
0
votes
0answers
40 views

Difference between L298 and L298N motor driver

I was planning to buy a motor driver for my project purpose, but I don't understand which motor driver will suit my purpose. As there are two motor drivers available online. Can someone explain me the ...
0
votes
1answer
26 views

arduino & drivers to control 5 brushed CIM motors independently?

i am a complete newbie in electronics but i'm a bit familiar with C. i am building a machine that requires 5 little engines (12V 2.5in brushed CIM motors) & motor drivers (i need to adjust each ...
0
votes
0answers
41 views

Guidance on controlling gimbal brushless motors?

i want to make a gimbal using an arduino and im having trouble finding how to control brushless gimbal motors with arduino as they all go into a BGC ive found a BGMC https://rovertec.com/products/...
-1
votes
1answer
32 views

Mosfet controlled motor runs while LOW

I am using a mosfet (IRFZ44N) to control a dc motor, and a separate one to control a led strip. Both are using the same circuit running to different pwm pins on the arduino. The light strip is ...
0
votes
1answer
35 views

ESP12E motorshield analogWrite issue when powering DC motor

I am relatively new to adruino and this whole space. I am currently trying to power a DC motor using an ESP12E motor shield and an ESP8266 Module Motor Shield - https://www.amazon.com/gp/product/...
0
votes
1answer
35 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
2answers
59 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
66 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
77 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 ...
0
votes
3answers
23 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
45 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
31 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
43 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 ...
0
votes
2answers
55 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
26 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
98 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
126 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
34 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
60 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
63 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
30 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
62 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
79 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
127 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
132 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
210 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
43 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
81 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
97 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
49 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
60 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
82 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
19 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
127 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
143 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
52 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
89 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 ...