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

Grove - Mini I2C Motor Driver CH1 and CH2 connector [closed]

What is the Grove - Mini I2C Motor Driver CH1 and CH2 connectors shown in this image link: https://raw.githubusercontent.com/SeeedDocument/Grove-Mini_I2C_Motor_Driver_v1.0/master/img/Mini_motor_driver....
0
votes
1answer
29 views

How can I make a Parallax Servomotor move a water tap correctly and prevent from vibrations?

I am using Arduino Mega 2560 I have built an structure with plastic 3D pieces to move this water tap.: I am using the "Servomotor Parallax Inc 140 mA, 4 6 V" to rotate the tap: Some more images to ...
0
votes
2answers
23 views

How to stop program while Servo is rotating

If I code like this: motor.write(0); Serial.println("Before"); motor.write(180); Serial.println("After"); Both "Before" and "After" is instantly printed, while the motor is still rotating. I want "...
0
votes
1answer
47 views

ESP8266-01 Resetting when DC motor runs

DC motor: 3-6v Servo sg90: 3-7.2v Esp 8266 01: 3.3v I have 2 Arduino Uno both has their own ac-dc power adapter. Lets say, 1st Arduino is Ard1 and 2nd is Ard2. The Ard1 communicates to a web ...
0
votes
1answer
41 views

setting a dc motor to work for a fixed amount of time [closed]

I am trying to set a DC motor to work for a fixed amount of time. For example if I will press left, I want it to work for a minute and after that to stop. If I will press right, to work for a minute ...
0
votes
0answers
12 views

Arduino Mega with Makerfire BLHeli_S ESC strange shaking and shorks

I'm trying to use Arduino to control brushless motors with Makerfire BLHeli_S ESC through Servo library. However, I've encountered the following issue. First, when the Mega board was updating ESC ...
0
votes
0answers
5 views

Stabilize voltage input for Arduino nano on a drone [migrated]

I am doing a small drone project, and the 8V battery provides power to both the motors and the Arduino Nano. I expect a lot of noise from the motors, however I assume that the Arduino Nano power ...
0
votes
0answers
30 views

Regarding Geared motor encoders

I wrote a simple code to count the number of pulses when the motor runs. The code just counts the number of interrupts from the encoder, but the output is very weird. Even when the motor is not ...
0
votes
0answers
19 views

Using arduino uno and an adafruit shield to control 3 dc motors and a linear stepper motor

Hello I am currently doing a project at my university which requires me to order and program 4 motors using an arduino. I will be using an arduino uno and an adafruit motor shield. 2 of the dc motors ...
0
votes
1answer
31 views

Servo Program Questions

Hi programming in arduino, I am trying to get a nested for loop inside a for loop with industrial servo which used PUL +- DIR+- (bought motor off amazon). My goal is to get the puls delay to increase....
0
votes
2answers
49 views

Arduino MKR 10100 control DC Motor

Thank you for reading my post. I have been stuck on this for several weeks now! I am trying to turn ON/OFF a DC motor from Arduino IOT Cloud. I have set up the cloud and added the switch. Everything ...
0
votes
0answers
24 views

Error to work in reverse VNH2SP30

ım building a rover and ı using Johson 12v Dc motor and VNH2SP30. My code and motor works perfectly but my motor driver works only one way. It cant go to reverse and motor starts buzzing when it tries ...
0
votes
1answer
30 views

For what is used an ESC with a PWM?

So I was reading a few questions on drone, and I reach this one. It said that an ESC is used between the PWM Arduinno's port and the motor. I don't really understand what it means. According to what ...
0
votes
1answer
34 views

DC Motor Car Steering

I am working on a project with a 3-Wheel Car: 1 Custer Wheel, and 2 DC Motors. I need to steer the car playing with the speeds of these two dc motors. If I would supply a constant voltage and current ...
-2
votes
2answers
56 views

Troubles with motors for arduino

Why won't my motors work? My setup is as followed: arduino mega 2560 -> L296N motor controller -> Gikfun 3-6v dc motors. To power the motors the setup is as followed: arduino mega 2560 5v -> ...
0
votes
1answer
38 views

Servomotor AND Button

I am having trouble trying to make servomotor and button work together. The button code here below works fine when alone in a separate code but when it is transferred to the code with the servomotor ...
-1
votes
1answer
28 views

Controlling Multiple Brushless Motors with Arduino

I'm working on making an FPV racing drone as an introductory project to using Arduino. I need to be able to control four brushless motors using an Arduino Uno. First of all, does anyone have any ...
0
votes
0answers
23 views

How do I write my code to reverse the motors in the opposite direction so the RSLK can move backwards?

I've assembled the TI RSLK Robot Maze Edition for a final project for my embedded systems class. Instead of using the MSP432P401R LaunchPad that came with the kit to control the power board, I've used ...
0
votes
2answers
62 views

Adafruit motorshield v2.3 not working

I want to connect my adafruit motor shield v2.3 to a touch board from bare conductive so that the motor turns when one of the electrodes is touched. I've tested the touch part and that isn't a ...
0
votes
1answer
145 views

L298N Dual Motor Controller Enable Pin has power but motors not working

I am trying to get the L298N to work with a simple DC motor. For now, I have simplified the setup and the code to the basics to try to get it to work. I am using the following wiring setup with no ...
0
votes
0answers
24 views

MPU6050 with Arduino I2C Unreliable with Motor Noise

I have an autonomous wall-tracking robot that uses relative angle changes from a I2C-connected MPU6050 module along with ultrasonic 'ping' sensors for motor speed control to acquire and then track a ...
0
votes
0answers
24 views

Trying to get a servo motor to move to certain setpoints when a control potentiometer shows certain values

Here's my Code so far: void setup() { Serial.begin(9600); } void loop() { float a; float angle; int setpoint; a = analogRead(A1); angle = map(a, 0, 1023, 0, 180); if ( (angle>0) &...
0
votes
1answer
58 views

Trying to control DC motor speed with PID

i'm trying to control a DC motor with PID. I have already made a code where i control the motor with an ultrasonic sensor (for distance) but now i need to run the motor at a given RPM (the Output). I ...
0
votes
2answers
74 views

How to toggle LED and motor on button press?

we want to have a LED turn on with the press of a button, and become brigther and brighter as times go by (whithin a defined time frame), and when it reaches maximum brightness to turn off for a ...
0
votes
1answer
23 views

How to Control 2-wire Rotary-Gear Linear Actuator

Any ideas how to control a 2-wire DC 5V 10mm Stroke Mini Linear Actuator based Rotary Gear Motor? Most linear actuators (aside from solenoids) are controlled via 3-4 wires. Do I need a separate motor ...
0
votes
2answers
166 views

Position Feedback for Stepper Motor

I want to rotate a gearwheel with a stepper motor. While Arduino is on everything is well. My gearwheel transfer its power to a gear worm. The worm will go 10th cm and back repeatedly. When I cut the ...
0
votes
0answers
23 views

To stop the geared DC motor based on the number of rotation

I am doing a small project in which I need to stop rotating the dc geared motor based on its number of rotation (in my case I need only 2 rotation), after two rotation it should stop rotating. I am ...
0
votes
0answers
35 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 #...
0
votes
0answers
167 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
36 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
70 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/...
-1
votes
1answer
33 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 ...
0
votes
1answer
66 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
37 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 ...
-1
votes
2answers
102 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
0answers
318 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
37 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
211 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
25 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
1answer
48 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
63 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
2answers
53 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 ...
0
votes
2answers
63 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
0answers
35 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
1answer
141 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
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 ...
0
votes
1answer
131 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
40 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 ...
0
votes
1answer
88 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 ...
0
votes
3answers
98 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 ...

1 2 3 4 5 12