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
9k views

How to read data from a rotary encoder with ATmega328

I'm using a home made "bare bones" Arduino, made with the ATmega328, and I need to read angle data from a geared DC drill motor, turning at speeds between 0 and 450 RPM. This is so I can use it as ...
0
votes
1answer
301 views

Troubleshooting DC motor

I worked on the starterkit project #9 motorized pinwheel, and the motor worked just fine. I then tried to add a potentiometer, and now the motor won't rotate at all any more (neither in the current ...
0
votes
2answers
396 views

Relay feedback control

I have a two-relay system set up to a DC motor. So, if I close one relay, the motor moves on one way and if I close the second relay (and open the first) the motor goes on the other direction. I ...
0
votes
2answers
1k views

Arduino Stepper Motor Standing Desk help!

I currently have a standing desk at work, and I thought a fun way to learn Arduino would be to automate it, as it currently uses a hand crank. I would love some help determining what I would need for ...
2
votes
1answer
103 views

How to tell what components are compatible with Arduino Due?

I am interested in using the Arduino Due in an upcoming project, however I am worried that the other shields/components that I need will not be compatible with it, because, according to that link: ...
2
votes
3answers
16k views

Do I need the Motor Shield to drive servo motors?

I was perusing Arduino's list of official shields and noticed the Motor Shield that can be used to drive up to 2 servo motors. Being brand new to Arduino/robotics, I am wondering: do I really need ...
0
votes
2answers
6k views

Transistor for DC motor and 9v

I have this schematic for a DC motor in my arduino, now I want to add 9v battery. But I've seen that people use TIP120 transistor, I have BC548B, can I just put the 9v with that transistor?
0
votes
1answer
9k views

How to drive motors and use an ultrasonic sensor simultaneously?

I have a L298 motor driver, which I coded with an Arduino Nano. The code is very simple at the moment: // connect motor controller pins to Arduino digital pins // motor one int enA = 10; int in1 = 9;...
0
votes
1answer
150 views

Not sure if programmer or ATMega is burned

some time ago i tried doing this with my original arduino uno r3. I guess i had to plug the power cables in wrong order(i think it's called reversing polarity) because my arduino stoped working. It ...
0
votes
2answers
9k views

Activate a DC motor for a fixed amount of time

I have a single simple DC motor that upon a condition I wish to let it run for 3 minute. How can I do it in Arduino? a simple addition to the code will be great help. As I use Adafruit motor shield ...
3
votes
2answers
8k views

Proportional water flow control [closed]

I've been looking at water flow control with Arduino and I'm finding a huge difficulty in managing to do an 'analog' control on water flow. The mainstream solution seems to be the well known solenoid ...
1
vote
0answers
141 views

Arduino-controlled current limiter for lathe

I'm building a lathe that will be powered by a 3-phase 750w AC motor (4 pole, max unloaded RPM of 1400 RPM). I want to be able to control the RPM using a potentiometer attached to an Arduino mega ...
0
votes
1answer
96 views

how to send input values from host computer to arduino [closed]

how to send input values from host computer to arduino,such that speficing the number of rotations for a stepper motor etc
1
vote
1answer
3k views

How to precisely control servo motor by changing duty cycle?

I developed a PWM using timer1,using arduino uno and digital output, and identified that when I send a wave with duration of 0.6ms in High level, the motor goes to 0º. If I send 2.1ms, it goes to 180º....
0
votes
1answer
990 views

Problems with L293D

The motor are not rotating in the above circuit . Or rather the Voltage between the two Motor Terminal is zero. I have checked the Pin 10 & 11 and Pin 12 & 13. They are fine and produces ...
1
vote
1answer
2k views

Arduino Uno + 2 Monster Motor Shields

I've got an Arduino Uno and two Sparkun's Monster Motor Shields. The aim is to control 4 motors. There is no problem to control 2 DC motors with single motor shield. There's a manual on how to do it ....
0
votes
1answer
490 views

Alternative Way to Power Components on an Arduino

I have very limited knowledge regarding electronics. Please help me cure my ignorance on the subject of robotics. I want to power the Arduino Uno R3, US-015 ultrasonic sensor, and the L298N motor ...
0
votes
3answers
513 views

Servo broken? Explanation, Solution

I had a question, I tried to control a servo with the arduino, to the servo I attached a stick and at the end of the stick a little weight. After runing my code my servo tried to move the stick, but ...
0
votes
1answer
2k views

Connecting an AB phase encoder motor to arduino

i'm trying to understand how to connect this motor: "Mitsumi 334P/R AB" Link to the motor i bought connections are: GND - Obvious. 5v - Obvious. rest of the connections are a bit confusing to me ...
1
vote
1answer
3k views

Control Brushless ESC From Arduino

I am trying to build a quadcopter using an arduino. I Bought 4 30A ESC's from Ebay the link is http://www.ebay.co.uk/itm/4pcs-Brushless-speed-controller-ESC-MultiCopter-KK-Quad-rotor-X-copter-30A-S-/...
0
votes
1answer
506 views

Adding a steering servo

I got a Sparkfun Redbot Kit a while back. I ended up building it vanilla and it was a good introduction to the board (the board is basically Uno and a motor shield in one) and the toys that came with ...
1
vote
1answer
128 views

difference between output pin high and 5v pin

So this might be a total noob question (which admittedly I am) I have a Motor, if I connect it to GND and the 5V output it runs. Ok so far. But if I connect it to GND and a pin set to OUTPUT and HIGH ...
0
votes
1answer
221 views

Switching a dual h bridge in parallel

I'm using a dual h bridge to control two dc motors on an inverted pendulum (cart-pole system). At the moment, I have to send two different pulse width modulated signals to the two enable pins to ...
3
votes
1answer
2k views

I2C or SPI to control 6 motors?

I am a hobbyist & know little about electronics. I am making a robot arm, like this one. For which I will need 2 stepper motors (for elbow & shoulder joint) & 4 simple DC motors. Which ...
1
vote
1answer
2k views

Is it possible to use two encoders with Arduino Uno?

I would like to control 2 motors with the Arduino Uno board, which provides only two interrupt pins on digital 2 and 3. I've set one encoder using these pins, and it works. What do you think about ...
3
votes
5answers
33k views

Control Speed of DC FAN Using Arduino PID Library

I want to make a circuit that control speed of DC fan Using Arduino PID Library to get thing at specific temperature. The circuit looks like this but can be changed, The dc fan motor connected to PWM ...
0
votes
2answers
152 views

motor affecting time calculation between hardware interrupts

My robot uses an Arduino Mega 2560. It has 6 IR receiver modules connected to its 6 external pins namely 2, 3, 18, 19, 20, and 21.I have connected the Pololu MC33926 dual motor driver arduino shield ...
2
votes
1answer
618 views

Arduino Nano Motor

If I had four of these motors and attached them to the Arduino Nano on four separate digital pins or analog pins without transistors and a 9v power supply attached to the regular power supply input ...
2
votes
2answers
165 views

time error in controlling a clock

I have designed and 3d printed a clock. I am controlling the clock using a Arduino sketch running on a Attiny2313. The stepper motor I am using is a 12v 1:12 ratio stepper. The total number of steps ...
0
votes
2answers
958 views

What is the best transmitter/receiver to use with an Arduino RC?

I want to customize an RC car that I have because the controller is gone. I'm going to use an Arduino with a custom motor controller but I have no idea what to use for the transmitter/receiver. I've ...
1
vote
0answers
604 views

My Arduino Robot doesn't move, and it's the only thing that doesn't work

It will be simple. I started to look at the sketch of the Arduino Robot and just tried one, Disco_Bot, and uploaded it one the top board. The Arduino started to play some music and the name was on de ...
0
votes
1answer
1k views

Which battery should I use to power arduino+motor shield + two 200 RPM (3.6V/1.5A)motors

I am using two motors ( from old two drill machines - same kind, these are 3.6v motors ), connected to arduino + arduino motor shield seeed studio v2. When I measured the both motors (indvidually) ...
1
vote
2answers
2k views

Differential steering drive equation

I'm trying to control an Arduino-powered motorized toy with a differential drive. However, I want to code it the motor movements with a direction vector. e.g. (1,0) = forward (-1,0) = backward (0,1) ...
0
votes
1answer
2k views

Vibrating motors with different intervals

For my project, I have 3 ultrasonic sensors and 3 vibrating motors; the motors need to buzz for a small amount of time, then wait for a specific time that corresponds whith the range of the ultrasonic ...
0
votes
2answers
28k views

How to make the motor car move left-forward / left-backward/ right-forward/ right-backward

I'm using an Arduino Uno to make a motor car. And I successfully made it move forward / backward / left / right. void forward(void) { analogWrite(EA, 254); //speed 0 - 255 analogWrite(EB, 255); //...
-9
votes
1answer
4k views

STEPPER MOTOR CONTROLLER Using LEONARDO PRO MICRO

I want to Use LEONARDO PRO MICRO and A4988 Stepper Motor DRIVER to control Nema 17 Stepper Motor. Please let me know how to hookup these together. Please give me a circuit for this type of assembly ...
1
vote
0answers
790 views

Motor Shield with 4 DC motors + small servo, which battery is suitable?

I am building my first 4wd vehicle with Adafruit motor shield with one Ultrasonic sensor and one small servo to move sensor. I am facing some problems. Bought 4 motors (2 GM9 and 2 GM3), found the ...
-1
votes
2answers
5k views

6 + 1 motors connected to an arduino uno?

Is it possible to connect 6 dc motors and 2 dc servo motors to an Arduino Uno? I intend to control the Uno with a Raspberry pi connected through USB. Assuming every motor to be bidirectional, how ...
5
votes
1answer
3k views

H-Bridge vs Motor shield for the arduino

Assuming we wish to control a small toy car with an arduino - meaning spinning the right and left wheels forward and backward and being able to break and control the speed, where each wheel has it's ...
3
votes
2answers
3k views

Why doesn't this motor turn?

When I upload the code, the DC motor makes a humming noise, but doesn't turn. //2-Way motor control int motorPin1 = 5; // One motor wire connected to digital pin 5 int motorPin2 = 6; // ...
4
votes
1answer
3k views

Arduino motor shield will only work in one direction

I have this Arduino motor shield which is hooked up with two DC motors. The board is the same as this one from Sparkfun. A PWM output controls the speed of the motor, and a digital out controls the ...
2
votes
1answer
361 views

Discrete H-Bridge very low current output

I have built two parallel H-bridges from "Design 1" on this page as you can see in the attached schematic. However when I apply the external power (VCC1 in the center of the diagram) the two motors ...
1
vote
2answers
859 views

Arduino Uno to drive 2 unipolar stepper motors

I need to use two stepper motors to move microscope positioning knobs in the X/Y direction. The stepper motors I have are unipolar and are 6V rated (I think). I know it's possible to drive a unipolar ...
0
votes
1answer
1k views

Why is my transistor getting very hot when controlling a 12V peristalic pump?

I have followed this tutorial: http://www.instructables.com/id/Automatically-water-your-small-indoor-plant-using-/?ALLSTEPS Every time i try to run my circuit, My transistor gets very hot and breaks....
1
vote
1answer
126 views

Can a DC motor use more current than its datasheet?

I am using small dc motors connected to the 5V of the arduino which is known to provide 200mA without damaging it. The motor I am using is a very common one found in toys -> https://www.sparkfun.com/...
0
votes
1answer
224 views

Trouble reading from multiple analog ports

So I'm trying to read 4 different analog values and store each one to a variable. I imagine doing this by first initializing the ADC registers and each time it enters the ADC ISR checking which port ...
1
vote
0answers
750 views

Which Arduino DC motor controller shield to use?

I wanted to try and experiment on 24 V DC motors (Dual) and was looking for controllers compatible with Arduino Uno. When I found this Pololu TReX Jr 2 x 2.5A 5-24V Dual Motor Controller, the ...
5
votes
1answer
8k views

Can I use a spare Darlington Pair on my ULN2003A to drive a DC motor?

I'm successfully running a stepper from my Arduino via a ULN2003A and a secondary power supply. It uses the first four of the seven Darlington Pairs on the chip, leaving three spare. A) Is there any ...
0
votes
1answer
641 views

Arduino works bad when powered by 9V battery

At first I am sorry for my bad English. I am making robot which can do a lot of things... If I connect arduino on my robot with PC via USB, the robot works properly. If I use external power supply (...
1
vote
1answer
71 views

Can I use this replacement motor without modifying the circuit?

I have a demo that spins a motor, but the leads on my motor broke. I happen to have another motor lying around that I'd like to swap in, but it's of a different type. Here's my circuit: This is the ...