Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [arduino-motor-shield]

An extension board for Arduino which provides functionality for controlling DC/stepper motors and other inductive loads (such as relays and solenoids).

0
votes
0answers
6 views

Arduino Mega 2560 and servo motor in Proteus

Can I get help to connect Arduino Mega 2560 and servo motor in Proteus 7.8 correctly because I tried this connection, in the image below, with sweep.ino.hex in the Arduino software examples but did ...
0
votes
0answers
30 views

Robot can't stop after joystick release

Used the plan from: https://www.instructables.com/id/Arduino-RC-Gamepad/ The motor doesn't stop when release the joystick, need help. Thanks. <pre> {#include <VirtualWire.h> //...
0
votes
1answer
28 views

Help with code for pushbutton connected to adafruit motorshield v2

can anybody assist me with a code? I am using arduino uno with adafruit v2 motor shield stacked on top. I am using a pushbutton and one DC motor and I want the state of the push button to change after ...
0
votes
0answers
24 views

L293D Motor Drive Shield For Arduino question

I have this shield for Arduino . The suppliers states that the driver is capable to move 2 unipolar stepper motors. https://www.sainsmart.com/collections/all-for-arduino/products/l293d-motor-drive-...
1
vote
0answers
16 views

Having trouble with motor shield running off external power source

I apologize if I don't immediately give important info, I'm very new to arduino's/circuity of any kind. I'll try to include as much info as possible. Some preface: I'm currently working on a project ...
0
votes
1answer
30 views

Code causing Servo motor not to work!

My sketch is compiling and loading, but when the program runs, the Servo motor does not work. The buttons work, the LED light works, Piezo buzzer plays the melody, the Stepper motor works but not ...
0
votes
2answers
57 views

I cannot compile the Arduino sketch when I remove the void loop function?

#include <AFMotor.h>  AF_DCMotor motor(2,MOTOR12_64KHZ); void movefor (); void moveback(); void setup() { Serial.begin(9600); Serial.println("Motor test!");` `motor....
0
votes
1answer
90 views

Can I control 4 DC Brushless motors with arduino uno and Adafruit motor shield? [duplicate]

I need to control 4 DC brushless motors. I have no experience with arduino or coding. After some research the cleanest setup seems to be using the Adafruit motor shield, however the motors I'm using ...
-1
votes
3answers
62 views

NEED Help With Servo motor

I have just bought a MG90s tower pro servo for my school project and there is a problem. As soon as I connect my servo to the cnc shield or directly arduino, the whole arduino board turns off. I ...
1
vote
1answer
39 views

Dynamically create functions for AccelStepper that use Adafrut_StepperMotor.oneStep methods?

In the Adafruit_MotorShieldV2Library>Accel_MultiStepper example, AccelSteppers are initialized using the following static forwardstep1 and backwardstep1: #include <Wire.h> #include <...
0
votes
0answers
35 views

Why is Wire.endTransmission(true) returning 10?

Question: The follow code is printing 10 over and over again (with spaces in between). I have an I2C device connected at 0x60, and nothing connected at 0x61. I'm confused by this because the Wire....
0
votes
1answer
37 views

Programming a switching AC current?

I tried using this code to output AC power from one H-bridge and then another, switching every second, but when I connected a motor to it, it just seemed to output direct current. This is the code I ...
0
votes
1answer
130 views

How to Connect Dc motor with encoder (pololou) with motor shield and Arduino Mega 2560?

I tried to search a bout how to connect plolou motor with encoder to arduino mega and the motor control shield as in those pics if any one knows how to connect those to each other please tell me
0
votes
1answer
78 views

Can't make ultrasonic sensor work with motor controller

I just started using Arduino Uno, I can't get the ultrasonic to work ,with motor controller board, the output value is always zero. Just to make sure I'm talking about the correct stuff: I used this ...
0
votes
1answer
318 views

Motor not working when connected to motor driver shield?

My code is getting uploaded to arduino without problem but still my motor is not moving when i connect it to the motor driver shield. I am supplying 6V battery to the shield which is connected to dc ...
0
votes
1answer
117 views

How can I discover attached motor shields in code? [closed]

I'm using the Motor Shield v2 and I'm looking for a way to automatically discover the addresses of attached motor shields.
0
votes
2answers
82 views

Choosing a proper power source for for basic RC car with 4 motors [closed]

Help me to choose a power source for the below project: 4x DC Motors (3V~6V DC each with ~170mA), 1x Micro Servo Motor (4.8V~6V), 1x Ultrasonic sensor 1x Bluetooth sensor It is basically an RC car. ...
1
vote
1answer
2k views

Problem for control speed of a DC motor with a L298N

(Not native english speaker here, feel free to edit my sentences) I try to control the speed of a DC motor with a L298N shield but it doesn't work very well. Here is my scheme : The power comes ...
0
votes
0answers
397 views

Compiling error: undefinded reference to pinMode and digitalWrite

I'm using some downloaded code to produce an obstacle-avoiding car: /* Author: Muhammed Azhar visit - robotechmaker.com */ #include <AFMotor.h> const int trigPin = 2; // define the pins of ...
2
votes
3answers
479 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
82 views

Problem with motor driver shield

I have recently bought a L293D shield and 2 BO motors. Whenever I connect the motors to the shield it makes a beeping noise. I searched online and found that I need to change PWM frequency but I know ...
0
votes
1answer
158 views

One port of motor shield doesn't operating stepper motor

One port of my motor shield (i.e M1 & M2) is not driving the stepper motor as it should.stepper motor jitters at its position. While the other port (M3 & M4) works fine but it makes stepper ...
0
votes
1answer
424 views

Where to connect an external power source for an Arduino motor driver shield to?

I have a BYJ48 stepper motor and an ULN2003A motor driver shield shield. In many tutorials I read: do not to draw current from the 5V on the Arduino rail, but use an external power source, since ...
1
vote
0answers
151 views

Arduino Motor Shield not working properly

I am currently making a project which includes a car controlled by the Arduino Motor Shield. I have written a code to control the motor shield via Bluetooth. However, the code doesn't seem to work. I ...
1
vote
2answers
697 views

Is it possible to increase the voltage on 3.3v output to 5v on an ESP board to power a DC motor? [closed]

I am trying to use an ESP32s controller connected to an RC car DC motor. I found that when using my Arduino this is easily accomplished, and I can see that my output pin produces 5v for the motor to ...
2
votes
1answer
68 views

Attempts with Sainsmart Motor Shield Not Working

I received the sainsmart motor controller a few days ago, and am now having trouble testing it. The Arduino I am using is an Arduino Mega 2560. I thought it was an I2C communication issue but that ...
-3
votes
1answer
79 views

Is there a stepper dirver array for nema 17 and 14 at least with 6 drivers? [closed]

I want to build a 6 axis robot arm. Probably i will use Nema 17 and 14 stepper motors with 2A-3A. For these motor types i need stepper drivers. I searched for driver arrays but can not find a product. ...
0
votes
1answer
69 views

Can I use a ThunderBorg is a dual motor controller on an Arduino UNO R3

I am new to Arduino and Electronics and am thinking of making a 6 wheel drive all terrain platform similar to the MonsterBorg pi, but I want to use an Arduino instead of a Raspberry pi to control the ...
1
vote
1answer
132 views

Arduino and MatLab with OWI Robotic Arm Edge — Issue with I2C

I'm working on a project where I want to be able to program a robotic arm in Arduino using MatLab. I've used the Arduino Uno with an Adafruit Motor Shield V2.3 and the OWI Robotic Arm Edge kit. The ...
0
votes
3answers
418 views

Arduino UNO dead with CNC shield

I have an Arduino UNO with a CNC shield. The Arduino is almost certainly a clone. I installed GRBL with no issue and I have assembled a jig with CD-ROM motors. My first attempt to control this with ...
0
votes
1answer
642 views

Does 12v 5A power supply is okay to operate motor shield external power

I am new to arduino. Recently purchased motor shield V1.0 which have two l293 and can run 4 DC motors simultaneously. But here the problem comes: when I purchased the shield I was not aware that it ...
0
votes
1answer
105 views

Is the Arduino Due compatible with a Dual VNH5019 Motor Driver Shield?

I'm planning on buying an Arduino Due and there is a shield I would like to attach to it. I have seen a lot of things saying that some shields are not compatible with Arduino Due... I was wondering if ...
1
vote
1answer
26 views

Sensor for turning rail direction [closed]

I am trying to control an actuator carrying a carriage made from stepper motor. My problem is that after the carriage reach certain height, I want it to delay for several minutes and change direction ...
0
votes
1answer
81 views

How can I know if I can stack some shield on another shield?

Yesterday I tried to stack a motor shield on a servo motor shield already stacked on my Arduino Uno. But I realized that I have some problem when I try to use both of them. It seems like some energy ...
0
votes
1answer
132 views

Which component is described as a “jumper” (NOT jumper wire) when working with a motor shield?

In this video I'm watching then instructor talks about using "jumpers". He's got a motor controller shield and at first he says that "during the making of this video we only had 1 jumper, thus only ...
2
votes
0answers
148 views

Motor shield code [closed]

I am working on a project using an Arduino Uno and a motor driver shield to move a car with an IRremote. But the vehicle is only moving forward and backward. I want it to move left and right. Kindly ...
0
votes
1answer
185 views

Communicating between two arduino terminal using Xbee

I have 2 Arduinos, mounted with Xbee Shield and Xbee S1 module on each. One arduino is mounted on car chassis while another is connected with PC. Our AIM is to send signal from the arduino connected ...
-1
votes
2answers
103 views

Arduino MotorShield code running but not motors

I have a motor shield V2 on my Arduino, i compile the codes just fine and i'm trying to just run the example dc motor test. The code compiles the serial is printing out the "tick tock ...." but the ...
0
votes
0answers
25 views

How do I use this motor shield?

I am stuck with this motor shield. All I have is the shield. No documentation available online, nothing. I need to run two motors off this thing and I only have a few hours to figure out how this ...
0
votes
1answer
64 views

Using Arduino and Motor Shield

I am a beginner in Arduino.I want to connect 2 motors to Arduino. Do I require a motor shield?And if yes please tell why? Also can i use an amplifier to increase the voltage for the motors? And one ...
1
vote
0answers
401 views

Arduino motor driver 3.7v

I am planning to build my own micro quadcopter, so I bought an Arduino 101 and 3.7v micro DC motor. So the next step is finding a motor driver that can control these four motors, using PWM pins on ...
0
votes
1answer
513 views

How to connect receiver in an Arduino with a motor shield?

I have an Adafruit motor shield v1 stacked on an Arduino Uno. I want to add a 433Mhz receiver to the Uno so I can control it wirelessly. However as you know the motor shield completely covers the ...
3
votes
1answer
49 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 ...
0
votes
3answers
84 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 ...
3
votes
1answer
403 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
236 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
59 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: ...
0
votes
2answers
108 views

Motor shields in arduino

what is a servo motor shield in arduino? what is the key purpose for using it? I'm newbie in arduino and I've seen some briefings in websites which I couldn't understand, can somebody elaborate it to ...
1
vote
1answer
353 views

Arduino Robot won't move

I am building a robot for a school project. I use an Arduino Uno, 2 dc motor's and an Ultra Sonic range measurement module. I want the robot to be autonomous, he has to be able to move around on his ...
1
vote
1answer
278 views

New Arduino Motor Shield Short Circuiting my board?

I just got this today, plugged it in my arduino, and the arduino light starts dimming until you cannot see it any more over the course of 5 seconds. The Computer disconnects the arduino when the light ...