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
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 ...
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 ...
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
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
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
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
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 ...
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 ...
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 ...
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
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....
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 ...
-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, ...
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
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,...
0
votes
1answer
96 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 ...
1
vote
0answers
150 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
40 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> //...
-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
0answers
102 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-...
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 ...
-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
2answers
259 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
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
votes
3answers
106 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
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 <...
0
votes
0answers
265 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
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
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
0
votes
1answer
213 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
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
121 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.