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
22 views

Motor Control with Arduino and Nextion Display

I have a 12V DC motor with encoder powered by an L298N motor driver module communicating with an Arduino Nano with interfacing with a Nextion Display. The wiring setup can be seen from the attached ...
2
votes
1answer
39 views

How to control multiple servo motors at the same time with protothreading using an I2C PCA9685 PWM board?

I'm trying to use protothreading to control two (and eventually four) servo motors over I2C using a PCA9685 PWM board. To start, I am simply trying to sweep the two motors back and fourth at the same ...
1
vote
0answers
43 views

How to control multiple servo motors simultaneously using protothreading?

So I'm trying to control 4 servo motors simultaneously using the Protothreads library by Ben Artin, but I am starting with 2 just to see if it works. I have succeeded in getting two LEDs to blink at ...
1
vote
0answers
42 views

Is there a VESC firmware implementation that runs on Arduino?

I am looking to use an Arduino in a motor control application, and have found that the VESC^ project has done some good work in this. I would like to have some fine-grain control over the motor drive, ...
1
vote
1answer
21 views

MC33926 Brushed Motor Driver (Shield/Carrier)

How can I use a MC33926 Motor Driver like it is offered for Arduino to drive forwards, backwards with a PWM and a direction control. The problem is that the MC33926 has Inputs IN1 and IN2 and not PWM ...
1
vote
1answer
43 views

L298N motor controller board EN pins

For this device are the enable pins meant to be connected to PWM pins? If so then how am I able to use this device with an arduino uno? The uno does not have any pwm pins right?
2
votes
0answers
36 views

How to attach plate to stepper motor? [closed]

Total noob here (never touched Arduino before today), & have pretty much no hands-on technical experience (although with lack of experience, I make up in enthusiasm to learn!) Question: How do you ...
1
vote
1answer
66 views

How to gradually increase and decrease the speed of a motor using IR remote

I am making an IR controlled helicopter and I have the very basic part of the code done, but I don't know how to make the motor gradually increase speed. I want the motor to gradually increase speed ...
0
votes
1answer
26 views

Unable to get readings for "Motor with Encoder"

I've posted to the DFRobot forum, who makes the FIT0186 motors, but no one seems to be replying there. So, excuse the copy pasting. It's probably an issue with the motor/encoder, but perhaps it has ...
1
vote
1answer
69 views

Question regarding using Arduino and MIDI

I'm using an Arduino Leonardo for sending MIDI In and Out messages to Ableton Live. Components include a Potentiometer, a Capacitive Touch Sensor, and a DC Motor, which I'm powering with a L298N Motor ...
0
votes
3answers
55 views

Problem with DC motor

I've got a circuit with Arduino UNO Rev3, DC motor, button to switch direction of rotation and potentiometer to regulate revs. The problem is that usually when I increase voltage using potentiometer, ...
2
votes
0answers
26 views

AccelStepper library - motor ticks when turning

When I'm using the AccelStepper library to control this closed loop stepper motor, the motor ticks when turning, maybe ~5 ticks/sec. Depending on the speed of the motor the ticks become more (at ...
3
votes
2answers
69 views

Assistance with PID DC Motor Acceleration

I'm working on a project that uses an Arduino UNO and a motorized fader to send and receive MIDI data from my computer/musical keyboard. I'm trying to set up my motor with PID to control the position ...
2
votes
1answer
74 views

DC Motor Acceleration with PWM

I'm not sure why this has been so difficult for me, but I'm trying to control the acceleration of a 10v DC motor with an Arduino UNO and an L298n H-Bridge. Using a 12v regulated power supply to power ...
2
votes
0answers
39 views

Motor response is lagging

I've got a DC motor connected to an Arduino Nano, L298N H-Bridge and a 12v Power supply. I'm trying to make it respond to incoming MIDI data a bit quicker. Right now, it seems awfully slow, and lags ...
1
vote
0answers
31 views

DC motor and buzzer blink without delay code

So I am trying to put together a code for 4dc motors, buzzer, ultrasonic and lcd to work together,. they will together make up a small car. when the distance to the ultrasonic is smaller than 10cm, ...
1
vote
2answers
67 views

Is this circuit damaging my arduino/components?

I'm building a system as follows: There are two pumps which lower and raise the level of the water There is an ultrasound detector which measures the level of the water While the water is too high, ...
2
votes
1answer
68 views

12V 28BYJ-40 motor is not generating enough torque

I am attempting to use a stepper motor to rotate one of my split-flap displays. However despite the thing the motor is rotating weighing probably half a pound, it struggles to do so. It really can ...
3
votes
2answers
59 views

connecting a small motor to arduino using a transistor

I want to connect a small motor (water pump) to an arduino, and I am not sure about the circuit. The pump is small, works with 3.3V, but consumes 0.1A so I decided to use a transistor. The one I have ...
0
votes
1answer
61 views

Motor not switching with 2N3904

I have a small motor, it powers fine from the 3V3 and GND output of the arduino nano ble 33. However I need to be able to switch it on and off. My first attempt was to use an output pin, but that ...
2
votes
1answer
35 views

Wirelessly (but fast) transfer STEP and DIR output from Arduino to stepper driver

Very short version: Looking for a way to wirelessly get STEP and DIR signals (only those two signals) from an Arduino to a DRV8825 stepper driver about a meter away: Arduino -> STEP and DIR IO pins ...
0
votes
2answers
57 views

Why does Adafruit guide for motors use transistors on ground rather than modulating the power source

I'm going through the Adafruit Motors guide for Arduino, found here, and I'm struggling to understand how each of these parts play in. From what I understood, pulse width modulation is basically a way ...
1
vote
0answers
26 views

Brushless Motor "twitches" on its own when connected to battery

I've been trying to make a Bluetooth slider app that can control the spin speed of a brushless motor. The transmitter I am using is Arduino Mega. The problem I'm having is that my motor will start ...
2
votes
1answer
78 views

Simulate motor encoder quadrature signals using an Arduino UNO

I'm supposed to write a raspberry pi and arduino code to read the RPM of a motor with an encoder attached to it. However, I'm having weird numbers and I'm unsure about the specs on the motor and the ...
1
vote
0answers
44 views

Motors not working with a motor Shield

Got a Duratech motor shield today, and I'm wondering why my motors do not run. Appreciate any help. The code I am using is the Adafruit sample code, Motorparty. The servos work however the motors do ...
1
vote
0answers
35 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
66 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 ...
1
vote
1answer
60 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 ...
2
votes
1answer
55 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
28 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
43 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
22 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
38 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 ...
1
vote
0answers
52 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
46 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
42 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 (...
1
vote
0answers
60 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
87 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
34 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 ...
1
vote
0answers
33 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
1answer
91 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
33 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
714 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
28 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
42 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 ...
1
vote
1answer
56 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
2answers
53 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 ...
2
votes
2answers
58 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
285 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
271 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 ...

1
2 3 4 5
14