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

PWM and attachInterrupts issues

I'm trying to control the speed of a DC current motor with PWM. I use an arduino UNO to send PWM signal to a mosfet Velleman vma411 to change the average tension of a my motor which is wired to ...
-1
votes
1answer
27 views

Multiple actuator position feedback reading

I am controlling 6 linear actuator with hall sensor as its position feedback. Application of the robot requires accurate and reliable position control. What is the best control strategy for this? 1 ...
4
votes
2answers
497 views

Controlling a 5V fan and ultrasonic fogger with an arduino - do I need an external power supply?

I know the whole controlling a fan with an arduino thing is getting old, but somehow I still don't get it to work. Tried to answer it based on other questions but I am too much of a newbie to ...
1
vote
1answer
26 views

Selenoid motor not responding to NodeMCU instructions

I just start a project migrating from Arduino Uno to NodeMCU, basically this projects control some selenoid motors triggered by a website instructions. For example: if website returns 2, the motor #2 ...
1
vote
0answers
34 views

Controlling DC motor with joystick using Arduino

I am working on modifying code to control two DC motors with a joystick using Arduino. The code I have works, but the motor accelerates very rapidly and is difficult to control. I would appreciate any ...
0
votes
3answers
54 views

Why can't I just plug a stepper or gimbal motor (BLDC) into the ground, 5v, and analog pins of my Arduino?

I plugged a BLDC gimbal motor in to my Arduino today, and it made a very small jitter. I tried to set an analog pin for the signal pin of the motor (motor had three pins, I assumed one was power, one ...
1
vote
2answers
69 views

stop motor instantaneous with hall sensor problem

I have a problem with stopping motor at same spot when magnet pass.. I tried to add interrupt and to make code as clean as possible but no joy so far. Any suggestions? sw will add later, just ignore.. ...
1
vote
0answers
38 views

Arduino Nano PID Controller with Potentiometer + IBT-2 Motor Control Board

I have a potentiometer connected to an analog pin A1 and would like to implement PID Control to move a robot arm up and down based on to a given serial command. For this to work I will need PID out ...
1
vote
1answer
43 views

can differential drive work together with ultrasonic sensor?

I've written a sketch to drive a differential drive system, specifically - to be able to drive strait. This does work. So I am trying to add the ability to stop when the path is blocked using US ...
1
vote
2answers
89 views

motor driver only works on one side:

I have 3 motor drivers and all 3 other them only seem to only work on one of the 2 sides. I have used a voltmeter to check the voltages across the each of the 2 sections on each motor driver. For all ...
1
vote
0answers
45 views

Using L298n motor driver without jumper (Voltage Regulator)

When I am using 9V supply with motor driver and Jumper connected so the red LED was blinking but when I did the same using 9V and 15V supply removing the jumper LED didn't blink. Neither the voltage ...
2
votes
1answer
95 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
53 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
50 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
41 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 ...
0
votes
2answers
50 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?
1
vote
1answer
74 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
28 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 ...
2
votes
1answer
82 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
59 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
32 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 ...
2
votes
2answers
85 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 ...
1
vote
1answer
193 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 ...
1
vote
0answers
44 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
38 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
69 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
86 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
62 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
71 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 ...
3
votes
1answer
39 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
59 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
1answer
45 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
139 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
69 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
46 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
77 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
135 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
1answer
84 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
38 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
63 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
23 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
47 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
53 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
73 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
51 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
81 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
129 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
50 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
36 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
94 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 ...

1
2 3 4 5
14