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
5 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
36 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 ...
-1
votes
0answers
15 views

What type of battery/power supply should I use for 3x SG90S servo motors, 3x MG996R servo motors, and 4x 6V DC motors? Thank you [on hold]

I would like to 3x SG90S servo motors, 3x MG996R servo motors, and 4x 6V DC motors for 1 hour and 30 minutes, but I don't know what type of power supply / battery to use.
-1
votes
0answers
20 views

What type of motor should I use to spin a cylinder along its long axis [closed]

I'm working on a project, and I'd like to be able to spin a solid cylinder. The cylinder is about 9.2075 cm the long way, and 0.9525 cm the short way. I don't need a specific speed that it spins at, ...
1
vote
3answers
50 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
45 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 ...
-1
votes
0answers
14 views

Providing external power source for one channel relay module which will be connected with DC motor for automatic water pumping [closed]

I am inexperienced with any circuit connection. This will be my first time of holding a jumper wire. I want to make an Arduino project for automatic water pumping with 4 sensors, LCD, one servo motor, ...
0
votes
2answers
54 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
42 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
33 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
65 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
32 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
20 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
25 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
35 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
59 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
14 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
16 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
29 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
59 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
81 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/ ...
0
votes
1answer
26 views

ESP8266 NODEMCU V3, HOW TO USE AND CONTROL V3 OUTPUT POWER [closed]

this is my very first post in here so I apologise if I am not giving you all the information that I should. I am creating this topic to ask you help regarding how to control and use the v3 output of ...
1
vote
1answer
140 views

declared variable inside void setup is forgotten in void loop

if i declare a var in void setup() and try to do something with it in void loop(), it just says that the variable is undeclared. here is the code: #include "Servo.h" void setup() { Servo servo1; ...
0
votes
0answers
67 views

Spinning ESC Brushless Motor Slower

I am controlling a g-series 1000kv brushless motor with my arduino. Currently I have my setup as follows: Now I used the code given to me in a tutorial which is also as seen below: #include <...
0
votes
0answers
50 views

PID controlled DC Motor Speed

I'm writing a PID program for a simple DC Motor. This motor has an encoder at the bottom which allows me to read motor speed. The goal of the project is to provide a constant speed if there is light ...
0
votes
0answers
15 views

Arduino Due and Mega sensor shield control of a 12v dc motor not working

const int pwm = 3 ; const int in_1 = 18 ; const int in_2 = 19 ; //For providing logic to L298 IC to choose the direction of the DC motor void setup() { Serial.begin(9600); pinMode(pwm,OUTPUT) ; ...
0
votes
2answers
21 views

Encoder coupled with motor shaft.Encoder is giving larger redings than expected

I am a rookie and i dont have much experience on arduino. please help me. I intend to build a robot that will drive on a straight path even on nonuniform surfaces like the ones we see in agricultural ...
-1
votes
1answer
38 views

Servo motor not working properly with arduino

I have some problem with my fyp, which is auto serving of food using train. I have 4 servo motors, first servo motor's function is to connect the track to table no.1, and second motor for table no.2 ...
0
votes
0answers
27 views

Control motor DC with buttons

i'm new user with Arduino, i want to know if there is a tutorial to control the rotation of a motor like : with 4 buttons, the first to rotate +pi/2 the second to rotate -pi/2 the third to rotate +-pi ...
0
votes
0answers
14 views

PPM of Wasabi Eco

I'm currently trying to control a brushless DC motor (EMAX 1806-2280Kv) with a ESC called Wasabi Eco 12A (Wasabi Eco specifications#1 , Wasabi Eco specifications#2) I'm trying to control the motor ...
0
votes
1answer
45 views

Slow speed with stepping motor

I am currently working on a project where i need a stepping motor and a servo running at the same time, the servo turns fine and the speed is ok, but the stepping motors speed is very slow and as a ...
-1
votes
1answer
36 views

Brushed ESC won't move slowly [closed]

I'm trying to control the brushed motor in a Traxxas Slash RC car with the built-in XL5 ESC using the Servo library on Arduino. I previously had success controlling this car with a Pololu Micro ...
-1
votes
1answer
55 views

Basic Arduino Airplane Control

I have a task where I need to control the airplanes thrust and altitude direction(Up-Down). For the thrust I thought of using a DC Motor and a Servo for the other. Control of servo will be from the ...
-1
votes
1answer
64 views

How to stop motor after a desired time?

I am trying to stop a dc motor after a desired amount of time !! And the motor starts upon settling on a condition !! From that very moment i want my motor to just run for 5 seconds and stop!! Below ...
0
votes
1answer
154 views

How to control DC motor speed with L298N and Node MCU?

I want to control an RC car with a joystick in mobile. Currently, I can only make the motor move forward and backward but not able to control the speed. Node mcu is used as a processor to receive the ...
0
votes
1answer
34 views

Program to run two motors with Motor driver

I'm trying to make a program that would run two motors clockwise and then anticlockwise. But my program is causing my motors to only run clockwise everytime . It doesn't run anticlockwise at all. Can ...
0
votes
1answer
41 views

Varible Ramp up speed for motors controlled by joytstick [closed]

I trying to create a piece of code which will ramp up the motors speed to a changing value controlled by a joystick. For example joystick requests 120 speed to motors so instead of going 0 to 120 it ...
0
votes
1answer
145 views

Powering an Arduino directly from a motor driver (DRV8825) or external power source?

Hello people from StackExchange, I'm new to Arduino and driving stepper motors in general; please excuse me for my limited knowledge on the subject. I've been doing research for a few hours already, ...
2
votes
5answers
3k views

Why is Arduino resetting while driving motors?

I am driving motors for my line-follower project . The circuit schematic is given below The power source is a 11.1V 2200mAh 25C Lipo . Practically the cells give 11.5-12V. I used a switching buck ...
0
votes
0answers
25 views

Can 2 H-Brides be controlled by one Arduino?

The three motors are from windshield wipers, with one of the brushes disconnected in each. The controllers are BTS7960 43A modules One Bridge for two drive motors (speed and direction), and the ...
-1
votes
1answer
59 views
-1
votes
1answer
47 views

L293D with arduino's 5V

I am trying to use L293D with relay to power a 12V DC motor. Can I use arduino's 5V to provide L293D inputs 4 and 8 such as in the drawing? Or do I need to use a separate source, e.g. a power module?
0
votes
1answer
28 views

Arduino acts odd when disconnected from computer

I'm building an self-navigating robot with an arduino, an ultrasonic sensor, and two DC motors. I'm currently within the process of coding the robot but I've discovered I have an unusual problem; ...
0
votes
3answers
115 views

analogWrite is not working - while trying to control DC motor speed

I'm trying to control the speed of DC Motor using Arduino R3 NPN Transistor (2N2222A331) 10k potentiometer 2M ohm resistor Diode I'm not using L298N and I'm also not using L293D. DC motor is ...
0
votes
1answer
45 views

arduino is skipping the if statement [duplicate]

Hi guys I am new to this language and i just tested the code to control a servo motor Can anybody help me please ? here is the code void setup() { servo_test.attach(3); pinMode(9, INPUT); ...
1
vote
0answers
29 views

How can I get the count of pulses of two encoders on the serial monitor?

I have two encoders; I connected them to pin 2 and 3 and I want to count the pulses of them to make two DC motors to work until it reaches a specified number of pulses, than stop working. I have ...
1
vote
0answers
21 views

Having trouble with motor shield running off external power source

I apologize if I don't immediately give important info, I'm very new to arduino's/circuity of any kind. I'll try to include as much info as possible. Some preface: I'm currently working on a project ...
1
vote
0answers
42 views

Help with code for changing motor speed depending on MPU6050 angles read

I have been trying to create code where my MPU6050 is constantly reading the angle it is at and based on that angle, increase or decrease the motor speed. For example the motor will be off when the ...
-1
votes
2answers
47 views

Choosing a motor for my project [closed]

Sorry For my bad English. I will start to make a mini conveyor (100 cm x 30 cm) with an Arduino Uno. What is the best motor should I choose for my project ? - Stepper Motor ? - DC Motor ? Etc. ...
0
votes
2answers
66 views

Servo Motors PWM pins, Arduino Uno

I wanted to understand how people are connecting a servo motor to pins without PWM, so I went searching and I read that the Servo library uses the timer1 of pin 9 and pin 10 to be able to use other ...