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).

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

Why is my quadrature encoder writing as irregular intervals in serial monitor after working fine?

I'll try to keep this brief and add code/output at the bottom. I am using an Arduino Uno with a Pololu motor shield and two Pololu motors. I am driving speed control using the encoders at the ends of ...
0
votes
1answer
10 views

Using an L298N driver together with servo motors on the same arduino

I'm using an L298N driver (powered by a 12V, 1.5A adapter) on a MEGA Sensor Shield (powered by a USB cable). Everything works fine and I can control the direction and the speed of the DC motor, ...
0
votes
0answers
36 views

Unable to control servo with decoupling capacitor and external power supply, but motor shield works

I'm a hobbyist trying to up my arduino and electronics knowledge. I can successfully control a hobby servo using an motor driver shield (https://learn.adafruit.com/adafruit-motor-shield/overview) but ...
0
votes
1answer
24 views

Is there an Arduino motor shield library?

I have an old motor shield but can see the revision 3 is still being sold: https://store.arduino.cc/arduino-motor-shield-rev3 When I follow the link for "Getting Started section" the page lists a lot ...
0
votes
0answers
29 views

Servo not moving

I have connected my servomotor (MG996R) to my L293D motor shield, which is connected to an Arduino Uno R3 Board. I use 4x AA 1.2V NiMH batteries to power the shield, and a regular 9V battery to power ...
0
votes
0answers
25 views

Need Help Understanding PS2X Library

I bought an Arduino Tank recently that uses the PS2 controller and receiver. It comes with the PS2X_lib Library and I couldn't get a good grasp of what some of the functions do. Question: In ...
0
votes
0answers
29 views

i2C master/slave Arduino uno Programming to run 2 motors at once off separate boards [duplicate]

I am attempting to run a master/slave receiver arduino using two arduino uno's. I'm synchronizing both Arduino to control 1 dc motor and 1 stepper motor at once which each of the Arduino UNO board ...
0
votes
0answers
33 views

Using Arduino Motor Shield

I'm looking to create a blind controller and have set up the hardware and software as I think it should be. I had the software working fine using an IC motor driver, but as I am no great at soldering,...
0
votes
1answer
43 views

What is the maximum number of sensors that can be operated on a single Aurdino unit

I currently have an Aurdiuno uno and a motor driver shield: (http://www.hobbytronics.co.uk/arduino-motor-shield). Now, I would like to run the following mechatronic devices: 3 bi-direction motors, 1 ...
0
votes
0answers
22 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
32 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
43 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
33 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
21 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
38 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
66 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
168 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
78 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
52 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
60 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
45 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
203 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
89 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
535 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
118 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
131 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
488 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
573 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
108 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
182 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
573 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
161 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
789 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
75 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 ...
-2
votes
1answer
82 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
75 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
144 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
486 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
748 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
114 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
88 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
165 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
169 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
197 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
123 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
442 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 ...