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
1answer
74 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
175 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
0answers
18 views

Motor not working with L293d shield

My code uploads to Arduino but the motor is not moving when I connect it to the L293d motor driver shield. I am supplying 12V 2A to the shield through an adapter, connected to dc motor at M2. tThis is ...
0
votes
1answer
1k 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
352 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
vote
2answers
2k views

Motor Shield and HC-06 Bluetooth Module competing for pins

So my problem is this, I have an Arduino Uno with an Adafruit Motor Shield (1.0) and an HC-06 Bluetooth Module and I want to use them at the same time, the problem is that the Motor Shield uses all ...
0
votes
1answer
324 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
30 views

Unable to use ir receiver and motor shield together

#include <IRremote.h> #include <AFMotor.h> AF_DCMotor motor(1); int RECV_PIN = 14;//The definition of the infrared receiver pin 11 IRrecv irrecv(RECV_PIN); decode_results results; void ...
0
votes
0answers
16 views

Ultrasonic Sensor and Motor Driver Shield [duplicate]

im new to arduino and am making an arduino car. the motor driver shield covers the ports (am connecting an ultrasonic sensor) and i know that we can connect it to the 'holes' on the motor driver ...
0
votes
0answers
40 views

motor driver shield covering ports for ultrasonic sensor

im new to arduino and am making an arduino car. the motor driver shield covers the ports (am connecting an ultrasonic sensor) and i know that we can connect it to the 'holes' on the motor driver ...
3
votes
2answers
864 views

Pause between switching motor direction

I'm new both to this forum and to Arduino. My robot is comprised of Arduino Uno with Arduino Motor Shield, 12V DC gear motor, and two limit switches. The robot supposed to move endlessly on rails ...
0
votes
1answer
31 views

Motor does not work for a specific case when programming with L293D motor driver shield

I tried to make a car that moves using a 4x4 keypad. Pressing "12" unlocks the car and sets the motors to move forward. After that, if I press 4, the speed of the left motor is reduced to ...
0
votes
0answers
10 views

Adafruit v2.3 Motor Shield Initialization Failure

I would appreciate any help solving this as I have spent several hours trying to debug. My code seems to stop when I get to the initialization of the motor shield. motorShield.begin(); #include <...
0
votes
1answer
67 views

Arduino Obstacle Avoiding Shield controlor motor L293D

I am a beginner with Arduino . I wanted to make a Arduino obstacle avoiding so I commanded last week an L293D Shield Motor Driver and I don't know if what I receive is the good ithem . First picture ...
0
votes
1answer
27 views

How does the motor shield determines how much voltage to supply to a motor?

Can i connect 6v DC motor and 12v DC motor, or 6v DC and 12V stepper to adafruit motor shield v1, and an external 12v power supply? also, how does it determine how much voltage needs to be supplied ...
-1
votes
1answer
39 views

Vary the Speed of Motor

I am trying to control the speed of motor through VFD using 4-20mA signal. I generate the 4-20mA signal using Arduino.I use low pas filter to obtain the voltages from Arduino PWM pins as shown in the ...
0
votes
1answer
45 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
0answers
31 views

Need help Coding Adafruit v1 motor shield for 3 DC motors [duplicate]

My project is that I am building an animated (singing, dancing, head turning, and arm waving) snowman. I have 3 DC motors for individual functions that are to be run via Arduino Adafruit V1 card ...
-2
votes
1answer
101 views

Adafruit motor shield v1 Need help Running 3 DC motors simultaneously?

My project is that I am building an animated (singing, dancing, head turning, and arm waving) snowman. I have 3 DC motors for individual functions that are to be run via Arduino Adafruit V1 card ...
0
votes
0answers
19 views

Will L293D arduino shield lose functionality if I connect it with jumpers instead of mounting on arduino?

I'm new to arduino and have bought a L293D motor driver shield which have no heads on the pins. I looked at the pinout and it seems that shield does not use any of the pins "by default". So will it ...
0
votes
2answers
70 views

Motor for a winch (with controller and external power supply)

I'm in need of a motor or continuous servo to power a winch. The motor must be continuous* and reversible, but it does not need to be fast, precise, nor bear a load when powered off. It just needs to ...
0
votes
0answers
31 views

Motor driver shield l239D should be giving enough power but it doesn't

I am doing a line follower robot using motor driver shield l239D stacked with an Arduino uno to run 2 DC motors and two infrared sensors. I am supplying 12V to the motor driver shield trough three ...
-2
votes
2answers
71 views

Trouble making my 12v dc motors run on my Mega 2560 Arduino [closed]

Can someone review my code to see if the code is the problem? If nothing is wrong with the code, can someone look at my image and tell me if I set up the shield and the motors wrong and see if that's ...
0
votes
1answer
101 views

Im having another problem with my code the error is "redefinition of 'AF_DCMotor motor'? [duplicate]

Heres the code #include <AFMotor.h> AF_DCMotor motor(1, MOTOR12_8KHZ); AF_DCMotor motor(2, MOTOR12_8KHZ); AF_DCMotor motor(3, MOTOR34_1KHZ); void setup() { Serial.begin(9600); Serial....
0
votes
0answers
32 views

I'm coding 3 DC Motors to a Mega2560 Arduino (With motor sheild) and an error popped up saying DC_Motor.h:NO file or dictionary,even tho its correct? [duplicate]

heres my code reduced to minimum */ #include <DC_Motor.h> void setup() { } void loop() { } heres the error- /tmp/982713958/Animated_snowman_M1_M2_Arduino/Animated_snowman_M1_M2_Arduino.ino:...
0
votes
1answer
75 views

I have a question,an error occured in my code saying TIMSK was not declared in the scope(There are no errors)

#include <SmartInventor.h> void setup() { SmartInventor.DCMotorUse(); } void loop() { // M1, M2, M3 // CW, CCW, STOP // 0-100 // 0-360 SmartInventor.DCMotor(M1, CW, 10); delay(...
0
votes
1answer
189 views

Problem with PWM pins on Arduino uno [duplicate]

I am working on an Arduino Uno Project of a car with two motors. The motor driver board is an L9110 H-Bridge. Here is how everything is connected: And here is the code I am trying to run: //Define ...
0
votes
0answers
42 views

Motors working with Ultrasonic Sensor and Servo as expected?

So, I tried making an Arduino Project(Controlling Motors by Remote and Ultrasonic Sensor would activate Servo when the distance is less than 50cm). I am trying to build a project, A remote controlled ...
0
votes
0answers
100 views

Error to work in reverse VNH2SP30

ım building a rover and ı using Johson 12v Dc motor and VNH2SP30. My code and motor works perfectly but my motor driver works only one way. It cant go to reverse and motor starts buzzing when it tries ...
0
votes
3answers
55 views

motor shield directly to PC? WITHOUT ARDUINO!

Is there a way to connect and control motor shield board WITHOUT Arduino at all. can i connect it directly to my PC ? i'm getting confused since i red lot of topics that people use existing pins on ...
-1
votes
1answer
241 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 ...
0
votes
1answer
566 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
-1
votes
1answer
143 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
2answers
154 views

Adafruit motorshield v2.3 not working

I want to connect my adafruit motor shield v2.3 to a touch board from bare conductive so that the motor turns when one of the electrodes is touched. I've tested the touch part and that isn't a ...
-1
votes
1answer
132 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, ...
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 ...
-1
votes
1answer
74 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
1answer
83 views

can't power up arduino from dc jack

Yesterday I was working on Arduino based bluetooth car. I was using adafruit motor shield v1. Arduino and shield were on same power supply(11v li-ion cell battery). Every thing was fine. I decided to ...
1
vote
1answer
85 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 <...
3
votes
1answer
15k views

How to make servo rotate for angle bigger than 180°

Connected servo motor (180°) to Arduino Uno R3. Currently I am using a servo motor which have rotation angle specified as 180°, but I have a requirement to rotate to certain angles greater that 180°. ...
1
vote
0answers
46 views

Coding for Seeed Arduino motor shield

I acquired a Seeed studio Arduino motor shield V.2 and wanted to start using it. The problem is that there is like no good example code. The library for the shield on the seeed website has one example ...
0
votes
1answer
53 views

How to Work Two Linear Actuator Synchronously by Using Arduino and VNH5019 Motor Driver?

I am newbie and I want to build a project that contains two linear actuator that move synchronously. Two of them will lift up and down at same time. I use arduino mega and VNH5019 motor driver. I have ...
1
vote
1answer
63 views

Powering Motor shield and Arduino Mega Separately

I'm trying to build a fire fighting robot, that uses 2 BO DC motors, 2 Servos - MG996R and SG90. For them I'm using Motor Shield v1 of Adafruit's make that uses 2 L293D IC's and a 74HC595 shift ...
0
votes
2answers
181 views

Is My Motor Shield Broken?

So I am trying to work on a mini battle bot project. However, it has been a while since I have worked with my Arduino electronics. So I am going through and learning how to do each thing before ...
0
votes
2answers
62 views

Arduino powered from motor shield and USB issue

I am using an Arduino (Elegoo) Mega with Motor shield to drive a digital train set. The Motor shield is powered from a 12v 1.1 amp dc power supply and I have the Arduino plugged into my laptop via USB....
1
vote
0answers
330 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
247 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 ...
1
vote
0answers
601 views

How can I reduce speed of motor with motor shield?

I'm using Arduino and Adafruit to control 4 motors for a little robot. I have this code example: #include <AFMotor.h> AF_DCMotor motor1(1, MOTOR12_1KHZ); // create motor #2, 64KHz pwm ...
1
vote
0answers
138 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
51 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,...