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
439 views

H-Bridge L298N motor driver

I have 2 motors connected to a dual H-Bridge motor driver and the H-bridge connected to an arduino uno, It was working fine at first but now my motors are spinning very slow and the car bearly moves, ...
1
vote
1answer
913 views

DC motor kickback diode?

I have the following circuit: And I know it works and that the diode protects the negative voltage from flowing back into the transistor. This is essentially the circuit: Could someone illustrate ...
1
vote
1answer
365 views

Help choosing an ESC for a 500W/60V motor

I have a 3 phase (3 wires) unicycle motor - 500W, 60V and a battery 50 - 60V (if I understand correctly - 16 cells x 3.7 V), 2.9 Ah. I want to control this motor with Arduino PWM pin. I understand, ...
0
votes
1answer
285 views

Help with arduino car project

So in computer engineering I've got to make a arduino based car, I've added a whole bunch of features such as IR tracking, obstacle avoidance(proximity sensor), optical tracking(follow a black line), ...
1
vote
0answers
193 views

Why doesn't PWM work on arduino in this code?

I am trying to control a dc motor speed with PWM. When I test it with simple program like spin in one direction with set PWM value it works. If PWM>70 the motor will start spinning and max is 255. ...
1
vote
3answers
8k views

How to control 6 stepper motors with Arduino?

I would like to control 6 stepper motors (0.225A, 2 V) with Arduino. I was thinking to use motor drivers from Pololu website, for example DRV8834. Is it possible? Any suggestion for another type of ...
0
votes
1answer
185 views

What Driver IC to use for 40v 2amp DC motor?

I am using a 40v 2amp 3300rpm DC motor for my motor control project via arduino. But i don't know what driver ic to use for driving the motor.any help would be appreciated..
1
vote
1answer
120 views

Programming a motor with an RGB

Please see the comments section if confused. I am trying to turn a motor on and off once per second, and when the motor is on, the RGB turns green. When the motor is off, the RGB is red. Everything is ...
0
votes
2answers
505 views

Dagu Mini Driver Board Issues

I have the Dagu Mini Driver board which is based on the atmega8 and I uploaded the code here. It uploaded perfectly and I wired 4x AA pack to the battery terminals making sure to observe polarity. I ...
0
votes
1answer
1k views

How to connect this motor driver board to Arduino to drive bidirectional motor?

I am familiar with using PWM on Arduino and have done so with simple 3-pin interfaces: e.g. PWM, DIR (direction) and GND pins. Choose a direction with DIR, set speed with PWM in software (0 - 255), ...
1
vote
2answers
431 views

Making servo spin and able to detect angle

After researching other posts I can see how to make a servo spin continually and remove the ability to set to a specific angle. What I'm trying to do is make a small project that has a spinning '...
-1
votes
1answer
97 views

Why did my program stop working when I eject the serial cable like it did an auto reset?

Arduino Uno based on 328p micro-controller board only works while I am inserting the serial cable between the board and the computer and I can control the speed of my two motors and every thing is ...
1
vote
1answer
468 views

Is Roboteq motor driver compatible with Arduino?

I'm planning use Roboteq motor driver for 24V brushed DC motor but I can't be sure that it's true or wrong. You know, Roboteq controller is too expensive and I don't want to spend money in vain. Have ...
1
vote
2answers
4k views

Varying motor speed with the L293D

Im using a potentiometer to control the speed of two generic 6-8V DC motors. The potentiometer input is scaled from 0-1023 to 0-255, I then use the analogWrite() function to write this value to the ...
0
votes
1answer
4k views

How do I use 3 Hc-sr04 ultrasonic sensors to control 3 vibration dc motor?

This code we are using only one motor and one hc-sr04 ultrasonic sensor, the code is shown below: #define trigPin 7 #define echoPin 6 #define motorPin 5 void setup() { Serial.begin(9600);// to ...
1
vote
2answers
3k views

run two motors in turns without using delay()

I googled solutions and tried, but I still cannot get it working. I've tried BlinkwithoutDelay. I feel it is very confusing to track timing of two motors (i.e., step, direction, speed) for the ...
0
votes
2answers
313 views

How do I set the motor state to “HIGH” at the beginning of this sketch?

My intent with this sketch is to have motors run for one minute, then stand by for 18 minutes. In practice, the sketch starts the motor state at "low" for the OffTime interval, then goes to the OnTime ...
0
votes
1answer
86 views

Can I program the Arduino without having an actual board with the able to emulate a COM connection to the computer?

I have ordered my Arduino, but it is not going to arrive until 2 months, and I would like to be able to emulate a COM connection to the emulated Arduino. I am writing a program that listens on the com ...
0
votes
1answer
536 views

adding a dead band to my motor and gearbox

I have a motor and gearbox that has limits and a pot built in. I have some code what drives the motor one way to when it hits its limits takes a value and drives the other way and takes a value, then ...
0
votes
1answer
371 views

Controlling a sliding tray - beginners project

I have a small light metal platform about 30 cm square mounted on horizontal rails. It is well lubricated and slides easily from side to side. I would like to build a device to connect to the ...
-1
votes
1answer
713 views

Using L239D with a joystick

Im making a small, controllable toy car. Im using the L239D motor controller to drive 2 6V DC motors, which I intend to control with a joystick. Using the L239D state table (shown below), I can make ...
0
votes
1answer
112 views

Arduino Motor Shield

It seems that I can't get the DC Motor function to work while also having servos driven off the other ports :( #include "Arduino.h" #include <Servo.h> int pinI1=8;//define I1 interface int ...
0
votes
2answers
185 views

Arduino car on bluetooth remote appears to crash when motors started

I built a Arduino robot car which accepts instructions via bluetooth. The instructions are pretty simple, they tell the car to stop, go forward, reverse, turn left or turn right. When I have the car ...
1
vote
2answers
295 views

I would like to control 16 motors with a servo shield

Ok so I've used nicks code and have the code running once ok.... I the noticed however I had a fast 180 sweep and then it returned under control of code. I then noticed the comments wrt pulselen of ...
1
vote
1answer
82 views

Arduino UNO not working?

Recently I assembled my Shapeoko machine, we used Grbl shield with an Uno for the same. For 1-2 weeks everything worked perfectly then once when I tried to work the machine, the serial communication ...
0
votes
1answer
75 views

that no matter what the inputs are Motor1 always moves

int motor_forward1 = 7; int motor_reverse1 = 6; int motor_forward2 = 5; int motor_reverse2 = 4; int motor_forward3 = 3; int motor_reverse3 = 2; int sensor1 = A0; int sensor2 = A1; void setup() { ...
0
votes
0answers
825 views

Monster moto shield + Arduino +Pololu 12V, 29:1 Gear Motor Encoder hardware problem

Overflow enthusiasts! I am trying to build a balancing robot with two wheels, using the polulu gear motor as mentioned above. In order to have a strong motor driver,the monster moto shield is used in ...
1
vote
1answer
798 views

Servo motors won't work with motor controller

I have a motor controller controlling two motors, which works perfectly fine when I comment out the two servos in the below code. These two servos are not connected to the motor controller but simply ...
0
votes
2answers
535 views

Can PWM break a DC motor?

I want to know if controlling the speed of a DC motor with PWM could break (burn out the DC motor. Sorry my English isn't that good.
0
votes
1answer
47 views

reversing a micro motor by reversing two pins - one Source and one sink?

can I use this configuration of two pins to run a micro motor ,so I be able to change the polarity of the current (by the code itself-one time out pin1-high out pin2 - low , while next time one low ...
2
votes
2answers
123 views

Newbie need help to make a motor run for a laser scanner and some questions

I am trying to make a laser scanner consisting of a webcam and a line laser scanner. I have tried to use a manual scanning (by hand) and has worked, but would now like to consider automating the laser ...
0
votes
2answers
1k views

Digital Potentiometer and Motor Speed Controller

I'm trying to get a Chinese 20A DC Motor Speed Controller working with a MCP42100 Digital Potentiometer. The analogue potentiometer supplied was 100kOhm. I have programmed my arduino with the ...
0
votes
1answer
181 views

How many transistors are there in an H Bridge? [closed]

I've controlled a motor going one direction using only one transistor. With an H Bridge, I can make a motor go forward, backward and brake. Does an H Bridge have only three transistors inside it to ...
1
vote
1answer
47 views

Two motors in one set of pins/plugs

I have been putting together a small robot using an Arduino Motor Shield R3. The shield has two sockets for motors, however the wheel carriage I bought has four motors. I tried putting both right side ...
1
vote
1answer
828 views

How come people connect their arduinos to buzzers without any coil protection?

If you connect your arduino to a motor you use this schematic: However, when it comes to buzzers, which also have a coil, no one protects the circuit: What the hell is going on? Are these just ...
0
votes
1answer
2k views

Counting revolutions of a DC motor with a Photo Interrupter

I have a DC motor which is rated at 11 200 RPM. I would like to count the actual RPM (it seems to be maybe 1500 RPM from what I can tell manually.) I bought a Photo Interrupter, and have connected ...
0
votes
1answer
181 views

DIY Watering - Required components

I am looking as a first project after some simple project kits, to make a watering system for my indoor plants. I have seen a few projects on instructables, so I went to look for components. I am not ...
1
vote
0answers
1k views

How to reverse BLDC motor using programming arduino?

I bought ESC from here but it rotates motor in one direction only. Is there any program which will control direction of rotation clockwise or anticlockwise with same wire configuration.
0
votes
1answer
206 views

Powering a 6-12V motor using a lead acid 6V battery with 6Amps of current?

Hi I'm using a adafruit motor shield v2 and I need to power a DC motor 6-12V but I'm not sure if my battery will be okay for the shield. Will it burn the shield? I'm going to be using 6V so it should ...
0
votes
1answer
737 views

Help understanding how to drive Step motors with Arduino

I am building a 2-Axis gantry system to dispense some thermal paste on boards. I was given two stepper motors in order to do so along with a gantry already built that will arrive in two weeks. So ...
2
votes
2answers
376 views

How is the diode here effective?

I'm working on project 9 of the arduino starter-kit - the motorized pinwheel. Here is the schematic: The diode in question (and the only one here) is toward the bottom right of the breadboard. It is ...
0
votes
1answer
974 views

Controlling 2WD car chassis with PS3 controller

I'm having trouble with controlling my car with the PS3 joystick, and there hasn't been any example codes out there. I'm using; PS3USB library from USB_Host_shield_2.0 library Freetronics H Bridge ...
1
vote
0answers
1k views

Adafruit motor shield 1 and Arduino Pro Mini

Can any one tell me how to connect Adafruit motor shield v 1.0 with Arduino Pro Mini 5v 8 Mhz. Motor shield uses which pins as I want to replace my Arduino UNO to Pro Mini and need re-wiring. Tried it ...
-1
votes
1answer
343 views

Power source for Arduino uno, sparkfun usb shield and adafruit motor shield

I'm having trouble powering my boards altogether. Right now, I'm using 8x AA batteries to power everything. Running my arduino with one shield runs fine, but not with both shields stacked on top of my ...
0
votes
3answers
493 views

Stop at the end of a track

I would like to create a camera dolly for capturing timelapse movies. i.e. something like this: http://youtu.be/Qce1f6SKEMU Whats a reliable way to detect the end of the track and stop the stepper ...
0
votes
3answers
1k views

Hall sensor noise removal

I am using Arduino Duemilanove and a hall effect sensor to calculate the speed of a motor. When I used sensor out directly to Interrupt0, the rising edges of noise were also detected. So the speed ...
1
vote
1answer
1k views

DC Motor not behaving reliably

Using an Arduino Mega. I have a motor hooked up exactly like the picture below. Using a BC548B transistor, 1N4001 diode, 220 ohm resistor and a 9V battery. I'm driving the motor in code by using PWM ...
1
vote
0answers
1k views

DC Motor speed control by using pwm

I am using Arduino Uno, and MPU6050(3 axis imu sensors), not gate, and L298 dc motor drive. My algorithm is very easy. Receive an angle how the balancing robot is tilt. Decision speed of motors by ...
1
vote
2answers
1k views

Reading quadrature encoder

I am using an encoder motor for one of my projects and i was reading encoder values manually through Arduino. It was working fine when i turned it slowly, but whenever i would rotate it at some higher ...
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 ...