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
1answer
49 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
3answers
23 views

Help me get my robotic car to work?

So I recently followed a tutorial on youtube and I've assembled the car and connected all the wires. What I've done: Car Now in the video, when the guy connects all the wires, the wheels constantly ...
-1
votes
2answers
82 views

Keep motor moving

I have a problem on how to keep my stepper motor moving when button is released. It should only stop moving if I press the button again. For now, stepper motor is only moving IF the button is ...
0
votes
0answers
29 views

Will this code for braking of dc motor using sensor work?

#define trigPin 13 #define echoPin 14 #define e1 10 // Enable Pin for motor 1 #define t1 8 // Control pin 1 for motor 1 #define t2 9 // Control pin 2 for motor 1 #define led 3 #define led2 5 #...
1
vote
1answer
120 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 ...
0
votes
0answers
31 views

Difference between L298 and L298N motor driver

I was planning to buy a motor driver for my project purpose, but I don't understand which motor driver will suit my purpose. As there are two motor drivers available online. Can someone explain me the ...
0
votes
1answer
23 views

arduino & drivers to control 5 brushed CIM motors independently?

i am a complete newbie in electronics but i'm a bit familiar with C. i am building a machine that requires 5 little engines (12V 2.5in brushed CIM motors) & motor drivers (i need to adjust each ...
0
votes
0answers
42 views

Power small hobby motor using Vin pin on Arduino and 9V battery, safe? [duplicate]

MOVED HERE I want to motor a small motor with a 9V battery and control it with PWM using an Arduino Leonardo. I know I can power the motor separately, but this introduces the problem of needing a ...
0
votes
0answers
9 views

Powering a 6V motor from a 5V USB battery pack [migrated]

I'm trying to run a 6V/1A motor from a 5V/2.2A USB battery pack (i.e. a phone-charger battery bank). I'm using a Pololu boost converter to make 6A (>80% efficiency), but the motor never starts, it ...
0
votes
0answers
30 views

Guidance on controlling gimbal brushless motors?

i want to make a gimbal using an arduino and im having trouble finding how to control brushless gimbal motors with arduino as they all go into a BGC ive found a BGMC https://rovertec.com/products/...
0
votes
1answer
29 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/...
0
votes
1answer
38 views

Help Troubleshooting L298n connected to dc motor

I am relatively new to Arduino, and I am trying to power a DC motor with the L298N dual H-Bridge. I have done as follows: I am powering everything with the Arduino that is connected to the PC. (I know ...
0
votes
1answer
27 views

Mosfet controlled motor runs while LOW

I am using a mosfet (IRFZ44N) to control a dc motor, and a separate one to control a led strip. Both are using the same circuit running to different pwm pins on the arduino. The light strip is ...
-1
votes
2answers
55 views

Could i use a stepper motor?

i want to make a 3-axis gimbal with arduino but brush-less motors seem incredibly hard so would stepper motors work for this purpose? if their is a way if not, is how can i connect 3 gimbal motors to ...
0
votes
1answer
35 views

Need a component to connect a 9v water pump

I have a 9v water pump that i want to turn on\off from the arduino, What module should i use to turn it on and off? I am using now a mosfet for my 5v pump, can a mosfet be used for 9v as well? Or is ...
0
votes
0answers
27 views

Please help! My Bluetooth Controlled Car Isn't working

I followed this tutorial: enter link description here I built it according to the schematic except I didn't connect an LED (I assume this isn't the problem). This is the schematic: I'm a beginner so ...
0
votes
1answer
36 views

Stepper Motor Direction via Flow Amps

I have a problem with stepper motor direction. I want to change the direction of the stepper motor rotation, when the stepper motor shaft is stuck. For example, when I hold the shaft of the ...
0
votes
1answer
87 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
2answers
3k views

Dshot implementation on Arduino (ESC protocol)

Does anyone one know if it's possible to implement Dshot on Arduino? I want to interface the Arduino with ESCs (electric speed controllers). These ESCs use Dshot, (https://oscarliang.com/dshot/) a ...
-1
votes
1answer
44 views

Have I fried my arduino uno?

I made a smart dustbin using arduino, servo motor, & ultrasonic sensor. It worked pretty well for a few number of days. But once I don't know how but the Arduino 'ON' light started to become dim ...
0
votes
0answers
24 views

How to control segway motor with arduino uno?

I salvaged segway motor with 8 wires. I did completed basic connection of 5 hall sensors and power from 36V lipo battery in the image below. When I connect self-learning wires then motor starts ...
0
votes
1answer
141 views

Arduino based fully controlled aquaculture

I am doing a project on aquaculture,so I am using temperature sensor, water level sensor, dissolved oxygen sensor, pH sensor and also 4 motor's and water heater is it possible for a single Arduino to ...
-1
votes
1answer
201 views

My 12V DC Vending Machine motor rotates 1 extra 360 degree rotation sometimes. What could be the reasons?

have main board which has motor control circuit and has row and column to control the row and column of the vending machine. I have made changes in motor in two ways: A. I have attached an image for ...
0
votes
1answer
2k views

Speed controller for Ceiling Fan 220V AC 100W

I would like to use ESP32 to speed control my AC ceiling fan which is 220V AC 100 W. Will the below AC dimmer work with ESP32 to speed control the ceiling fan which is 220V AC 100 W? If not, kindly ...
0
votes
1answer
393 views

How to control DC motor speed with L298N and Node MCU?

I want to control an RC car with a joystick in mobile. Currently, I can only make the motor move forward and backward but not able to control the speed. Node mcu is used as a processor to receive the ...
0
votes
2answers
51 views

L298N motor driver issue

I am facing the same issue with my motor driver. Initially I ran the code and connected the L298N with Arduino and it worked fine. At that time motors were running absolutely fine. But when I ran it ...
0
votes
2answers
42 views

Why can't I control speed of the motor? (M1 and E1)

When myservo_1,myservo_2,myservo_3,myservo_4 is commented, I can't control the speed of my M1 motor. But only when I uncomment myservo_1 and so on, I can control the motor speed again. Can someone ...
-1
votes
1answer
437 views

H-Bridge L298N motor driver

I have 2 motors connected to a dual H-Bridge motor driver and the H-bridge connected to an arduino uno, It was working fine at first but now my motors are spinning very slow and the car bearly moves, ...
0
votes
1answer
58 views

can I check if why my motor isn't working?

I am currently using the arduino Uno connected with L298N(green pcb) connected to a dc motor rated 12V. I provided dedicated 12v power supply to the dc motor and the arduino board's power is supplied ...
1
vote
1answer
103 views

Motor with sinusoidal motion

I need to run a motor to have a harmonic motion with specified amplitude and frequency ( harmonic motion mean that the angular position of the motor is a sine function of the time). I’m Looking to do ...
0
votes
0answers
25 views

How to use void swap with multi-dimensional array to control motor with openCR board

i am a beginner. About my problem, there is an "invalid conversion' error in the swap(goal_positionall) #include <DynamixelWorkbench.h> #define Device_Name "" #define BAUDRATE 57600 #define ...
0
votes
0answers
30 views

Motor is vibrating in one direction

When I test this program, the motor starts vibrating when proxy1 is low and proxy2 is high. The displayed text also goes wrong. #include <LiquidCrystal.h> LiquidCrystal lcd(8,9,4,5,6,7); int ...
3
votes
1answer
12k views

How to make servo rotate for angle bigger than 180°

Connected servo motor (180°) to Arduino Uno R3. Currently I am using a servo motor which have rotation angle specified as 180°, but I have a requirement to rotate to certain angles greater that 180°. ...
0
votes
1answer
74 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 ...
3
votes
5answers
33k views

Control Speed of DC FAN Using Arduino PID Library

I want to make a circuit that control speed of DC fan Using Arduino PID Library to get thing at specific temperature. The circuit looks like this but can be changed, The dc fan motor connected to PWM ...
0
votes
1answer
124 views

2 buttons pressed at the same time elevator logic

I have currently created a working elevator code where the elevator goes up when pressed a button, and stops at a floor when the sensor senses that it has reached the floor. This is how it works: #...
0
votes
1answer
574 views

Arduino Uno Motor control using 2 Relays, 2 Limit switches and Bluetooth. Forward Reverse Stop

Modified existing project from this link: Problem : Trigger limit switch to stop DC motor I modified this code to control two relays which are wired to motor poles for Forward or Reverse movements ...
0
votes
1answer
206 views

Communicating between two arduino terminal using Xbee

I have 2 Arduinos, mounted with Xbee Shield and Xbee S1 module on each. One arduino is mounted on car chassis while another is connected with PC. Our AIM is to send signal from the arduino connected ...
0
votes
2answers
226 views

Powering Arduino Uno and Ardumoto Motor Driver Shield

I need to power an Ardumoto Shield to drive two 12V DC motors. I was planning to connect a 12V battery to the Max 18V input on the Ardumoto and a 9V battery to the barrel jack input of the Arduino Uno....
0
votes
1answer
61 views

How To Stop Linear Actuator?

I wrote a code but the motor does not stop, it keeps moving can anyone send to a code that can I stop the motor after my code that shows bellow? const int forwards = 7; const int backwards = 6;//...
0
votes
1answer
584 views

2 Motor Robot Control with RC Radio

I am making a robot for a local robotics competition. One main function I need to do is move it forward, backward, right, left. Just like an RC car. I have programmed it to do that but it seems ...
5
votes
1answer
1k views

Leonardo-based tachometer?

I'm new here. I'm not a native speaker, so pardon my English. I just received my Arduino Leonardo today. I tried some basic calculations and stuff like blinking and LCD interfacing. Its interesting. ...
3
votes
1answer
464 views

Arduino Uno + Jaguar Speed Controller + CIM Motor (12V DC)

I have connected a CIM motor to a Jaguar speed controller, powered by a 12V battery. The Jaguar is connected to an Arduino Uno via the signal and ground. Also, I have two switches connected to the ...
0
votes
1answer
30 views

How to Work Two Linear Actuator Synchronously by Using Arduino and VNH5019 Motor Driver?

I am newbie and I want to build a project that contains two linear actuator that move synchronously. Two of them will lift up and down at same time. I use arduino mega and VNH5019 motor driver. I have ...
1
vote
0answers
1k views

DC Motor speed control by using pwm

I am using Arduino Uno, and MPU6050(3 axis imu sensors), not gate, and L298 dc motor drive. My algorithm is very easy. Receive an angle how the balancing robot is tilt. Decision speed of motors by ...
1
vote
1answer
1k views

Running multiple motors simultaneously

I have this code for a DC motor (using this library) #include <Arduino.h> #include <Vnh2sp30.h> // ENA A B PWM CS inv Vnh2sp30 mtrL( A0, 7, 8, 5, A2, 0); ...
0
votes
3answers
58 views

Dc motor backvoltage, how to place the diode correctly?

My previous questions have been anwsered, so thank you all for that! I make a new question post because I have some other problems with my setup. I use a esp12s 8266 chip. It sends a PWM signal to a ...
0
votes
0answers
18 views

How can I make Arduino communication as fast as possible with minimal (if any) error?

I'm building an inverted pendulum. I have two rotary encoders and a 12V DC motor. Right now when I try to run the DC motor and change one of the rotary encoders, the rotary encoder will not print to ...
1
vote
1answer
56 views

Can I use this board to control multiple vibration motors?

I am looking at this: https://learn.adafruit.com/16-channel-pwm-servo-driver Although it’s meant for servos, I was wondering if I could use them to control vibration motors. Motors like these: ...
0
votes
1answer
93 views

Control speed of a dc motor with a 9v battery [closed]

Problem: I want to have a 9v battery that powers a dc motor. I want to control it with a bluetooth remote that has 3 buttons. 1st button is turn the motor with 1.5v, 2nd button is motor off and the ...