Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

1
vote
2answers
91 views

How to prevent interference between dc motor and arduino?

It may be already asked question in somewhere but I am struggling! I have a four wheel robot which I want to drive it to perform 90-degree left/right turn, I am using the MPU6050 3dof to get angles, ...
0
votes
1answer
56 views

How do I create a state machine for my purpose?

I am new to Arduino. I have a motor which drives a sliding door back and forth. The motor is connected to an H bridge which has two control pins (direction, speed). I have a switch which is intended ...
0
votes
0answers
42 views

Creating a rail system with several cars [closed]

My goal is to control with an Arduino Due a wall mounted, mechanical leaderboard, with 16 moving pieces. Each will be assigned a numerical ranking, and will be stacked vertically in descending order. ...
-1
votes
1answer
49 views

Relay Module for water pump [closed]

I want to switch on/off my water pump by using arduino nano, I have 2 channel relay module. Is this module safe for controlling pump? Specifications pump: power = 746 watt (1HP) single phase, voltage =...
0
votes
1answer
48 views

Making an H-bridge with transistors [closed]

I am trying to make an H-bridge with two NPN and two PNP transistors to drive a motor which works fine on the 5 V Arduino. I have a schematic in the picture. When I use a simple code to have pin 9 ...
0
votes
0answers
22 views

Combining Two Motor Drivers(l293d) Together

Hi, I'm new to Arduino and robotics.For my science exhibition I want to make a RC, 4 wheeler car. I have the Arduino, the motors, the wheels etc. To control the 4 motors of the car, I brought 2 of ...
0
votes
4answers
43 views

How to repeat the code

I want to make my biped robot keep walking, but it only move for twice, this biped robot project is important for my Capstone project. The code below is the code that I used #include <Servo.h> ...
0
votes
0answers
17 views

Use Arduino to send signals to controller for motor acceleration

I'm thinking about possibility to assemble mini pc, Arduino and this controller with this motor. I'm trying to understand if it possible that mini pc collect data from external source of user and ...
0
votes
1answer
25 views

Rc car which returns to middle when left or right button is not pressed

Hi i am currently working on a school project , my only problem is that i want my RC car to return to middle direction (which i have set to 66 in the servo motor) when the left or right button is not ...
1
vote
1answer
62 views

Problem in reading data from encoder with arduino

Hello guys I am trying to count the number of the steps of a stepper motor with an encoder (Avago heds). I found an Arduino sketch to count that steps and display them on the console and I found ...
1
vote
1answer
30 views

Necessary torque of motor to move a door. [closed]

I am building an automatic door opener and for its mechanism I need a motor with a high torque and low speed. My question here is how to measure the torque needed to move the door as I cannot really ...
1
vote
0answers
13 views

CIRC-03 Spin Motor Spin

I am experimenting with CIRC-03 but the DC motor won't start spinning with motorAcceleration(); unless I give it a push. Also, it makes a little noise when it stands still. It does spin, however, ...
1
vote
1answer
45 views

Controlling motors and servo with L298N

I'm using an L298N to control the two motors of a robot car, and I also have a servo controlling the HC-SR04. The motors and sensor work fine together, and the servo and sensor work fine together. But ...
0
votes
1answer
75 views

L298N, HC-05 Simple Bluetooth remote car not running in Arduino

Arduino board type used in this session is Arduino Uno R3 DIP/SMD CH340 Below is the description of wiring and code in Arduino to assemble a Bluetooth RC car using android smartphone: Tested the ...
1
vote
2answers
31 views

DC motor with L289N driver cannot set RPM lower than 130

My setup is using an Uno r3, and the motor driver is an L289N. I am going to set it to run at a lower RPM, but when adjusting enA or enB to set to below 130, it won't spin. // connect motor ...
0
votes
1answer
96 views

Arduino Uno Motor control using 2 Relays, 2 Limit switches and Bluetooth. Forward Reverse Stop

Modified existing project from this link: Problem : Trigger limit switch to stop DC motor I modified this code to control two relays which are wired to motor poles for Forward or Reverse movements ...
-1
votes
1answer
31 views

HC-05 modules with joystick driven platform [closed]

I am working to create a joystick controlled platform using bluetooth to communicate, but am having several problems. The platform https://www.dfrobot.com/wiki/index.php/Cherokey_4WD_Mobile_Platform_(...
4
votes
2answers
283 views

How do I (easily) power a 5 V 3-pin fan?

I have a 5 V 3-pin fan. I want to be able to: power it from an Arduino Uno or a Seeeduino Lotus board, and, ideally; be able to change its speed. Most resources I can find on the web explain ...
0
votes
0answers
65 views

Programming NEMA 17 2 Phase, 4 Wire Stepper Motor

I have successfully programmed the Stepper Motor 28BYJ-48 with ULN2003 driver using the code below. But then I replaced the 28BJY-48 with a NEMA 17 Motor then it won't work anymore. I researched that ...
0
votes
2answers
35 views

How to control a DRV8266 motor controller with an ESP8266?

https://github.com/sparkfun/SparkFun_MiniMoto_Arduino_Library/tree/V_1.1.0 Will this library work on an esp8266? If not is there any way I can get this driver to work on the ESP?
0
votes
0answers
42 views

Motor unexpectedly moving at reset

I'm playing with the standard L298N motor board and Arduino MKR 1000. However something strange happens: when I upload a new firmware and when I turn on the Arduino power supply (every time Arduino ...
0
votes
1answer
18 views

Reduce speed on DC motor

The Arduino starter kit came with a DC motor. I want to have it rotate at a slow speed so it can be on a reel and automatically dispense and wind wire, however, I don't know how I can slow it down. ...
0
votes
0answers
256 views

Controlling motor direction with ESP8266 and Motor Shield

I recently acquired a NodeMCU ESP8266 Board and a NodeMCU Motor Shield, which I have connected very simply to two motors on an RC car. The idea mostly came from this tutorial. From what I understand ...
-1
votes
1answer
41 views

My “avoid car” can't move straight [closed]

I use 2 gearbox motors with 2 wheels .. but if I try to run it, he can not walk straight. he always moves slightly to the right or to the left. How i fix it ?
0
votes
1answer
62 views

Arduino remote-controlled car stops after a few seconds

I am making a remotely controlled car for a project at Uni. The car is made from an Arduino Uno, a 2 motor driver and a Bluetooth transceiver. I have written some code for it, but it randomly stops ...
0
votes
0answers
29 views

problem with following a blackline using a small toy like a car

well I'm new here and i hope to solve this problem with this. Let me explain what i want to do . I'm using a nodemcu ESP 8266 with 4 wheels with an applicacion interface to give orders to move to ...
0
votes
0answers
23 views

DC Motor Not Braking

I have a brushed motor hooked up to a NodeMCU that moves a plate left (moveLeft) and right (moveRight). When a button (buttonOpen) is pressed, it turns to the left until the plate hits a limit switch (...
0
votes
0answers
33 views

Can I output the movement(steps has done or degrees) of a stepper-motor that i manualy turned his axis?

I'm thinking for a project that involves a stepper motor; What I want to do with it is if I can somehow output the steps that has done when I manually rotate the axis ? I want to record that value ...
1
vote
1answer
42 views

My code isn't adjusting the speed of one of the motors and i'm not sure why

I'm trying to change the speed of motors depending on the amount of light hitting the LDRs. Here i'm trying to make it so that if the LDR has a high value than another, then the motor associated with ...
1
vote
1answer
44 views

How to prevent shoot-through when swiching a motor with a bridge?

Ideally, when wiring a motor with an H-Bridge one would ensure that all "open" operations are performed before and "close" operations in order to prevent a short circuit. How does one ensure that ...
1
vote
2answers
264 views

Stopping / starting DC motor with Limit Switches and on/off button

I have an Arduino UNO with 3 switches attached (2 limit switches, 1 activation switch). I'm trying to make the activation switch turn the motor forwards once hit, then wait for any of the limit ...
0
votes
3answers
79 views

Want criticism on my code

The code is controlling 3 blinds. There are 2 buttons for each blind for going each way and 2 buttons controlling all of them at the same time. The motorSerial is a way to control all of the blinds ...
0
votes
1answer
24 views

3.3v Arduino I2C communication with motor controller powered at ~6v

I am trying to just use the voltage from 4 Alkaline AA batteries in series (6v nominal) to power a motor with the TI drv8830 IC. My question is, will this circuit (specifically just pulling the sda ...
1
vote
1answer
57 views

How to stop a loop when using attachInterrupt to catch the change of a button

This what the program does: There is 1 button to start/stop the engine, when the motor is running the green LED will go on, when stopped the red LED is on. The second button is used to change ...
0
votes
0answers
15 views

Controlling DC motor with Pololu shield Arduino

I'm trying to power 2 DC motors with my Pololu DRV8835. I'm using the code found in this library. It works as expected BUT ONLY if the whole thing is powered via USB. When I try to power it through ...
1
vote
1answer
265 views

Problem for control speed of a DC motor with a L298N

(Not native english speaker here, feel free to edit my sentences) I try to control the speed of a DC motor with a L298N shield but it doesn't work very well. Here is my scheme : The power comes ...
1
vote
1answer
11 views

Motor shield not providing enough current to 2 12V DC fans

I have 2 fans and they require up to 3A current, but my motor shield (Arduino Motor Shield Rev3) on my Arduino MEGA can only provide 2A per channel (4A max). Is it ok to run the fans at a lower speed ...
1
vote
1answer
160 views

Two batteries sharing ground?

I need to power my arduino and 2 DC motors requiring 6V each, I want to power the DC motors with a 6V battery through the vM pin on an h-bridge and use a 9V battery to power the Arduino itself. On my ...
0
votes
1answer
52 views

Timer for Control Motor using Limit Switch

Im not good in arduino, but I have project that control motor using limit switch. The rule is: When switch OFF, motor ON When switch ON, motor OFF for 1 hour (i dont want use delay because cannot ...
0
votes
1answer
496 views

Run two stepper at same time

I am trying to run two stepper motor at same time with different RPM. I decided to use two rotary encoder for change the RPM separately. But, I am in problem with driving stepper at same time due to ...
1
vote
2answers
90 views

Motor does not move with 4 batteries [closed]

I mada a 4wd car with ultrasonic sensors and servo. I use 4 AA 1.5 volt batteries for power. But the motor does not move. What is the problem?
0
votes
0answers
43 views

Arduino Proportional Motor Control Not Working

I am trying to implement a PID control system that will get my RC car to travel at a steady speed regardless of slope of terrain. To test, I am just using the proportional control. I want to get a ...
0
votes
1answer
23 views

Multiple power supply for arduino controlled dc motor

I’m working on a project where I want to control a motorized fader with an arduino. I have a dual H-Bridge board to control the motor, but the thing is that it is a 10V motor. I’m thinking of using ...
0
votes
2answers
43 views

Why do we need a transistor with a dc motor while we don't need one with a servo motor?

I was wondering why do we need to attach a transistor as we don't need one while we connect the Arduino with the servo motors. I am using mini servos.
0
votes
0answers
70 views

how to program Stepper Motor Unipolar Driver IC?

How to use a SLA7033M to control 5 wired unipolar 12v stepper motor? [ [(I am not sure that this diagram is correct because the model number is slightly different but I couldn't find one for my model ...
0
votes
0answers
190 views

Compiling error: undefinded reference to pinMode and digitalWrite

I'm using some downloaded code to produce an obstacle-avoiding car: /* Author: Muhammed Azhar visit - robotechmaker.com */ #include <AFMotor.h> const int trigPin = 2; // define the pins of ...
2
votes
3answers
128 views

Motor shield leaves no pins accessible

I just bought a motor shield for my UNO, in the pic below: Plugging it into the uno leaves no pins accessible on the board. I’d like to use it to build a robot car, but there’s nowhere to plug in the ...
0
votes
1answer
35 views

State machine doesn't function

My goal is to make a logic controller for a cassette tape mechanism, right now I'm simply trying to get the mechanism to engage and disengage the pinchroller arm which is motorized, spin the reels/...
0
votes
0answers
89 views

One port of motor shield doesn't operating stepper motor

One port of my motor shield (i.e M1 & M2) is not driving the stepper motor as it should.stepper motor jitters at its position. While the other port (M3 & M4) works fine but it makes stepper ...
0
votes
1answer
155 views

Arduino with Ultrasonic sensor integrated but vibration motor not working according to the code

Here's my code after editing the measurement had error. Now the ultrasonic measurement is working but the vibration motor is not vibrating. #define trigPin1 8 #define echoPin1 7 #define motorPin1 13 ...