Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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
0
votes
4answers
966 views

Issue with If statement and boolean logic

I'm trying to control motor based on rain sensor and my own build anemometer. It should only controlling motor clockwise/CW for open the roof if there are no rain (indicated by value above 900) AND ...
0
votes
1answer
988 views

How to record steps a stepper motor takes and how to rotate it backward and forward with analog input?

I am trying to control a stepper motor's movements with a pressure sensor input (0 to 5 V digital). For example, if the input is 4 V then the stepper motor should move forward 4 steps. If the input is ...
0
votes
2answers
3k views

Dshot implementation on Arduino (ESC protocol)

Does anyone one know if it's possible to implement Dshot on Arduino? I want to interface the Arduino with ESCs (electric speed controllers). These ESCs use Dshot, (https://oscarliang.com/dshot/) a ...
0
votes
1answer
2k views

Stopping motor DC with 2 limit switches

I try to build an automatic roof with rain sensor input, when it's rain the roof then closed pulled by DC motor on the tracks and activate a buzzer. When it reach the end (limit switch pressed) then ...
1
vote
0answers
241 views

How can I connect a force sensitive resistor to a vibration motor via Arduino?

Please forgive me if my knowledge is limited--still very new to this! I'm currently working on my senior thesis for my Industrial Design program and I'm struggling to figure out the components and ...
0
votes
1answer
197 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 ...
0
votes
1answer
817 views

microstepping and pwm [closed]

As per definition: Micro stepping is a method of moving the stator plug of the stepper motor more smoothly than it is in the full or half step drive mode.The process of micro stepping helps in ...
1
vote
0answers
70 views

stepper motor always stops in a fixed position in each rotation [closed]

I am trying to run my stepper motor freely. but the stepper motor always stops in a same position in each rotation. but when i am rotating it a bit by my hand then it is rotating for one turn then ...
1
vote
1answer
986 views

Stepper motor not working in Arduino 101

I am trying to connect a stepper motor ( this model exactly https://create.arduino.cc/projecthub/trduunze/grove-starter-kit-for-arduino-stepper-motor-driver-66471d ) in an arduino 101 but it does not ...
4
votes
5answers
1k views

Is it possible to make normal pins act like ground pins?

So what exactly I am trying to do is control a motor and be able to turn it both ways without any extra parts. So if the hmp was on (the plus pole) and the hmm (the minus pole) acted like ground the ...
0
votes
2answers
55 views

I want to control a single DC motor with an Arduino. Why would I use an Arduino motor shield as opposed to an H-circuit and a MOSFET?

I'm new to electronics. I'm trying to build something that will involve controlling the direction of rotation of a DC motor. A lot of online resources seem to recommend using an Arduino motor shield. ...
1
vote
2answers
658 views

How to connect a 5V submersible motor to Node MCU?

I connected the D1,D2 pins of the the Node MCU to the positive and negative of a 5V submersible motor. I wrote the following code, its getting uploaded without any errors but the motor is not working. ...
0
votes
1answer
298 views

Wierd Issue with PWM pin

I'm trying to run two of my motors through PWM. Here's my code - #include <Servo.h> int Lm = 11; int Rm = 10; int incomingByte = 0; int pos = 0; Servo myservo; void setup() { pinMode(Rm, ...
0
votes
1answer
563 views

How do I measure speed and manipulate the speed based on distance covered?

I'm doing a project on arduino. I'm using a online simulator to design the circuit. I have a dc motor. How do we measure the rpm,speed at that rpm,distance covered by the motor in a given time. For ...
0
votes
2answers
2k views

Powering a DC motor with an external battery

I'm working on a project where i need to control a 6 volt motor with an Arduino. The motor that I'm using requires 6 volts so I'm using a 9 volt with a voltage divider to get those 6 volts. My problem ...
2
votes
2answers
5k views

Stepper Motor with Limit Switches

I have the code below which is my attempt to control a stepper motor direction that moves a carriage to the right and left. In addition there are limits at each end of the travel that when activated ...
1
vote
3answers
256 views

Sending information via USB/Serialport

Am I able to send instruction from my computer, from another compiler, via the Arduino USB port? To put this in context, I'm doing some vision processing on my computer, with Visual Studio, and I ...
1
vote
2answers
105 views

Can removing lines of code destroy a motor driver and make it catch fire?

I am making a pid line follower robot. So I was tinkering with code to optimize my line follower when i removed two lines of code unknowingly. As soon as I uploaded my code and started the line ...
0
votes
1answer
206 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 ...
2
votes
1answer
114 views

Makeblock Arduino keeps stopping from motor overpower protection [closed]

I got a makeblock Arduino. Sometimes when I make it go forward at full speed, all motors stop for 3 seconds and it beeps shortly. I think it is that the motors are a little hard to turn for a moment ...
2
votes
2answers
285 views

l293d is not able to drive two 300 rpm motors simultaneously [closed]

I am using l293d in a line follower but recently I am facing a problem. my l293d motor driver is not able to power 2 300 rpm motors simultaneously while with one of the motors at a time it works ...
1
vote
1answer
886 views

Connecting a 5v dc fan to ultrasonic sensor

I am currently doing a simple uni project where i want the distance read by an ultrasonic sensor to control the speed of a dc 5v fan. I have attached a schematic of how i think i can link the ...
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 ...
0
votes
2answers
5k views

Should I use motor driver or Motor driver shield?

I want to run 4 microgear motor for an RC car with Arduino. Should I use L293d motor driver/L298n motor driver/L293d motor driver shield?? I am using N20 microgear motor with following rating: 6 V, ...
2
votes
1answer
196 views

reverse 12v motor

I am working on an RC car, and I need to be able to reverse a 12v circuit that powers my main drive motor. I have a TIP102 transistor and a 5-30v relay for each motor terminal. I assumed that I could ...
0
votes
0answers
26 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
65 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 ...
0
votes
1answer
101 views

Do motors need to have capacitor even if being used with motor shield

I'm using a 12V DC geared motor with an Adafruit motor shield which is connected to Arduino. So, I want to know inspite of using the motor shield, do I need to add capacitors to the motor?
2
votes
1answer
51 views

Why is one part of my code being executed over the part before it?

The following code doesn't behave the way I would like it to. Inside the loop function im measuring the distance in front of the robot and if it is less than 15cm than the robot should move back and ...
0
votes
1answer
8k views

What are the unused pins in an Arduino L293D motor shield?

What are the unused pins in an Arduino L293D motor shield? I want to connect the shield using wires instead of directly mounting on top of the Arduino board.
2
votes
1answer
1k views

How to pull a pin low?

On the instructions for this motor driver, it says that motors can be put to sleep by "pulling a pin low". SLP - Logic Input. When pulled LOW, outputs are disabled and power consumption is ...
1
vote
2answers
2k views

Connect Multiple L293D Motor Controllers to Arduino

I would like to connect 3 L293D Motor controllers to an Arduino Uno with the hopes of powering 6 different dc motors. I was just wondering how to wire this being that one motor controller (which ...
5
votes
1answer
19k views

How to control a Nema 17 stepper motor with an arduino? (too much current / heat)

I am trying to control a Nema 17 motor with a L298n dual bridge and an Arduino Mega. My wiring is from this Instructable: http://www.instructables.com/id/Control-DC-and-stepper-motors-with-L298N-...
3
votes
1answer
53 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 ...
2
votes
1answer
783 views

Using N mosfet to switch ESC to BLDC phases [closed]

I have an ESC that powers 36v 3 phase BLDC motor. The ESC has limited functionality and can power motor only in one direction. If I switch manually two of the ESC to Motor phase connections, than the ...
0
votes
3answers
87 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 ...
0
votes
2answers
73 views

Which motors to choose?

I don't know if this is the right place to ask, but I'm an arduino newbie and I'm seeking some suggestions. For my Robotics subject at University, I'm going to build a robot that should be able to ...
0
votes
2answers
80 views

Swapping 5V and GND for a 2 wire motor

I have a 2-wire brushed DC motor in a servo housing which either pushes left or right (and "center" when unplugged). To push to one side I connect a wire to 5V and the other to GND, to push to the ...
1
vote
1answer
168 views

Ways to turn a knob with a stepper motor and an ATMEGA32u4

Hey all I am wondering what would be the best items to purchase for me to be able to turn this know (continuous) below: As I mentioned above, I would need the stepper motor to have a continuous ...
-2
votes
1answer
2k views

L298n - both outputs to one motor [closed]

how do I wire and drive 1 motor with the 2 outputs of the L298n motor driver module? (parallel the outputs)
1
vote
1answer
10k views

Control a motor with a button

Code: int motorPin = 9; // the pin the motor is connected to void setup() { pinMode(motorPin, OUTPUT); } void loop() { motorOnThenOff(); //motorAcceleration } void ...
1
vote
2answers
2k views

AC Motor speed control using SSR? [closed]

I want to control speed of an AC Motor using phase cutting.. Well, I already have zero cross detector and SSR but don't know how to program Arduino to phase cutting using SSR.. And to connect the ...
0
votes
1answer
3k views

Arduino + motor driver (L293D) power consumption

Please help me on this question. Original question : My chip consists of 1 arduino nano and 3 L293D motor driver. This chip is for controlling motors and other equipments. My question is about how ...
2
votes
2answers
123 views

Connect Two Arduino Uno's

Essentially I am looking to build a remote controlled car using dc motors and one arduino uno to be on the car to supply the power logic and i wanted to use another arduino to be the remote. I was ...
2
votes
1answer
451 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
274 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
62 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: ...
2
votes
1answer
196 views

Brownout with Arduino Nano

I'm making an RC car with the Arduino Nano. I'm using RF433 as wireless communication with 2 motors and L293D as the motor driver. I use 4 1.5V batteries to power the Arduin and another 6V battery ...
0
votes
1answer
704 views

Driving two stepper motors using one stepper motor driver

Using an Arduino Mega, I currently control two stepper motors that never operate at the same time and never will. I am using two EasyDriver stepper control boards with two separate power sources. I ...
1
vote
1answer
57 views

Carry out two consecutive tasks when a button is pressed

I'm building a project that has 2 motors. What I want to do is: When button is pressed (hold down through RF controller) then: Run motor A on pwm at 50 for 1 second Run motor B on pwm at 255 for 1 ...