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
votes
1answer
316 views

Where do I put the cables from my soldered l293d onto the arduino uno/arduino pro mini? (Drone)

I am trying to create a drone but I am struggeling a bit with the components and the schematic. I have 4 small drone motors from hubsan x107 and i have soldered their wires on a l293d driver like this ...
0
votes
1answer
3k views

How can I stop my Servo rotating?

I have a continuous servo motor connected to my Arduino UNO. I want it to react to the Hexadecimal code received by an Infrared remote. I want the motor to rotate once in one direction and then rotate ...
0
votes
1answer
1k views

How do I run multiple vibration motors from an Arduino Mini with PWM?

I'm building a project for my Physical Computing class that involves 4 vibration motors for varied haptic feedback based on serial input via analogRead. I have each coming out of their own pin and ...
1
vote
1answer
913 views

`servo.attach()` paralyzing (one) motor on L298N

I have 2 DC motors (well, 4; but each pair is controlled by the same "signals") connected via a L298N, which is connected to the Arduino. In addition, I have a servo motor connected to the Arduino. ...
2
votes
3answers
254 views

Can a motherboard be a simple circuit between arduino uno and a set of devices (ie: motors)

Reason for question: My son is working on a project to build a robot controlled by an arduino uno. This question is more about terminology than process, but since terms are very important at this ...
1
vote
1answer
1k views

Running multiple motors simultaneously

I have this code for a DC motor (using this library) #include <Arduino.h> #include <Vnh2sp30.h> // ENA A B PWM CS inv Vnh2sp30 mtrL( A0, 7, 8, 5, A2, 0); ...
1
vote
0answers
575 views

How can I reduce speed of motor with motor shield?

I'm using Arduino and Adafruit to control 4 motors for a little robot. I have this code example: #include <AFMotor.h> AF_DCMotor motor1(1, MOTOR12_1KHZ); // create motor #2, 64KHz pwm ...
-1
votes
2answers
1k views

control vibrator motor speed with ultrasonic sensors

First, thank you for taking the time to read my post. I am attempting to use 3 ultrasonic sensors to control 3 DC vibrator motor using the PWM output of an Arduino. Fairly simple, I know, but I'm ...
0
votes
1answer
533 views

DC motor not start?

My aim is to create a simple obstacle avoiding robot using Arduino. I have used L293D motor shield to drive the DC motors and supply it all with 12 V. I am using a sonar module to detect the ...
0
votes
2answers
200 views

Continuous Rotation

I was wondering how can I make a Servo rotate continuously by using an Arduino code. I looked through several forums and websites already, but all of them just show how to make it run by changing the ...
0
votes
2answers
207 views

Cannot set Pins to LOW

I am controlling 2 motors from my Arduino Pro Mini and L293D motor driver module. Problem is, I have to set a pin high and after 1 second set it to LOW. But that doesn't happen... The pin just stays ...
3
votes
1answer
796 views

Pause between switching motor direction

I'm new both to this forum and to Arduino. My robot is comprised of Arduino Uno with Arduino Motor Shield, 12V DC gear motor, and two limit switches. The robot supposed to move endlessly on rails ...
2
votes
4answers
3k views

How to track revolution of DC motor?

I am currently trying to build a line follower robot that is designed to solve maze. This maze has a loop, thus it needs to know distance it already travelling (or at least I assume so, please let me ...
1
vote
0answers
501 views

Controlling 20 servo motors independently with a single Arduino

I am wondering if I can control 20 different servo motors with only a single Arduino Uno board. My motors must be able to rotate in both directions and I also should be able to define the speed for ...
3
votes
1answer
6k views

LiPo batteries with L298N controller

I built an avoidance detector robot from this kit. When I drove the robot, the two motors performed unequally, so I tested replacing the four x 1.5 AA battery pack with a 9 volts battery. It did the ...
1
vote
0answers
176 views

ATMega328 not able to fully switch coreless motor on

I'm having trouble regarding motor control in a project I'm working on. It uses an ATMega328 DIP package on a PCB. The motors I'm using are small coreless motors and I'm trying to control them using ...
-1
votes
3answers
229 views

Gradual change of PWM motor control

Can someone please tell me what I'm doing wrong? The motor's not turning at all, never mind changing speed.
0
votes
1answer
1k views

Can I use L293D driver as ESC for arduino controlled quadcopter

I recently thought that it would be fun to build an arduino quadcopter. As I did some research I realized that the common L293D motor drivers aren't ever used. Why is this? Could I still use them in ...
-1
votes
2answers
1k views

How to switch 12V water pump

I found this pump: https://www.aliexpress.com/item/Free-Shipping-Ultra-quiet-DC-12V-3M-240L-H-Brushless-Submersible-Water-Pump-High-Qualtiy-mini/32472119699.html Now, I want to control it from an ...
2
votes
1answer
99 views

Is analogWrite() inferior to writing directly into registers?

I'm trying to control a DC motor's speed with my Arduino Mega analogWrite(), but it doesn't seem to function properly. The motor never completely slows down, just slows down a bit (which is still ...
2
votes
0answers
362 views

Servo.attach method causing strange issue [closed]

I am using the L298N motor driver for a robotics project to control 4 motors. 2 motors in each input and output terminal. I have this connected to an Arduino Uno which is powered by about 7-8v from ...
1
vote
1answer
144 views

use only one input pin in L293?

I have an L293 motor driver chip, in which the two input pins are used in order to turn the motor forward or reverse, or stop it. So I wοnder if I could use only one input pin, ... For running mode: ...
0
votes
1answer
343 views

How to power two stacked motor shields with one 3S Lipo battery (11.1V)?

I have these 2 motor shields: Adafruit Motor Shield V2 and Seed Motor Shield V2. They are stacked on top of an Arduino UNO. My question is, how can I power 2 of those motor shields with one 3S Lipo ...
-1
votes
2answers
57 views

How do i test whether my code fulfills the timing requirement?

I at the moment trying to interface to an stepper motor control board - (ST330-V3) I wrote the code, but aren't sure how i should test it. Is there someway i could scope it, such that also can be ...
2
votes
1answer
855 views

Using an LM339 IC as a motor driver

I have an LM339 IC from Radioshack that I am hoping to use as a motor driver. I read many resources on how the L239D can be used as one. I don't have enough circuit experience to truly know the ...
4
votes
1answer
112 views

Motor running slowly when connected to digital pins, but fine with 5V pins

I am trying to connect a Dagu DG01D motor to my Arduino Uno. First I tried connecting the black wire to GND and the red wire to digital pin 7. My code: void setup() { pinMode(7, OUTPUT); ...
0
votes
3answers
97 views

Need help modelling and coding a feedback scenario

Above illustration is the basic setup for the question. The scenario will be the following: A potentiometer(providing 0 to 5V) is an analog input to A0. This potentiometer voltage is converted to ...
0
votes
1answer
392 views

Reverse DC motor direction every second automatically

I have the Arduino Starter Kit and I'm on project 10 Zoetrope. I've removed the switch that changes the direction as I don't want the reverse to happen when I press a switch. I want the reverse to ...
2
votes
2answers
672 views

analogRead DC Motor - Negative value

I was trying to play with Arduino this weekend and connected a DC motor to A0 and GND to measure the voltage it provides when I rotate it. However, when I rotate the DC motor with my fingers to test ...
1
vote
2answers
3k views

Controlling 5 DC motors with Arduino

I am looking to purchase the correct hardware to be able to control 5 DC Motors from an Arduino (UNO preferred, MEGA if necessary). The Specs of the Motors are as follows: 12 V nominal, 3 → 12 V dc, ...
1
vote
1answer
217 views

Can I use a DAC with an L293D driver?

I'm trying to provide analog control to a Bluetooth controlled car, via Arduino. I have joystick app (as the pot). It send values between 0 to 255 So I'm thinking... Whether this flow down here 👇 ...
1
vote
1answer
90 views

Servomotor losing its connection right after being connected to Arduino

I am working with two servomotors and both are having the same problem: right after i connect them to the arduino and upload the code, they do as the code says for a really small amount of time (0.1s ...
0
votes
1answer
1k views

How to turn servo to a specific location and then turn over

I work on my first arduino car project and i want to turn my servo to a position with a letter input This is my code so far #include <Servo.h> Servo servo; void setup() { Serial.begin(...
0
votes
1answer
186 views

Arduino servo motor on pushbutton

I'm working on my first arduino project and i have my first problem dealing with servo motor , i'm trying to control the servo from my pc with this code but it just spining : #include <Servo.h&...
0
votes
3answers
937 views

How to use relay shield to control dc motor speed and direction?

I tried l298n before but its output voltage wasn't high so I use relay shield but it seems that the car can only go forward or stop Can I control the speed and direction of dc motors?
0
votes
1answer
107 views

Start to build a robot

I would like to start with a very simple robot, which should be based on an arduino uno. I already have an uno and made the decision fpr my robot chassie: https://www.roboter-bausatz.de/en/diy-...
4
votes
1answer
611 views

Arduino - stepper motor wrong steps number

I just bought a new stepper motor (400 steps for revolution, 0.9°/step) and I would like make a turn of 180° by 200 steps, but it doesn't work as expected. It looks like the motor needs only 110 steps ...
2
votes
2answers
158 views

Problem with wrapping Adafruit Motor Controller function calls in a class

I'm working on an Arduino robot and I ran into a problem when reorganizing my code. I have an Adafruit Motor Shield v2.3 connected to an Arduino Uno. My robot can be controlled using a bluetooth ...
1
vote
1answer
158 views

Bluetooth radio control of a motor

I need to purchase the correct bluetooth module for interfacing some simple functionality between an arduino and a motor. The tricky bit is getting the bluetooth radio to play nice with android and ...
1
vote
4answers
4k views

Arduino Driver can I use only PNP?

is it possible to use a normal PNP transistor to drive a motor? I'm kinda new to this stuff so I want to be on the safe side, so I don't damage my Arduino Uno because of the motor. I have made a ...
0
votes
1answer
139 views

Should I control each of the four robot wheel separately or wire two from each side together?

I am making a remote controlled Arduino robot. I has 4 DC motors for wheels. I have 2 motor drivers available that control two dc motors each. I was wondering what the downsides are of wiring 2 dc ...
2
votes
2answers
251 views

Bizarre transistor behavior and voltage with DC motor in simple circuit

I started a new motor related project recently with a new Arduino Uno, beginning with several tutorial circuits included in the Vilros Arduino guide. The circuit in question is #10, a simple DC motor ...
1
vote
1answer
2k views

Arduino : How to control AC Motor Speed [closed]

Controlling speed of DC Motor from arduino could be done via PWM and H-Bridge, but how can i control an AC Motor? Thank you.
0
votes
1answer
1k views

Relay for controlling a water pump motor

I want to switch on and off a motor with arduino, used for pumping water. I need to have a idea which relay could be used with arduino. Here is a photo of a similar motor:
2
votes
2answers
2k views

Precise rotation (steering direction to a given angle) on obstacle avoidance robot

Forgive my lack of knowledge of some robotic related terms, but the way my two wheel drive robot steers is simply by having each wheel move at different speeds; for left, for example, the left wheel ...
1
vote
1answer
940 views

How to control a DC Motor with Hall Encoder using Arduino and Motor Driver?

I'm using a DC motor with Hall Encoder. I bought it from DX. I have made all the connections to motor driver and arduino and I suppose all are correct. I've connected m1 and m2 pins of motor to that ...
1
vote
2answers
9k views

How to run stepper motor at its maximum speed

I am running a stepper motor using arduino and IC l293d. What is the maximum possible speed of rotation that I can achieve with the IC and what should be the applied voltage for the same? Earlier, I ...
0
votes
1answer
157 views

Calibrating ESC and then using it [closed]

i have 30Amp ESC which i can move motor by providing values , but i am unable to know what is the minimum and maximum throttle speed of the motor.... how to achieve that level of info through ...
0
votes
1answer
5k views

Connecting 4 servos, 2 motors, hc-05, sr-04 and L293D to Arduino

I am trying to make an obstacle avoiding robot with robotic arm. First, I am from software programming field with no experience in electronics, circuits and Arduino. Using online tutorials so far I am ...
0
votes
1answer
858 views

Code: Switch case and loop problem [closed]

Please am working on this automatic drink dispenser, i got a sample code as am still an amature. I seem to be stuck and i please need assistance. Components: I2C, keypad, LCD peristaltic pump. ...

1
5 6
7
8 9
12