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 ...
2
votes
3answers
1k views

Power small hobby motor using Vin pin on Arduino and 9V battery, safe?

I want to power a small motor with a 9V battery and control it with PWM using an Arduino Leonardo. I know I can power the motor separately, but this introduces the problem of needing a battery to ...
2
votes
3answers
763 views

Motor shield leaves no pins accessible

I just bought a motor shield for my UNO, in the pic below: Plugging it into the uno leaves no pins accessible on the board. I’d like to use it to build a robot car, but there’s nowhere to plug in the ...
0
votes
1answer
2k views

Problem : Trigger limit switch to stop DC motor

I want to make a project about automatic gate and garage door via Android app and connected by HC-05 bluetooth module. Each of the gate and garage door have two limit switches(located at each end of ...
0
votes
1answer
165 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 ...
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,...
0
votes
1answer
92 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 (...
0
votes
2answers
63 views

Easy bipolar motor control?

Is here some easy way to control bipolar motor without using any other external devices, drivers or shields? I have small motor from CD-ROM so I expect it's low voltage. By control I mean just ...
10
votes
1answer
2k views

How to design and debug a custom I2C master-slave system?

How to proceed, when in need of a custom I2C master-slave system? What are the design criteria to apply? What are the debugging tools one can use to troubleshoot problems?
11
votes
3answers
2k views

What is the advantage of using a motor shield if I want to use a stepper motor?

I know that it is possible to connect a stepper motor directly to an arduino (as displayed here). I know that another option is to use a motor shield (for example the Arduino Motor Shield or the ...
3
votes
2answers
967 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: ...
2
votes
1answer
507 views

Controlling ESC with Arduino

I want to control these motors: hexTronik DT750 Brushless Outrunner 750kv with this battery: Turnigy 2200mAh 3S 25C Lipo Pack and these ESCs: TURNIGY Plush 18amp Speed Controller. I am new to this ...
-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 ...
5
votes
2answers
3k views

How do I (easily) power a 5 V 3-pin fan?

I have a 5 V 3-pin fan. I want to be able to: power it from an Arduino Uno or a Seeeduino Lotus board, and, ideally; be able to change its speed. Most resources I can find on the web explain ...
4
votes
2answers
1k views

How can I connect the Tamiya double gearbox to Arduino Uno?

I'm working on building my first robot. this is my first foray into DIY electronics. I already have an Arduino Uno, and I have ordered the Tamiya double gearbox here. My goal is to control the gearbox ...
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 ...
2
votes
2answers
152 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 ...
2
votes
1answer
454 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 ...
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. ...
1
vote
1answer
803 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
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) ...
0
votes
1answer
268 views

Making an H-bridge with transistors [closed]

I am trying to make an H-bridge with two NPN and two PNP transistors to drive a motor which works fine on the 5 V Arduino. I have a schematic in the picture. When I use a simple code to have pin 9 ...
0
votes
1answer
278 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 ...
0
votes
2answers
543 views

Using a L2938D Motor Driver Module. (Not IC, Module)

I have been trying to use my newly bought L293d Motor Driver Module to run motors(a single motor in this test case, simple 5V toy motor) from my Arduino UNO. Thing is, this is an entire module, not ...