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
-1
votes
1answer
23 views

Running a motor for a 3 seconds continuously with and without interrupt

I have interfaced a dc motor and IR sensor to my nano. The DC motor is supposed to run only if the IR sensor detects an obstacle. Now, I'm trying to get the motor to turn off if continuously ...
0
votes
2answers
38 views

Why can't I use 3V output of arduino pro mini?

I have an Arduino pro mini and I tested digital write of an pin and it is 3.2V and then I connected it to a 3V motor, but when I connected the motor to it, The voltage drops under 0.2 Volt, Can any ...
0
votes
0answers
20 views

Four legged robot [closed]

My team has to make a four-legged robot as a part of our Robotics project. I've been assigned the electronics part. I've thought about using some Arduinos, motors and sensors. Due to COVID-19, I'm ...
0
votes
0answers
15 views

4-20mA output circuit from arduino [duplicate]

I'm pretty clueless about electronics so everything has to be explained in simple terms to me. I have an Arduino with a program which provides a value via the Analog output, so that is anything from ...
0
votes
1answer
41 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
23 views

How to power 6 servo motors using battery to create a robotic arm?

I am trying to create a robotic arm. The problem is that I could not run all 6 servo motors -3 MG966r servo motors and 3 MG90S servo motors - simultaneously, using 12V and 3A AC to DC adaptor. Last ...
0
votes
1answer
76 views

My Arduino smokes every time I connect an AC/DC wall adapter to it. Can someone help me to fix it?

I copied the schematic below and when I ran the code from my laptop, it worked well but every time I unplug it to my laptop and connect an ac dc wall adapter, my Arduino smokes. Why does it smoke and ...
0
votes
0answers
26 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
93 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
1answer
128 views

Trying to control DC motor speed with PID

i'm trying to control a DC motor with PID. I have already made a code where i control the motor with an ultrasonic sensor (for distance) but now i need to run the motor at a given RPM (the Output). I ...
1
vote
1answer
19 views

TLE9879 BLDC shield won't communicate

I just got the TLE9879 BLDC shield, which I connected to an Arduino Leonardo. Compiling the example sketch (bldc_shield_blinky_test) went fine, however, upon flashing it to the board the LED on the ...
0
votes
2answers
88 views

How to toggle LED and motor on button press?

we want to have a LED turn on with the press of a button, and become brigther and brighter as times go by (whithin a defined time frame), and when it reaches maximum brightness to turn off for a ...
0
votes
1answer
120 views

How To Stop Linear Actuator?

I wrote a code but the motor does not stop, it keeps moving can anyone send to a code that can I stop the motor after my code that shows bellow? const int forwards = 7; const int backwards = 6;//...
0
votes
1answer
33 views

How to Control 2-wire Rotary-Gear Linear Actuator

Any ideas how to control a 2-wire DC 5V 10mm Stroke Mini Linear Actuator based Rotary Gear Motor? Most linear actuators (aside from solenoids) are controlled via 3-4 wires. Do I need a separate motor ...
0
votes
1answer
683 views

2 Motor Robot Control with RC Radio

I am making a robot for a local robotics competition. One main function I need to do is move it forward, backward, right, left. Just like an RC car. I have programmed it to do that but it seems ...
4
votes
1answer
1k views

Leonardo-based tachometer?

I'm new here. I'm not a native speaker, so pardon my English. I just received my Arduino Leonardo today. I tried some basic calculations and stuff like blinking and LCD interfacing. Its interesting. ...
0
votes
1answer
96 views

Why are my motors attached to an Arduino MEGA not running?

I verified my code and uploaded it to the board and that was successful. Info: - Using Mega 2560 Arduino Board with Adafruit V1 - 3 DC 12 volt motors - on HP computer Here is my code: #...
0
votes
1answer
1k views

Controlling a servo motor with a touch sensor

I want to modify my code to move a servo motor only for the duration of time that the sensor is touched and stop moving immediately when the sensor is no longer touched. The code I have moves the ...
0
votes
1answer
114 views

Arduino remote-controlled car stops after a few seconds

I am making a remotely controlled car for a project at Uni. The car is made from an Arduino Uno, a 2 motor driver and a Bluetooth transceiver. I have written some code for it, but it randomly stops ...
0
votes
0answers
23 views

Weird behavior when 2 functions are trying(?) to run at the same time

So I just finished my weak project which is a remote controlled car. My problem is that when I press the button for going reverse (as an example) while the opposite action is currently in progress, ...
-2
votes
2answers
68 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
0answers
30 views

Potentiometer motor system is not working

I am setting up a potentiometer system that includes a motor that is supposed to spin with the potentiometer changing the speed of the spin and a button to reverse it. I checked the coding and it is ...
0
votes
1answer
36 views

ESP01 to DC Motor powered via Battery with Power Regulator

Hi I'm wanting to control a dc motor through esp-01 and to have it powered by batteries. To keep my esp-01 safe, I have found the esp-01 adapter to regulate voltage. I am wondering if anyone could ...
0
votes
1answer
36 views

DC Motor doesn't turn and a beep sound is made, also there is a burning smell

I was trying to drive a single dc motor with L293D Shield and Arduino Uno #include <AFMotor.h> #include <SoftwareSerial.h> AF_DCMotor motorLeft(3); AF_DCMotor motorRight(2); unsigned ...
0
votes
1answer
98 views

ESP12E motorshield analogWrite issue when powering DC motor

I am relatively new to adruino and this whole space. I am currently trying to power a DC motor using an ESP12E motor shield and an ESP8266 Module Motor Shield - https://www.amazon.com/gp/product/...
1
vote
0answers
30 views

L293D to change the direction current and amplify it - Temperature-Stabilizer

I have a question about my project. I'm going to make a temperature-stabilizer. To make this, I think I should use a TEC with a H-bridge and a LM35. First of all, I tried to make a H-bridge by myself, ...
0
votes
1answer
31 views

expected primary-expression before ',' token …problem [closed]

this the problem---expected primary-expression before ',' token #define motor void setup() { pinMode(8,OUTPUT); } void loop() { digitalWrite(motor,HIGH); // put your main code here, to run ...
0
votes
1answer
119 views

Are my stepper motors being burnt out? What is the issue here?

I am building a mini-cnc laser engraver as shown in this intructable and this youtube video. I have built the circuit (minus the jst connector and two male pins at the top left of the board) and have ...
0
votes
1answer
70 views

ESP8266-01 Resetting when DC motor runs

DC motor: 3-6v Servo sg90: 3-7.2v Esp 8266 01: 3.3v I have 2 Arduino Uno both has their own ac-dc power adapter. Lets say, 1st Arduino is Ard1 and 2nd is Ard2. The Ard1 communicates to a web ...
0
votes
1answer
359 views

Control DC Motor with Arduino Uno WiFi Rev2 Html Slider Code

I would like to control my dc motor using the Arduino Uno WiFi Rev2 using an html range slider. Now I can control the motors speed and direction using push buttons just fine. My code is posted below ...
1
vote
1answer
166 views

Motors triggering Interrupt

I am using a 4wd robotic car to measure straight distances. I have attached two encoders on the front two wheels to measure the distance and I am using the back two wheels to adjust the car and keep ...
0
votes
0answers
28 views

Motors would make the car go extreme left instead of forward (Self Driving car)

This is my very first day in the community, please bear me until I make myself comfortable here. Coming to my question, I'm making a self Driving car. My car instead of moving forward it moves on the ...
0
votes
0answers
41 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
11 views

I need to connect two motors and a sensor, I have each individual code but can't connect them together. Can anyone help? [duplicate]

I've got the wiring complete and have all the codes for each individual part. When I try adding them together it doesn't work and get a bunch of errors, I also want the sensor to give out true/false ...
0
votes
1answer
36 views

Moving an object in an area [closed]

I am planning to build a little game and I would need to move a small magnet inside a rectangular area. Ideally I would be able to control movement arbitrarily e.g. using a joystick. I am trying to ...
0
votes
1answer
36 views

Servo Program Questions

Hi programming in arduino, I am trying to get a nested for loop inside a for loop with industrial servo which used PUL +- DIR+- (bought motor off amazon). My goal is to get the puls delay to increase....
0
votes
1answer
53 views

How can I make a Parallax Servomotor move a water tap correctly and prevent from vibrations?

I am using Arduino Mega 2560 I have built an structure with plastic 3D pieces to move this water tap.: I am using the "Servomotor Parallax Inc 140 mA, 4 6 V" to rotate the tap: Some more images to ...
0
votes
2answers
25 views

How to stop program while Servo is rotating

If I code like this: motor.write(0); Serial.println("Before"); motor.write(180); Serial.println("After"); Both "Before" and "After" is instantly printed, while the motor is still rotating. I want "...
0
votes
1answer
164 views

Feeding microcontroller and linear actuators (motors) with the same power supply

I have already made a diagram using a motor controller. I want to use only one power supply to feed arduino and motors. I want to use MDD10 dual motor driver. The details of the actuators each one is:...
0
votes
1answer
42 views

setting a dc motor to work for a fixed amount of time [closed]

I am trying to set a DC motor to work for a fixed amount of time. For example if I will press left, I want it to work for a minute and after that to stop. If I will press right, to work for a minute ...
0
votes
0answers
17 views

Arduino Mega with Makerfire BLHeli_S ESC strange shaking and shorks

I'm trying to use Arduino to control brushless motors with Makerfire BLHeli_S ESC through Servo library. However, I've encountered the following issue. First, when the Mega board was updating ESC ...
0
votes
2answers
185 views

Slow speed with stepping motor

I am currently working on a project where i need a stepping motor and a servo running at the same time, the servo turns fine and the speed is ok, but the stepping motors speed is very slow and as a ...
0
votes
1answer
94 views

DC Motor Car Steering

I am working on a project with a 3-Wheel Car: 1 Custer Wheel, and 2 DC Motors. I need to steer the car playing with the speeds of these two dc motors. If I would supply a constant voltage and current ...
0
votes
0answers
32 views

Regarding Geared motor encoders

I wrote a simple code to count the number of pulses when the motor runs. The code just counts the number of interrupts from the encoder, but the output is very weird. Even when the motor is not ...
0
votes
0answers
23 views

Using arduino uno and an adafruit shield to control 3 dc motors and a linear stepper motor

Hello I am currently doing a project at my university which requires me to order and program 4 motors using an arduino. I will be using an arduino uno and an adafruit motor shield. 2 of the dc motors ...
0
votes
1answer
10k 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.
0
votes
2answers
68 views

Arduino MKR 10100 control DC Motor

Thank you for reading my post. I have been stuck on this for several weeks now! I am trying to turn ON/OFF a DC motor from Arduino IOT Cloud. I have set up the cloud and added the switch. Everything ...
1
vote
2answers
4k 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 ...
-1
votes
1answer
742 views

How to control DC motor speed with L298N and Node MCU?

I want to control an RC car with a joystick in mobile. Currently, I can only make the motor move forward and backward but not able to control the speed. Node mcu is used as a processor to receive the ...
0
votes
1answer
106 views

can I check if why my motor isn't working?

I am currently using the arduino Uno connected with L298N(green pcb) connected to a dc motor rated 12V. I provided dedicated 12v power supply to the dc motor and the arduino board's power is supplied ...

1
2 3 4 5
12