We’re rewarding the question askers & reputations are being recalculated! Read more.

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
1
vote
2answers
524 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
1answer
156 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
192 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
633 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
721 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
41 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
1answer
191 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
444 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 ...
0
votes
1answer
992 views

DC motors not running using PWM and L298N motor driver

I'm just beginning to understand Arduino. Please bear with me. I have a collision avoidance car running on Arduino Uno, WB291111 L298N motor driver, SG90 servo, Arduino Shield v5, and HC-SR04 ...
0
votes
1answer
223 views

Adafruit Motor Shield steppers not turning

The Adafruit Motor Shield is connected to 2 steppers which are wired correctly and work when I just use the onestep function. I understand that I cannot drive both at once, so I am using a while loop ...
0
votes
2answers
226 views

Powering Arduino Uno and Ardumoto Motor Driver Shield

I need to power an Ardumoto Shield to drive two 12V DC motors. I was planning to connect a 12V battery to the Max 18V input on the Ardumoto and a 9V battery to the barrel jack input of the Arduino Uno....
0
votes
1answer
584 views

2 Motor Robot Control with RC Radio

I am making a robot for a local robotics competition. One main function I need to do is move it forward, backward, right, left. Just like an RC car. I have programmed it to do that but it seems ...
-2
votes
1answer
313 views

Power Arduino Due and 6 servo motor with Battery [closed]

I would like to create a project contains 6 servo motors and Arduino Due board, but I have no idea how to operate should I use only a 9V battery only or in addition to 4 AAA battery?
2
votes
2answers
2k views

State machine sketch to drive a DC motor with limit switches [closed]

I have a DC motor that will need to use two limit switches to detect end of travel in two directions. I've read that coding a state machine to do this task is the best method, however I have no idea ...
0
votes
2answers
1k views

running a dc motor with a small L298N module and an arduino and the L298N library

I have a small L298N module which I would like to use to run a couple of dc motors. The module I have is smaller than most of the ones you see on eBay, it looks like this... I am trying to use the ...
0
votes
1answer
77 views

Cannot convert Serial String into char

I am trying to write a program to control 4 motors through the Serial port. I planned on achieving this by sending the motors' speed and direction instructions as a string, which is then converted ...
0
votes
1answer
353 views

Drive a 12V pump do I need a l293 driver [closed]

Me and my girlfriend are working on a small automatic plant watering system. Our first goal is to make an electrical 12V pump suck water out of a bottle. As we were reading tutorials online we ...
0
votes
1answer
135 views

L298 module - unusual power specs

I would like to purchase this dual H-bridge module. I plan on connecting it to an Arduino Uno. In the products datasheet the specified power supply (Vd) is 6.5-12V, and the voltage for the motor ...
0
votes
1answer
233 views

What is wrong with my state machines?

My goal is to make an automatic gate and garage door, and it has a servo as the lock mechanism on the gate, and alarm systems that notify when the gate or garage door is open too long, more than the ...
1
vote
1answer
1k views

Motor driver not able to drive motor in reverse direction [closed]

In my recent project, I'm using DC motor driver 24V 20A[RKI-1340]. Motor Driver After reading the manual of this I figure out information for this motor driver. Basically, this motor driver has 5 ...
-1
votes
2answers
1k views

Why is my servo spinning over 360 degrees?

I decided to try out my servo on my Arduino. I'm pretty new to this and I can't seem to figure out why this is happening. My servo will spin for about 5 seconds in one direction and then it will spin ...
-1
votes
1answer
76 views

Need to control 2 DC motors powered using arduino mini and l298n from about range of 100m [closed]

I need to control 2 DC motors which are arranged with arduino mini and L298N module from a distance of 100m wirelessly, what is the easiest and cheapest way of doing so?I checked RC controllers and ...
-1
votes
1answer
42 views

Faulty self-made motor controller [closed]

My friends and I tried to make our own controllable car. We managed to set up the motor with the Arduino in a way which allowed the motor to be driven back and forth. The setup we use simulate this ...
-1
votes
2answers
880 views

I can't control my DC motors speed with analogWrite()

I have Arduino Uno and I attached it to 2 DC motors with L298N bridge. I want to control the speed of the motors so they don't move at maximum speed. I use analogWrite() but it does nothing,and the ...
0
votes
2answers
3k views

How to control a DC Motor with absolute encoder using Arduino and Motor Driver?

I am a beginner in Arduino, I have only basic knowledge and a big appetite :) I'm working on my cable-cam project. I've made all the mechanical parts by myself, bought all electricity parts through ...
1
vote
1answer
426 views

cheap long lasting options for battery?

I recently made a differential drive using Arduino UNO, two BO dual shaft 9v Motor and ld293d.To power Arduino, I am using a Hi-Watt 9 volt battery, to power the ld293d 5v pin (VCC1) I am using ...
0
votes
1answer
2k views

Problem : Trigger limit switch to stop DC motor

I want to make a project about automatic gate and garage door via Android app and connected by HC-05 bluetooth module. Each of the gate and garage door have two limit switches(located at each end of ...
-2
votes
1answer
89 views

Is there a stepper dirver array for nema 17 and 14 at least with 6 drivers? [closed]

I want to build a 6 axis robot arm. Probably i will use Nema 17 and 14 stepper motors with 2A-3A. For these motor types i need stepper drivers. I searched for driver arrays but can not find a product. ...
0
votes
1answer
84 views

Can I use a ThunderBorg is a dual motor controller on an Arduino UNO R3

I am new to Arduino and Electronics and am thinking of making a 6 wheel drive all terrain platform similar to the MonsterBorg pi, but I want to use an Arduino instead of a Raspberry pi to control the ...
2
votes
1answer
527 views

How to drive a stepper motor, by having it go even steps forward and odd steps back? [closed]

I have a question about driving a stepper motor back and forward. Basically I want it to do a total of 24 steps (12 forward and 12 back) but I don't want to repeat the same steps when coming back. So ...
0
votes
4answers
423 views

Detecting step motor effort

I'm working on a project using steper motor which turn a threaded shaft (long screw) in order to open or close a water valve (high flow, high pressure). My fear is that, after a long time of use, the ...
0
votes
1answer
63 views

Use an L293D with Arduino [closed]

I am making a 2-wheeled Arduino car controlled by T.V. remote for a science fair tomorrow. I have found a tutorial for the IR part. I brought this L293D motor driver to control a 2-wheeled car. I am ...
1
vote
2answers
3k views

Controlling JX PDI-6221MG Digital Servo with Arduino

So, I naively bought two of these JX PDI-6221MG Digital Servos thought they would work with the Arduino straight out of the box, just like MG996R did, for instance, but it seems they won't. However, I ...
1
vote
0answers
49 views

Solenoid flyback, relayboard switch

I want to open a solenoid valve with an arduino, and have set up the following circuit The plan is to add solenoids to every relay on the board. I am wondering if this circuit is any useful, or if ...
0
votes
1answer
185 views

Auto Fish Feeder

Good day, I am new to Arduino, but have made some nice projects work. I have a n issue with a Auto fish feeder. I have used a servo that I modified to run 360. I am having a issue when the Nano board ...
0
votes
1answer
76 views

Writing a new function: configMotor(speed, direction)

How can I create a function that can control a DC motor's speed and direction? configMotor(int speed, direction){ pwmVal = speed; //need help with code for picking direction } //move FORWARD ...
0
votes
0answers
173 views

3-5v micro stepper connected to A4988 driver does not move and makes whirring noise

I am kind of a newbie when it comes to stepper motors so I am hoping I am not asking any stupid questions. I am trying to run a 3-5v micro stepper motor (PM15S-020-SKH4) using a Pololu A4988 stepper ...
0
votes
2answers
98 views

Detect if a 3 phase AC submersible pump is on

I need to know when a 3 phase AC submersible pump is turned on, for the sake of logging it to a online database. Thing is, I do not know how tell if it is ON, or OFF. I've given a thought to using a ...
0
votes
1answer
52 views

Help! My motors are not working!

I have made a project using Arduino, 3 LDRs and a L293D motor driver shield. My project was that when I block light from the first LDR, the motor will spin. When I block light from the second LDR, the ...
0
votes
1answer
412 views

Can I control two coreless DC motors using L293DD SMD IC? [closed]

I wish to control two 3.7V 6x12mm Coreless DC motors (both direction and speed individually). The only constraint is that the motor driver (circuit) has to be as small as possible. I've seen couple ...
2
votes
2answers
95 views

Problem with my 2 motor system

I am trying to operate two DC motors at once using a L293D chip. I have managed to control them however, one of the motors has a slight problem. Whenever I start the program (attached below), one of ...
1
vote
1answer
434 views

Cannot spin motor 28BYJ-48 with controller board ULN2003APG

I'm a beginner with Arduino. I managed to grasp the basic understanding and try to use each component/shield that came with my Arduino kit. I'm unable to use the following component: Step Motor ...
-4
votes
1answer
67 views

Need help with my urgent problem [closed]

Today I found a problem in my project, here is the video of problem https://streamable.com/wamm9 code MASTER : https://www.dropbox.com/s/l4x3zwzv6szrs50/MASTER.ino?dl=0 #include <Wire.h> ...
0
votes
1answer
290 views

How to control a DC motor via Arduino Uno as a slave and Mega 2560 as master?

Hi I want to control a DC motor using Arduino mega2560 and Arduino Uno as a slave. Mega have to process data from an ultrasonic sensor(measuring distance) and control the motor based on the input. I ...
1
vote
0answers
172 views

Motor on transistor causes arduino to reset

I have a motor hooked up to the emitter of a NTE24 transistor and ground, the collector is hooked up to 3.7V, and the base is connected through a 10ohm resistor to a PWM pin on an arduino mega, which ...
4
votes
3answers
4k views

What happens if I don't use a relay for 5V pump

I am trying to build an automatic watering system by following some examples. However, I don't have all the components for the entire system, therefore I have built it in Fritzing using only the ...
0
votes
2answers
491 views

Angular velocity of a dc motor controlled by a potentiometer

I created a setup in which a potentiometer controls a dc motor, with current flow through the dc motor controlled by an H-bridge. The principle is as follows: With the potentiometer dial set to the ...
1
vote
1answer
78 views

Can not receive data from UART with stepper motor

I am using an Arduino Mega2560 While my motor is moving I can not receive anything from the UARTs. When the motor ends movement, I receive data from UART. How can I make my motor move without ...
0
votes
4answers
965 views

Issue with If statement and boolean logic

I'm trying to control motor based on rain sensor and my own build anemometer. It should only controlling motor clockwise/CW for open the roof if there are no rain (indicated by value above 900) AND ...
0
votes
1answer
985 views

How to record steps a stepper motor takes and how to rotate it backward and forward with analog input?

I am trying to control a stepper motor's movements with a pressure sensor input (0 to 5 V digital). For example, if the input is 4 V then the stepper motor should move forward 4 steps. If the input is ...