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
4answers
6k views

How do I connect a vibration motor to Arduino?

I'm trying to figure out how to connect a vibration motor to my Arduino. I've come across this resource and it seems pretty straightforward though for a while my eye glazed over at how complicated ...
1
vote
1answer
51 views

2WD robot - logic error

I am making a basic 2WD robot using Arduino Uno with motor shield. I am getting no compile errors - but something in my logic flow is not working as expected. Expected Operation: Ping sensor does ...
3
votes
1answer
12k views

How to make servo rotate for angle bigger than 180°

Connected servo motor (180°) to Arduino Uno R3. Currently I am using a servo motor which have rotation angle specified as 180°, but I have a requirement to rotate to certain angles greater that 180°. ...
0
votes
1answer
722 views

Designing a robotic arm using Arduino Uno

We are making a robotic arm using Arduino Uno board in which we are not able to decide which kind of motor to use. Which motor will be better if we want to lift weight up to 1kg using gripper at the ...
1
vote
1answer
633 views

Motors settings [closed]

I'm trying to build my own 3D printer with a guide but I've got a problem with two of my CD/DVD motors: I don't know which settings to set in Marlin (configuration.h) because I can't find any ...
3
votes
3answers
4k views

How to define a SoftwareSerial object inside a class?

I have a header file called Rhino.h with class Rhino. I want to pass RX and TX pin numbers to this object class, and with this, define a SoftwareSerial object to be used inside the Rhino class. The ...
0
votes
2answers
1k views

Stepper Motor not Stepping Properly

I have an Arduino Uno connected to the Adafruit Motorshield v2. I have it hooked up to a stepper motor(27BYJ-48). I am trying to make the motor do one complete revolution. However, the number of steps ...
0
votes
1answer
1k views

Safe to control multiple power sources through a switch through the ground?

I've attached the breadboard layout and schematic of a circuit I'm constructing, which is a simple Arduino radio control car, with a 9V powering the Arduino Uno, and the 6 volt battery pack feeding ...
1
vote
1answer
726 views

Arduino water pump not working and beeping

I’m new to Arduino and am trying to build a plant watering system without much knowledge on the subject. But my water pump is not working as I expected it to. I wanted to keep it simple so I bought ...
0
votes
2answers
212 views

Arduino and DC Motor control board

I've this PWM Module - 6V-90V 15A Pulse Width PWM DC Motor Speed Controller Switch which I use to control a peristaltic pump (ordinary DC motor), now I want to replace the potentiometer with an ...
0
votes
1answer
94 views

Issues on Arduino, LiPO battery and two mottors setup

My main objective with this project was to control these two DC motors with an Arduino Nano (it is not a UNO), powered by a 3-Cell 750mAh LiPO battery (both the motors as the Arduino itself). So, I ...
0
votes
1answer
158 views

Stepper motor doesn't start immediately when i pressed the button

When I release my hand from the button on pin 2, the stepper motor takes at least few seconds to stop, but I want it stop immediately. here's my codes: #include <Stepper.h> const int ...
2
votes
4answers
431 views

Which is faster, Serial or DigitalWrite?

I am working on an Arduino Uno battle bot that uses a Sabertooth moter controller. Right now it is connected to the Arduino through Serial communication. Which is would be faster (So I can increase ...
0
votes
2answers
985 views

MPU 6050 stuck on same values

I'm having a problem with my MPU6050. I'm using PID to speed up a motor with the MPU values. What could the problem be? Here is a link to a previous question that I asked concerning a problem with ...
1
vote
3answers
1k views

Speed Control L298 motors

Proceeding is the relevant part of the code for the problem I'm asking assistance with. I'm attempting to vary the speed of the robots motors with PWM. The left motor speed can be varied numerical. ...
0
votes
1answer
164 views

Motor Shield not giving full power, LED DIMS

I have an Adafruit Motor Shield, the V1. I have been using this thing with my OPSEPP Uno and a stepper motor with no issues. (Powered by 12v DC wall wart [CASIO]). My question, or issue, not sure yet,...
1
vote
0answers
456 views

Regenerative motor drive for arduino with torque control [closed]

I'm looking for a motor drive for use with an Arduino that fits the following requirements: Drive brushed or brushless DC motors (I don't mind which) Regenerative - can feed power back to the supply ...
0
votes
1answer
1k views

Problem with running 2 DC motors with ultrasonic sensor

I'm not expert in electrical circuits, maybe I am making a very simple mistake or missing some basic points with my circuit. What I'm trying to achieve is simple, to run 2 DC motors with an ...
-1
votes
1answer
485 views

High Torque motor humming but not turning [closed]

I am making a self-balancing robot and using a 30 kgcm and 200 rpm 12 V DC motor. When I am applying PWM to the enable pin the motor is humming not rotating. Please help I dont why it is happening. ...
1
vote
4answers
6k views

How to run 5 wires hibrid stepper motor with arduino uno?

I have a question. How to run stepper motor (Nema 17) that has 5 wires with arduino and stepper driver. Here is the driver, stepper and Arduino when stepper has 4 wires. http://jdreyer.com/projects/...
1
vote
1answer
3k views

Powering a stepper motor

I'm working on a project where I need a high torque stepper motor. The stepper motor being used is rated at 12 - 24 volts and when I used a 12 volt battery supply composed of 8 AA batteries it ...
1
vote
2answers
2k views

PID not working correctly

I'm currently working on a project where I need to use PID to get the correct speed for a motor when it is angled a certain amount. The problem is that I'm only getting 0.00 and 255.00 as the speed. ...
0
votes
0answers
484 views

Arduino Mega And L298N Motor Driver Board (Controlling using AccelStepper Library)

Can someone help me how to use AccelStepper library in setting the origin position of the stepper? We are using a tact switch and an L298N driver for the stepper motor in setting the origin of the ...
1
vote
2answers
1k views

Calibrate motors using arduino

I'm trying to create a car that's being controlled by an Arduino. I'm using the following chasis: http://www.aliexpress.com/item-img/New-2WD-car-chassis-DC-gear-motor-wheels-easy-assembly-and-...
2
votes
1answer
16k views

Arduino uno + cnc shield v3 + Stepper Motor Driver A4988 + AccelStepper?

I successfully run the AccelStepper examples on an Arduino Mega with a RAMPS 1.4 shield, two A4988 stepper motor drivers and two 17HS16-0284S stepper motors. I used 3 jumpers on the RAMPS to set the ...
1
vote
3answers
13k views

Controlling 3 stepper motors simultaneously

I have three stepper motors connected to the drv8825 drivers to an arduino uno. I am using the example code below (from here), which works fine for moving multiple stepper motors at the same time BUT ...
0
votes
1answer
883 views

Speeding up Arduino DC Motors

I am using the Adafruit Motor Shield v2.3 for Arduino Uno. I am using the analogWrite() command to power my DC motor and have set the speed to 255. Is there any way to speed up the Arduino motor even ...
2
votes
1answer
2k views

Powering Motor doesnt work from Digital Pin, but works on 5V power

I am building a little car project, and I have come across an issue that has made me go mental. I have a single motor (3V-5V), that on direct 3.3V & 5V output works fine. However, when I connect ...
3
votes
3answers
9k views

Why is my Adafruit motor shield not spinning my motors?

I'm using the Adafruit Motor Shield v2.3. I'm powering the Arduino with a USB cable and I'm powering the motor shield with a 9 volt battery. I removed the vin pin, and I'm using this tutorial/code to ...
1
vote
2answers
117 views

Transistor slows motor instead of turning it off

I'm new to electrical engineering and I am currently trying to make a motor turn on for one second, turn off for one second, and repeat. I'm using an Arduino Uno's digitalWrite() feature to activate ...
1
vote
1answer
1k views

Four Fast PWM outputs, in parallel

I need four Fast PWM signals for four different transistors. I want to use timers 1+2 (pins 3, 11, 9, 10) so it wouldn't interfere with delay(...). I tried setting the timers to Fast PWM mode, and ...
1
vote
1answer
504 views

Share battery pack with Arduino and DC motors

I used 6 rechargable AA batteries (total 7.2V) to power my Arduino (UNO R3) Car's two DC Motors (using L293D IC as motor driver). I used separate 9V battery to power arduino itself. But I want to ...
1
vote
1answer
612 views

How to make two wheels turn only for a particular amount of time?

I am trying to make a robot turn (dc motors are being used) back 180 degrees. So I used an l289n for it and made one wheel turn clockwise and vice-versa. But as I wan't it to make only a 180 degrees ...
0
votes
4answers
3k views

Strange problem. Arduino stops working after few hours. Opinions please

I am trying to setup an automated relay for my aquarium. The Arduino should switch off the pump every 3 hours for 20 minutes, and feed at particular times during the day. The code works fine for the ...
3
votes
3answers
2k views

Controlling a DC motor with an external power source

I'm trying to use an Arduino to release a single drop of water using a solenoid valve.  This article describes how to create this circuit with a Raspberry Pi using a DC powered solenoid that opens and ...
0
votes
1answer
417 views

Low Cost Motorized Valve

I'm looking for a low cost motorized water valve. I've done a number of searches and have found nothing compelling. Has anyone here used a motorized water valve with Arduino? What would you ...
0
votes
1answer
2k views

Problems using an arduino with vex motors and motor controller 29

I am using a VEX 2-wire motor with the Motor Controller 29 to use it like a three-wire motor. I was told that I am able to program it like a servo using the Arduino Servo class. When I use the write(...
0
votes
2answers
1k views

I'm pretty sure I fried my Arduino Uno. Given my setup, what caused it to be fried? (I can't identify the short)

I was trying to drive a Nema 17 stepper motor using an arduino uno and an A4988 driver. I had it wired up according to this instructable (http://www.instructables.com/id/Drive-a-Stepper-Motor-with-an-...
5
votes
2answers
2k views

Arduino DC motor causes disturbance. What can cause it?

I tried to fix this problem the whole weekend but, after no success I decided to post it here. I would really appreciate any help. The problem The Wi-Fi module activates the DC motor and lets it run ...
1
vote
2answers
3k views

How to connect an L293D and an MPU6050 to run together?

I'm wondering how to connect the L293D (H-bridge) and an MPU 6050. I'm using 1 Arduino Uno, 2 DC motors, 1 MPU6050 and an L293D. When I tried this, I got some sparks/smoke from the breadboard and ...
3
votes
1answer
266 views

Weird stepper motor behaviour on RAMPS in arduino

Following this tutorial: http://www.instructables.com/id/Complete-newbie-step-by-step-3D-printer-with-all-p/?ALLSTEPS I connected DVD stepper motor to RAMPS 1.4 on arduino with Marlin software with ...
1
vote
0answers
432 views

Best 2a stepper motor driver for Arduino Uno

What is the simplest (from a user/install standpoint) 2a stepper motor driver for an Arduino Uno? I would like something simple and easy to stack like the Adafruit Motor/Stepper/Servo Shield for ...
0
votes
1answer
930 views

Making Servo Motor Automatically Move Based on Input

sorry if I sound incompetent, but I know nothing about coding. I have a group project where I must sort various balls into different tracks. The final issue I have is that I must use an arduino for ...
-1
votes
2answers
207 views

Phasing a Stepper Motor Control Project Problem

I have a project involving stepper motors, in which I want to manage electronic equipment. What I'd like is a system allowing me to run the stepper motor continuously forward as long as I step on a ...
1
vote
1answer
318 views

Can't read from DHT sensor when motor is running

I've been following this tutorial and I've run into some weird problems. When my motor starts running, I get "Failed to read from DHT sensor" on my serial window, meaning that readHumidity() and ...
0
votes
1answer
2k views

Brushless motor “jiggles”

When I run my code, the ESC makes some noises, different on the high pulse and low pulse, then it begins to jiggle for a bit when it gets to the loop. Here is the code: #include <Servo.h> #...
2
votes
1answer
62 views

Giving the impression of a dying device - making a vibrating motor slow down and stop

I'm trying to make a gag gift for a friend. The effect I'm trying to imitate is of a device that starts up for a moment and then putters out like something is wrong. So I need it to: 1. Vibrate a ...
0
votes
1answer
187 views

Why won't the slide switches control the motor in this 123d simulation?

int guard = 7; int switchPin = 6; int motorPin = 9; void setup(){ pinMode(guard,INPUT); pinMode(switchPin,INPUT); pinMode(motorPin,OUTPUT); } void loop(){ if (digitalRead(guard==HIGH)&...
3
votes
5answers
10k views

Controlling Servo Motors with push button. Problem though

I have this setup where I have and Arduino Uno, a mini servo motor, and a pushbutton. I use a single pushbutton to control the servo motor to go to one position, then push it again to go back. It ...
1
vote
1answer
5k views

Arduino + TMP36 + DC Motor

I made this circuit: The part with the DC motor is from this tutorial: https://learn.sparkfun.com/tutorials/sik-experiment-guide-for-arduino---v32/experiment-12-driving-a-motor ( I only use another ...