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

Arduino Uno motors not working and car not running

I am trying to make an Arduino robot car. I used a motor driver, HC-06, Uno, and 2 DC motors. I have uploaded this code: // Hobby Tech BD YouTube Channel int m1a = 9; int m1b = 10; int m2a = 11; int ...
user avatar
0 votes
0 answers
6 views

Bootstrap circuit for electromagnet drive or sense? [migrated]

Is there a bootstrap circuit or H-bridge design so that a coil can be energized in one mode (e.g. with an NPN transistor and flyback diode), or sense a changing external magnetic field in another mode ...
user avatar
  • 99
1 vote
0 answers
28 views

Motor rotates well in one direction but runs slower in other with L298N and L293d

I connected 2 motors with an L293Nn driver. When I control it with my joystick, one motor works fine (Out 1 and 2 of driver.) It rotates in one direction and the other very smoothly. The problem ...
user avatar
1 vote
1 answer
44 views

Servo keeps resetting position when there is no difference in received value?

So I'm working on a code that basically receives x and y coordinates and stores them in a variable. Whenever a coordinate is received, it goes through a conditional statement to store them in a ...
user avatar
2 votes
1 answer
49 views

How to combine servo shield with peristaltic pump?

I am creating a project where I need 16+ (possibly up to 20) servos to open/close liquid flow through tubing, which in turn will be controlled by a peristaltic liquid pump (https://www.adafruit.com/...
user avatar
  • 21
1 vote
0 answers
28 views

Problem regarding on HC-SR04 sonar with an additional stepper and SG90 servo motor

I'm making a project based on HC-SR04 ultrasonic sensor with a stepper motor and an SG90 servo motor. I have done some conditions for my stepper motor that is given below. Now I want to include my ...
user avatar
  • 11
1 vote
1 answer
94 views

DC Motor not running with the L298N (Green) card

I have a DC motor connected to a L298N (Green) controller. The controller is receiving electricity but the motors aren't. This is how we wired everything Our code: #include <SoftwareSerial.h> ...
user avatar
1 vote
0 answers
47 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 ...
user avatar
4 votes
2 answers
558 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 ...
user avatar
1 vote
1 answer
31 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 ...
user avatar
  • 13
1 vote
0 answers
40 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 ...
user avatar
  • 11
0 votes
3 answers
59 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 ...
user avatar
  • 21
1 vote
2 answers
81 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.. ...
user avatar
  • 11
1 vote
0 answers
98 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 ...
user avatar
1 vote
1 answer
49 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 ...
user avatar
1 vote
2 answers
196 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 ...
user avatar
1 vote
0 answers
192 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 ...
user avatar
2 votes
1 answer
161 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 ...
user avatar
  • 31
1 vote
0 answers
77 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 ...
user avatar
  • 31
1 vote
0 answers
58 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, ...
user avatar
  • 293
1 vote
1 answer
56 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 ...
user avatar
  • 177
0 votes
2 answers
56 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?
user avatar
1 vote
1 answer
89 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 ...
user avatar
0 votes
1 answer
35 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 ...
user avatar
  • 103
2 votes
1 answer
90 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 ...
user avatar
0 votes
3 answers
66 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, ...
user avatar
2 votes
0 answers
39 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 ...
user avatar
2 votes
2 answers
103 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 ...
user avatar
1 vote
1 answer
438 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 ...
user avatar
1 vote
0 answers
48 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 ...
user avatar
1 vote
0 answers
51 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, ...
user avatar
  • 21
1 vote
2 answers
72 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, ...
user avatar
  • 131
2 votes
1 answer
107 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 ...
user avatar
3 votes
2 answers
63 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 ...
user avatar
0 votes
1 answer
106 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 ...
user avatar
  • 131
4 votes
1 answer
66 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 ...
user avatar
  • 141
0 votes
2 answers
62 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 ...
user avatar
  • 105
1 vote
1 answer
60 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 ...
user avatar
2 votes
1 answer
232 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 ...
user avatar
  • 21
1 vote
0 answers
81 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 ...
user avatar
1 vote
0 answers
60 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 ...
user avatar
1 vote
2 answers
89 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 ...
user avatar
1 vote
1 answer
316 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 ...
user avatar
1 vote
1 answer
102 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. ...
user avatar
1 vote
0 answers
68 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 ...
user avatar
1 vote
0 answers
75 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 ...
user avatar
1 vote
1 answer
26 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 ...
user avatar
1 vote
0 answers
65 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 ...
user avatar
1 vote
0 answers
56 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 ...
user avatar
1 vote
1 answer
210 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 ...
user avatar
  • 419

1
2 3 4 5
14