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

Why is one part of my code being executed over the part before it?

The following code doesn't behave the way I would like it to. Inside the loop function im measuring the distance in front of the robot and if it is less than 15cm than the robot should move back and ...
0
votes
1answer
9k views

What are the unused pins in an Arduino L293D motor shield?

What are the unused pins in an Arduino L293D motor shield? I want to connect the shield using wires instead of directly mounting on top of the Arduino board.
2
votes
1answer
2k views

How to pull a pin low?

On the instructions for this motor driver, it says that motors can be put to sleep by "pulling a pin low". SLP - Logic Input. When pulled LOW, outputs are disabled and power consumption is ...
1
vote
2answers
3k views

Connect Multiple L293D Motor Controllers to Arduino

I would like to connect 3 L293D Motor controllers to an Arduino Uno with the hopes of powering 6 different dc motors. I was just wondering how to wire this being that one motor controller (which ...
5
votes
1answer
20k views

How to control a Nema 17 stepper motor with an arduino? (too much current / heat)

I am trying to control a Nema 17 motor with a L298n dual bridge and an Arduino Mega. My wiring is from this Instructable: http://www.instructables.com/id/Control-DC-and-stepper-motors-with-L298N-...
3
votes
1answer
53 views

Shield Compatible third party motor driver

I recently purchased an Arduino UNO along with some other hardware. At the time of purchase, I didn't know about Arduino's motor shield and so I purchased a two channel stepper motor driver (2A per ...
2
votes
1answer
843 views

Using N mosfet to switch ESC to BLDC phases [closed]

I have an ESC that powers 36v 3 phase BLDC motor. The ESC has limited functionality and can power motor only in one direction. If I switch manually two of the ESC to Motor phase connections, than the ...
0
votes
3answers
88 views

Run motor for a set amount of depending of Pressure Sensor

I'm a noob when it comes to time-based coding. I have a pressure sensor which shows me readings for when someone is sitting on a chair. I want to turn a motor for 2 seconds when the pressure ...
0
votes
2answers
73 views

Which motors to choose?

I don't know if this is the right place to ask, but I'm an arduino newbie and I'm seeking some suggestions. For my Robotics subject at University, I'm going to build a robot that should be able to ...
0
votes
2answers
81 views

Swapping 5V and GND for a 2 wire motor

I have a 2-wire brushed DC motor in a servo housing which either pushes left or right (and "center" when unplugged). To push to one side I connect a wire to 5V and the other to GND, to push to the ...
1
vote
1answer
181 views

Ways to turn a knob with a stepper motor and an ATMEGA32u4

Hey all I am wondering what would be the best items to purchase for me to be able to turn this know (continuous) below: As I mentioned above, I would need the stepper motor to have a continuous ...
-2
votes
1answer
2k views

L298n - both outputs to one motor [closed]

how do I wire and drive 1 motor with the 2 outputs of the L298n motor driver module? (parallel the outputs)
1
vote
1answer
11k views

Control a motor with a button

Code: int motorPin = 9; // the pin the motor is connected to void setup() { pinMode(motorPin, OUTPUT); } void loop() { motorOnThenOff(); //motorAcceleration } void ...
1
vote
2answers
2k views

AC Motor speed control using SSR? [closed]

I want to control speed of an AC Motor using phase cutting.. Well, I already have zero cross detector and SSR but don't know how to program Arduino to phase cutting using SSR.. And to connect the ...
0
votes
1answer
3k views

Arduino + motor driver (L293D) power consumption

Please help me on this question. Original question : My chip consists of 1 arduino nano and 3 L293D motor driver. This chip is for controlling motors and other equipments. My question is about how ...
2
votes
2answers
127 views

Connect Two Arduino Uno's

Essentially I am looking to build a remote controlled car using dc motors and one arduino uno to be on the car to supply the power logic and i wanted to use another arduino to be the remote. I was ...
2
votes
1answer
466 views

Motor running during Motor Shield R3 reset

I have a problem with the Arduino Motor Shield R3 on an Arduino Uno. I Have a DC Motor on the A Channel and the Shield is connected to an external power source. When I reset the Arduino card the motor ...
0
votes
1answer
287 views

Ultrasonic sensors with 12v motors will not work! (ADRUINO)

ok... so I am using four 12V motors and one ultrasonic sensor with a motor shield... and I am getting some odd results... in my code I have it so when the distance to a object is less than 4 cm it ...
1
vote
0answers
63 views

Issue regarding executing sketch code when not connected to USB

`I have an Arduino Uno A000066 Board R3 that has an Arduino A000079 Motor Shield Rev3 attached to it. Also I have connected two DC Servo Motors to the Motor Shield and wrote the following sequence: ...
2
votes
1answer
203 views

Brownout with Arduino Nano

I'm making an RC car with the Arduino Nano. I'm using RF433 as wireless communication with 2 motors and L293D as the motor driver. I use 4 1.5V batteries to power the Arduin and another 6V battery ...
0
votes
1answer
760 views

Driving two stepper motors using one stepper motor driver

Using an Arduino Mega, I currently control two stepper motors that never operate at the same time and never will. I am using two EasyDriver stepper control boards with two separate power sources. I ...
1
vote
1answer
58 views

Carry out two consecutive tasks when a button is pressed

I'm building a project that has 2 motors. What I want to do is: When button is pressed (hold down through RF controller) then: Run motor A on pwm at 50 for 1 second Run motor B on pwm at 255 for 1 ...
0
votes
1answer
119 views

Can I safely power my UNO and DC motors with the 5v1A and 5v2.1A ports on a USB charger?

I have USB charger battery pack with two output ports (Fremo C510). One is marked as 5 volts 1 amp, and the other as 5 volts 2 amps. I'm building a toy robot and would like to run the UNO off of one ...
3
votes
2answers
1k views

Newbie Arduino DC motor problem

So I am new to Arduino and new to electronics in general. I've looked up a few tutorials and they all have a simple early tutorial that turns on a DC motor and turns it off again. Something like this: ...
0
votes
1answer
104 views

Bot not activating after button press

This bot is supposed to begin moving forward when the button is pressed, and stop after counting 3 lines of tape on the ground. Currently it is set up to scan the color of the floor at the beginning ...
0
votes
1answer
2k views

Expected ')' before ';' token Error

Me and my friend have a project to do and we can't seem to figure out why the code we used for our Arduino Nano Board isn't compiling giving us the Expected ')' before ';' token Error Here is the ...
0
votes
1answer
94 views

Help combining code

Can someone please help me fix my code? Basically, a user inputs values that determine how many beeps will play from a breadboard-compatible speaker, and right after the beeps are played, a motor (...
1
vote
2answers
534 views

How to make the motor move after a certain period of time?

Basically I want my motor to run after let's say 10 seconds passed since the program started up. The amount of time is determined by user input, and I have already coded for that. The motor is ...
1
vote
1answer
192 views

Turning an electric vehicle

I am not sure if what I am asking is possible. I was wondering if I would be able to program my Arduino to have my car go straight until one of the wheels hits a certain amount of wheel rotations then ...
0
votes
0answers
217 views

Is there a module for driving 2 stepper simultaneously?

I'm looking for a module (not a shield) to drive 2 stepper motors simultaneously. The solution I found for now is 2 TB6612FNG modules, but if someone knows something that can work with 2 steppers ...
0
votes
2answers
3k views

How do I accelerate a stepper motor?

I have a 24BYJ48 stepper motor, and my main problem is that I cannot make it rotate quickly. I've understood that in order to achieve a high speed I must start at a low speed and carefully accelerate ...
3
votes
4answers
3k views

Brushless motor + ESC with Arduino question

Sorry in advance as I'm still a rookie with Arduino projects. My goal is to use an Arduino Uno 3 to create an inexpensive drone/plane project. Here are my materials and my set up: A2212 1000kv ...
1
vote
1answer
633 views

Do I need to use the PWM pins in order to control brushless motors Arduino Uno?

I am building a quadcopter with this schematic: It works very good but i have the pins on 3,5,6,9 = PWM pins. Is it possible to use "regular" pins instead? I will add more modules later on so i will ...
1
vote
1answer
4k views

Following on ESP8266 Board pins, how do they map on the motor shield?

Here is the answer: All pins corresponding to the G row are connected to ground. All Pins corresponding to the V row are connected to NodeMCU's 3V3 pin. D row pins tagged from 0 to 8 correspond to ...
2
votes
1answer
1k views

How can I connect H-Bridge motor driver (using four 2n222 transistors) to Arduino? [closed]

First of all I'm a noob. I was trying to do the H-Bridge using 2N2222 controlled by an Arduino Uno. This is the design---> I joined A1 and A2 to form a common terminal (say A), similarly, I joined ...
0
votes
1answer
230 views

Creating linear motion using motor

I am trying to make a smart lock for bicycles. This lock can be controlled with the help of smartphones. For the purpose, I am using an Arduino interfaced with HC-05 Bluetooth Module which receive ...
0
votes
1answer
269 views

Controlling DC motor using the Servo pins

I have a L293D motor shield for arduino uno. It has capability of controlling 2 servo motors and 4 DC motors. But I want to control 5 DC motors for my project. So my question is can I use the 3 pins ...
0
votes
2answers
908 views

Servo/Motor for barrier gate [closed]

I am working on a small project that will need to check for proper UPC's then if validated, lift a barrier gate to move along cardboard boxes. The Arduino comes in with the gate lifting. I have this ...
0
votes
1answer
177 views

All four of my ESC motors stutters when I run it on my Arduino, how can this be fixed? [closed]

I am creating a drone and when I run it with my arduino all 4 motors stutters. This is the ESC and the motor i bought: hobbyking.com/en_us/mt1806-brushless-combo-include-esc-5030cw-ccw.html I put ...
1
vote
1answer
839 views

I have 4 motors connected to their own ESC (that is connected to a power distribution board), how do I connect this to Arduino uno? (Drone)

I am currently working with a bigger drone that I want to connect with an arduino uno. The motor and ESC that are already soldered together and connected are these: https://hobbyking.com/en_us/mt1806-...
-1
votes
1answer
311 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
897 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
248 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
564 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
525 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
199 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 ...

1 4 5 6 7 8 12