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
0answers
20 views

RF433MhZ - PWM with a motor driver freezes the code

LE: I'm almost certain that the problem is noise from the DC motor. I tried with a spare motor laying around and it had no problem, even if it had no capacitor on it's leads. So I tried adding all ...
-2
votes
0answers
25 views

Moving a stepper motor forwards constantly [closed]

How can I make a stepper motor go forwards constantly until I tell it to stop? I'm using a EasyDriver.
1
vote
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
343 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 ...
0
votes
1answer
124 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 ...
1
vote
1answer
679 views

How to prevent shoot-through when swiching a motor with a bridge?

Ideally, when wiring a motor with an H-Bridge one would ensure that all "open" operations are performed before and "close" operations in order to prevent a short circuit. How does one ensure that ...
-1
votes
1answer
26 views

Optical Quadrature encoder skipping steps correction in software [closed]

I am currently working a project where I use a rotary optical encoder to control the position of a dc motor (linear position along a fixed axis) . While testing the setup I found that I don't have ...
0
votes
0answers
44 views

Run a dc motor for amount of time without delay

Hi everyone I have a project and I need to run a dc motor for amount of time without using delay I use DelayWithoutBlink technique. In this code the motor should run for 5 second in cw then it will ...
-1
votes
0answers
7 views

Run dc motor without delay function [duplicate]

Hi everyone I want to run a dc motor(without delay function) for 10s in cw direction and stop for 1s and run again fonr 10s in ccw direction and I think the code is logical Can anyone fix my code ...
0
votes
1answer
60 views

Problem using 2 motors

I would like both the motors to spin the attached wheels forward when I push the joystick forward and vice versa. When the joystick is still, the motors should stop spinning. At the moment, when I ...
0
votes
1answer
48 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
2answers
4k views

How can I stop my Servo rotating?

I have a continuous servo motor connected to my Arduino UNO. I want it to react to the Hexadecimal code received by an Infrared remote. I want the motor to rotate once in one direction and then rotate ...
0
votes
1answer
319 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 ...
-2
votes
0answers
33 views

Turn off 240v supply using arduino?

I have to turnoff a motor running in 240V AC Three Phase with 12Amps of current using arduino. By what means can I achieve that. I tried for relays, but can't get one with more than 12 amps.
0
votes
1answer
116 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
26 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
1answer
19 views

Why delay of more than 64 millisecond stops the servo motor from rotating? I am not using “Servo.h” instead i am just managing the length of pulse

The code I used was this int servo = 5; int angle; void setup() { pinMode(servo, OUTPUT); } void loop() { for (angle = 0;angle<180;angle++){ digitalWrite(servo, HIGH); ...
0
votes
0answers
27 views

multiple working modes for motors

with this sketch i can independently control 4 dc motors cw, ccw, and rotating each of them until the hall sensor related to it detects an magnetic field. what im trying to do now is to create a mode ...
0
votes
1answer
132 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 ...
-1
votes
1answer
106 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 ...
3
votes
2answers
854 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
445 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 ...
0
votes
2answers
195 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
0answers
34 views

2 different operation modes for a motor

i want to press "unu" button of the remote, and the motor to rotate continuously, and when i press "sound" i want the motor to rotate untill the hall sensor detects a magnetic ...
0
votes
0answers
22 views

motor controll with hall sensor

im using arduino uno r3, motor drive shield tle94112el, geared motors, ir remote and hall sensors. i wanna rotate the motor 120 degrees by pressing a button on the remote, and when one of the tree ...
1
vote
1answer
178 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 ...
-1
votes
4answers
3k views

Strange problem. Arduino stops working after few hours. Opinions please

I am trying to setup an automated relay for my aquarium. The Arduino should switch off the pump every 3 hours for 20 minutes, and feed at particular times during the day. The code works fine for the ...
0
votes
0answers
30 views

Control Servo motor via Python GUI (PyQt) component “QDial”

I want to control a servomotor via a Python Gui (PyQt) component "QDial". Hopefully the servomotor should rotate "simultaneously" with the Dial in GUI. Below is the related code: ...
0
votes
1answer
46 views

Digital Pin won't ground when set to LOW

My friend and I are repurposing an old rc car for a project. When we connect the dc motors to 5V and ground, the motors spin. However, when we power the motors from 5v and ground it in the digital ...
0
votes
1answer
31 views

3,6V DC motor spinning with L298N and Arduino

I'm trying to control a re used DC motor from a drill (3,6V) with a L298N and a Arduino. It's powered with a 5V - 60A power supply. I tried to follow this step by step tutorial (https://www.youtube....
0
votes
0answers
22 views

Motor noise on my arduino RC?

So I wanted to make a rc car based on two arduino nanos, two nrf24l01 (rx and tx), and a pololu brushed motor driver (this one) and it worked, more or less. Sometimes it worked very well and ...
0
votes
2answers
31 views

Speed control of BLDC with an integrated controller (Hall out, PWM in)

I am aiming at precise speed control of this BLDC motor: it has an integrated controller, outputting digital Hall signal (period 20.8ms on oscilloscope, w/o load) and taking PWM as input for speed ...
0
votes
1answer
46 views

Trying to switch a 5v fan with a LiPo and can't figure our what's wrong at full duty cycle

I have a simple project where I want to turn a 5v fan on/off and both the MCU and fan will powered by a LiPo battery. I'm powering the ESP and fan directly from the battery in the attached circuit. ...
0
votes
1answer
27 views

Boolean Logic With Chars For Motor Input Selection

Context of the code: I am trying to control 2 DC motors through an H-gate, this means there are 4 inputs in total: For DC motor 1: Input 1 (VCC) and Input 2 (GND). For DC motor 2: Input 3(VCC) and ...
-1
votes
1answer
36 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
74 views

Stopping the program after 1 second

I am a Beginner in Arduino Programming. I am working on a project where I control A DC motor with IR sensor and arduino. Until here it is fine. But I want the Motor to stop after one second even ...
0
votes
2answers
221 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 ...
6
votes
9answers
28k views

How to eliminate noise from PWM controlled 12V fan at low speed

I am trying to build a simple fan controller (single fan). So far I have successfully created a circuit which powers the fan with an external 12v DC adapter and added a transistor (NPN) to switch it ...
0
votes
4answers
6k views

DC motor makes noise but does not rotate

i am following Jeremy blum's tutorial on youtube. link i have done the exact same circuit design as he has. but the dc motor just makes a continuous beep sound when i run this code. int motorPin = ...
0
votes
1answer
127 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 ...
-1
votes
1answer
35 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 ...
-1
votes
2answers
73 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
43 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
16 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
44 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
88 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
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
98 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
164 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
22 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 ...

1
2 3 4 5
13