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
vote
0answers
22 views

Continuous servo rotation with on/ off switch

I am trying to make a ball return catapult. I have a mechanical design already in mind. I need to have a servo rotate constantly. Just one will be enough. I preferably want to do this without an ...
1
vote
0answers
18 views

L298N Motor Driver not working

I am using a L298N motor driver to connect a motor with NodeMCU. But i did a few tests since a few tests while learning how to control it now when i connect it the motor doesn't even work. Then i ...
1
vote
2answers
60 views

I need a good battery reccomendation

I have simple project composed of an Arduino Nano, a HC-05 module, and a small toy DC motor controlled using a L293D driver, I want to be able to power this circuit entirely using a battery, here is ...
0
votes
0answers
5 views

Kill 2 stroke engine using an Arduino [migrated]

I've got a quick question that has been puzzling me for a few weeks now... I have created a project that uses a 25cc 2 stroke engine and want to kill the engine using an Arduino, or to be more precise,...
1
vote
1answer
20 views

L298 Motor Driver not showing Red light when connecting power supply

I recently bought an L298 motor driver module for controlling 2 motors(5v each). When i connect the power supply(which is a normal RC car battery holder(3)) the red light doesn't light up. Instead if ...
1
vote
0answers
28 views

Hello I am working on getting a pwm signal with arduino nano, I am new to Arduino and i need it for a project [closed]

I want it so that When I apply 1v to analog input i get a pwm signal of 50% duty cycle. When I apply 2v to analog input i get a pwm signal of 80% duty cycle. Can someone tell me the code on how to do ...
1
vote
1answer
37 views

Arduino H-bridge for rc car

I've got an old rc car laying around, of which i would like to swap the insides, but re-use some of the parts that are already in there. The car runs 2 dc motors: one for steering, one for throttle. ...
1
vote
0answers
16 views

FG Frequency output

I have bought the Brushless DC-Flat Motors Series 2610 and Pin number 6 is called FG which is defined as frequency output. I have plugged this pin into the Arduino in A0 and I have tried displaying ...
1
vote
0answers
19 views

Motor not working when using Nano 33 BLE and transistor because of low voltage

I'm a beginner using a new Arduino Nano 33 BLE to power a low voltage motor. I've tested that the motor can run using a standard 1.5V AA battery when connected directly, but I cannot get it to work ...
1
vote
1answer
16 views

DC motor with slow speed to actuate mirrors

I am thinking to use Arduino to control a DC motor and apply a small torque to move the mirrors of my interferometer experiment. I have the components from the Arduino Starter Kit K000007, just to ...
1
vote
0answers
30 views

Controlling a flat brushless DC motor with integrated speed controller

I have recently purchased the Brushless DC-Flat Motors Series 2610 from Faulhaber and I am honestly new to this type of motor as it’s pins are not like any other I have used before. I would appreciate ...
0
votes
0answers
46 views

Problems with AccelStepper/Multistepper library

I am trying to drive two stepper motors with the AccelStepper/MultiStepper library. I think I did get it to work before, but it's not working now. I have included my code below the error messages. Is ...
0
votes
1answer
39 views

My car only moves when it is plugged directly into both my pc and battery pack?

i built a car that works with four motors,one motor driver(specifically the l293d),the arduino and the battery pack with four AA-Batteries. The motors work fine though, but they only work when it is ...
1
vote
1answer
35 views

Control DC motor in both directions with two relays

I am using an Arduino and two relays to control 12V DC motor. I need to rotate the motor in both directions. For the first trials it worked fine. Finally one next switching fried my Arduino. I think ...
1
vote
1answer
25 views

How to run multiple DC motors in different patterns?

I am a complete novice in programming and I hope someone could guide me here. I am doing a haptic research project, where 8 DC coin vibrating motors would be fitted on the fingers of subjects (...
0
votes
0answers
22 views

My motor works for a while but then stops

I have a simple motor automatization system. It only uses adapter, arduino, relay and motor nothing else. It works for 15 seconds and stops for 3 seconds. It works properly for 1 minute but then stops ...
1
vote
0answers
42 views

l298N PWM motor control with Uno is not functioning correctly

I'm working on a self-balancing robot. The self-balancing is not the issue. The issue is that the motors don't respond as they are supposed to. I would understand if it were unable to balance, but the ...
1
vote
1answer
38 views

Stepper motor won't change directions!

I am driving a bipolar stepper motor with an a4988 driver using the AccelStepper library. My goal is to press a button and the motor moves CW, then another button for CCW. I have looked at another ...
0
votes
1answer
27 views

What motor to move a small telescope?

i just bought a hobby telescope, it works well for being nothing much than a toy, the very problem is that the gesrs that should keep it stable are all plastic and very hard to tighten while keeping ...
0
votes
0answers
31 views

DC Motor will not work. Transistor method nor L293D!

New to Arduinos and stuff. I have tried the L293D and the transistor method but the motor just wouldnt work. I have tested the motor and it definitely is fine. Below is my layout for this attempt: ...
0
votes
0answers
23 views

Arduino Doesn't Work With Just Battery and Vin Pin [duplicate]

I'm currently working on a drone project, and I have a bit of a problem. I am using a motor driver for my propellers, but the motor only runs continuously when connected to the computer. I have the ...
0
votes
1answer
86 views

Weak Arduino Output Pins

Sorry if this is a newbie question, but I'm really struggling with this and I can't seem to figure it out. I've been learning Arduino for a while, and for my next project I'm attempting to build a ...
0
votes
1answer
31 views

How can a DC motor (toy) be run with only an Arduino and transistor without an external power source?

I'm trying to understand this circuit found here. I understand that the Arduino cannot directly run a DC motor because it can only supply 40mA of current and also due to the back EMF which can damage ...
2
votes
1answer
236 views

How to control speed of 28BYJ-48 stepper motor without using library?

Iam using 28byj-48 stepper motor and I want to know how to control its speed without using any library. I got to know that we need to add delays in between steps but I don't know how much delay I need ...
1
vote
0answers
27 views

BLDC motor erroneous running with digital potentiometer

I am using this digital potentiometer http://www.farnell.com/datasheets/31917.pdf to control a BLDC motor with Arduino Mega. When I am running the below code, the motor runs at the lowest speed when I ...
1
vote
0answers
33 views

make servo motor to increase/decrease degree

I'm trying to make servo motor to increase or decrease degrees according to user choice. I've created an code that get input from the user via Serial and according to the input the motor increase or ...
0
votes
1answer
61 views

How to wire and use a L6219 motor driver

I have 4 of these L6219 motor drivers and I dont know how to wire them. They have almost no wiring diagrams and when there is something, I cannot understand it. And I forgot I also need help sending ...
1
vote
1answer
55 views

Can arduino nano drive two circuit

I am building a robot snake with a bunch of servos and ov7670. As I see, ov7670 operate with 3.3v and servos needs 5v. I will use Lipo battery for servos for this I need to connect ground pin of ...
1
vote
0answers
33 views

Will this be possible to do before I even get started. I want to automate my house window [closed]

I will have 2 buttons. Using Adafruit DC Motor Driver https://www.adafruit.com/product/3190 Top button is a function, bottom button is mode. The top button functions. Window 1: Single press will turn ...
1
vote
2answers
50 views

l298n voltage loss when motor attached

Im trying to power a brushless DC Motor (Tamiya 300054358) through the l298n attached to an Arduino. The l298n is powered by an external 9V source and the logic of the l298n is powered by the Arduinos ...
1
vote
0answers
44 views

Power supply for servo motor [closed]

I try to built a snake robot. I used servo motors mg996r. Its Operating voltage is 4.8 V to 7.2 V and running current is 500 mA – 900mA. I used 4 servo motor. So I need a power supply that is 4*(900mA)...
2
votes
2answers
54 views

Rasberry Pi Controlling Arduino - Reads “Ghost” Input - Doesn't Complete Logic Loop

I am using an Arduino Atmega2560 clone, I have used it many times before with satisfactory results - although I haven't used it with my Rpi before. My Raspberry Pi is model 4 (B I think?). #define ...
2
votes
2answers
130 views

smooth DC motor control with millis

So the task is to control 12v DC motor. With first button, you can add up motor speed by certain speed step. With second button, you can slow down motors speed by certain speed step. With third button ...
3
votes
1answer
118 views

Why is it i need transistors and resistors to turn a dc motor with an Arduino but i can connect it directly to a battery

As the question says im building a circuit to run a DC motor whenever motion is detected on a motion sensor. Now as this image suggests I need a diode + resistor + transistor to get this thing to ...
6
votes
5answers
2k views

Is there any better choice other than using delay() for a 6 hours delay?

I am designing this incubator system and I need to drive a motor forward and reverse every 6 hours. Is there any better choice other than using delay(). A 6 hours delay seems a little unprofessional.
2
votes
1answer
64 views

Analog input voltage rises when motor is working

I'm making automatic water plant system. I'm using: Arduino Uno 3.3-6V water pump -https://www.amazon.com/Vipe-Micro-Submersible-Motor-Water/dp/B01N0X3CW4 Capacitive soil moisture sensor - https://www....
0
votes
0answers
29 views

Does anybodyknow how to program Muscle Sensors v3?

#include <Servo.h> const int x = 200 //Naming the servosServo Servo servo1; Servo servo2; Servo servo3; Servo servo4; Servo servo5; Servo servo6; void setup() { Serial.begin(9600); ...
0
votes
3answers
71 views

L293D driver DC motors need help to start rotating

I set up this circuit which uses L293D motor driver IC to control two DC motors. +6V input is connected to unregulated power supply. It's current rating is 500 mA. There is a connection between ...
2
votes
1answer
40 views

Why won't my motor run?

I am trying to run a small 3v motor with a Keyestudio MEGA 2560(which is the same as the Arduino MEGA 2560). I am getting a consistent 5 volts everywhere I check with a multimeter. The voltage drops ...
2
votes
2answers
46 views

How do I make a motor spin every 10 minutes?

I am new to Arduino, please don't be harsh. I want to make a motor spin at every x amount of time (Lets say 10 minutes). Once the program is started, I want it to start the motor (stop after 10 ...
1
vote
3answers
125 views

How do i make my DC motors run simultaneously?

Im coding an adafruit motor shield for 3 DC motors to go forward & backwards, and so my concern is why only my motor3 is running the whole time and motors 1 & 2 are switching off meaning 1 ...
0
votes
1answer
45 views

Problem with L293D controlled motors using IR pilot remote

I have a problem with my line follower: My robot has 4 wheels with DC motors connected to L293D shield (Arduino Uno). The robot is a line follower controlled by IR pilot with an IR receiver, it has 4 ...
2
votes
2answers
50 views

How can we know the status of the DC Motor whether it is ON or OFF

A DC motor is operated using an L298n driver and Arduino UNO. How can I get to know whether the Motor is ON or OFF? Using a code in Arduino.
1
vote
0answers
17 views

Brushless ESC Recommendations

I've got a project in which I'll be controlling 8 24V/10A brushless DC motors with an Arduino Due on a quadrupedal robot. I've been having trouble finding ESCs that would work well for this ...
0
votes
1answer
26 views

DIY CNC Machine Power Requirements

I want to make a CNC machine that uses 5 NEMA 17 rated for 2A and a RAMPS 1.4 to control it all. I have a power supply that can deliver 1.5A at 12V. Is it enough? I am worried that when all 5 motors ...
1
vote
0answers
43 views

NodeMCU ESP8266 burnt. What have I done fundamentally wrong here?

So my setup is: A 12v DR7-12 battery is providing the power for the board through a DC buck converter set to 3.3V connected to the 3.3V pin of the esp8266. I then am using pins D5 and D6 to control an ...
2
votes
0answers
25 views

Brushless motor vibration/jitter/noise - arduino uno

I am currently using these motors and driving them off these drivers and an arduino uno, and alternatively trying to make them turn using the setup in step 6 (both with l298n and without) in this ...
1
vote
1answer
43 views

How do I control a conveyor to start and stop in same location using optical rotary encoder

I am a complete novice at arduino. I just want to know if this is possible before I start investing in components. I need to start and stop a chain drive conveyor {can't slip} powered by a 12 volt ...
0
votes
1answer
120 views

Running a DC motor for a set amount of time

I am trying to run a DC motor for 100ms and then turn it off completely. Here is my code any suggestions on why it might not be working? My Code const int pirPin = 9; const int motorPin = 2; int ...
2
votes
0answers
37 views

Does anyone know code for a filter that bypasses small vibrational movements in my accelerometer input data

So basically I have a DC motor that is self stabilizing a platform using an accelerometer as its input. When i hit the table, everything freaks out and the platform moves rapidly back and forth for a ...

1
2 3 4 5
14