Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [pwm]

Pulse-width modulation (PWM) is varying the duty cycle of a rectangle wave, usually with a constant frequency.

1
vote
0answers
22 views

how to normalize PWM if the value exceeds the maximum speed limit

I have implemented inverse kinematics for nonholonomic mobile wheeled robots, and the RPM range of the motor that I used is -50 to 50, while for PWM is from 1300 to 1700. But in certain cases, the RPM ...
0
votes
1answer
60 views

Raspberry Pi Robot Car won't drive straight, right wheel is faster [duplicate]

My Raspberry Pi car bot will not drive straight at all. After examining and listening to the two motors, I noticed that the right wheel is a lot faster. I have matching wheels and the same code ...
0
votes
1answer
21 views

Will a change of motor driver improve motor performance?

I have this motor, from datasheet it works on the 6-12V range and has a no load current of 0.52A, and a stall current of 20A. I want to test the motor before buying an expensive motor driver. I have ...
0
votes
1answer
63 views

are mg996r servo failures common?

I am new the the small servo area... I bought a eBay 6DOF Robotic Arm, and 12 mg996r servos to go with it... using an arduino and i2c PCA9685 16 X pwm board, with the example code from adafruit, i ...
0
votes
2answers
35 views

How to control the speed of servo

I am using FPGA board and servo, I read that with PWM I can control where the servo will rotate. If the duty cycle in PWM is 1.5 ms it goes to the center, if it is 2 ms it goes to clockwise and if it ...
1
vote
1answer
97 views

how to sync the timer in control system with ROS?

To simulate a system, a global timer will be set and all submodules will be synchronized with that timer to work together. such as PID controller, kalman filter, PWM module etc. How do you sync the ...
2
votes
1answer
141 views

BBC Micro bit PWM link to CC3D quad controller

I am trying to create the following set up as a project in education: QAV250 quad with CC3D controller 2xBBC Micro:bits used as the receiver, giving out 50 Hz PWM signals to the CC3D controller - one ...
0
votes
1answer
461 views

Arduino output SPWM using Matlab

I have Arduino and Matlab which has hardware support package for Arduino. I want to create SPWM signal (sinusoidal pulse width modulation) to be the output of the Arduino board. I could generate the ...
5
votes
2answers
223 views

Should I use an arduino to control my balancing robot's motors?

I'm building a 2-wheel balancing robot from old parts. DC motors from an old printer, wheels from a BBQ, bodywork from an old optical drive etc. The brain of the robot is a Raspberry Pi 3. I'm using ...
5
votes
1answer
3k views

Quadcopter PID Algorithm

I'm trying to implement a PID control on my quadcopter using the Tiva C series microcontroller but I have trouble making the PID stabilize the system. While I was testing the PID, I noticed slow or ...
4
votes
3answers
212 views

Alternative to BeagleBone Black for Node.js based remote control project?

I am working on a remote control project that involves using Node.js and Socket.io to transmit joystick data from a webpage to my BeagleBone Black. However, I am somewhat disappointed with the ...
0
votes
1answer
316 views

Change PWM values according to encoder output

I have a motor with an encoder. When I set the speed of the motor it should change its speed so that encoder readings per second should fit an equation $y = ax^2 + bx + c$ where ...
1
vote
3answers
253 views

How can I increase the resolution of a PWM signal?

Say I have a motor and I want it to spin at exactly 2042.8878 revolutions per minute. Say I have a very precise sensor to detect the RPM of the motor to a resolution of 1/1000th of a revolution per ...
0
votes
1answer
378 views

How to use specific ESC,BLDC motor through Arduino Uno R3?

Attempt to clean up: I'm trying to use this motor with this ESC and an Arduino Uno R3. Typically, I used the PWM pins when I use the Arduino and an ESC, but I can't control the motor even if I use ...
1
vote
0answers
180 views

Quadcopter force/torques duty cycle conversion

after having been determined my control loops for my quadcopter project, I'm going to determine the motor commands (PWM duty cycle) from the motor forces/torques. I was following the guidelines of ...
2
votes
3answers
1k views

Why do my ESCs stop working?

I'm new to robotics and this is my first time building a quadcopter. I'm unable to work out why I keep losing ESCs. Most recently in testing, I've managed to calibrate all 4 ESCs and accurately ...
1
vote
1answer
493 views

How to control a dc motor

I have 2 of these 12v motors and a 12v battery http://www.enigmaindustries.com/Motors/Bosch_EV_Warrior.htm I would like to know what the best solution for controlling this motor with an Arduino Uno ...
0
votes
2answers
2k views

Drive motor voltage / other specifications of Roomba 650

I salvaged some parts off my dead Roomba 650, and I'm trying to use the drive motor assembly . I got the pinout of the connector but I don't know what voltage / PWM / other specifications are there ...
4
votes
3answers
1k views

Pulse Position Modulation as used in RC controls

How are several channels multiplexed down to a single physical wire? If two channels are transmitting the same value in the same frame, wont there be an overlap of the pulses?
2
votes
1answer
262 views

PWM PID control for small 2 watts brushed DC motor

It is "good enough" for PID output directly controls, without further modelling, the PWM duty cycle? Logic behind the question is, In case of pure resistance heater, PWM duty cycle percentage ...
4
votes
3answers
5k views

Controlling digital servos

Many websites say that analog servo motors work on 50Hz and digital servo motors work on 300Hz. My question is, does this difference apply only to the inner control loop of the servo or does the user ...
3
votes
1answer
1k views

Outputting a precise voltage in millivolts on Arduino Mega

So I need to output a varying voltage off an Arduino Mega in a range of 17 to 32 millivolts, which I've attempted to do by sending a PWM signal off the board into a low-pass filter which steps down ...
5
votes
1answer
4k views

Quadcopter Throttle and PID mixing to Motor Speed

I've been writing some quad copter software and I am not sure what the best way is to map the throttle and PID inputs to ESC power. My throttle range is 0-1 and my PID outputs are 0-1. My ESC's have ...
0
votes
2answers
1k views

Encoder based speed control for Rover 5

I am trying to get precise control over the speed of rover 5 based robot. It has four PWM controlled motors and 4 Optical Quadrature Encoders. I am using 4-channel motor controller with rover 5 ...
-1
votes
1answer
252 views

Where I can learn algorithms or and find examples of code for controlling a rover? [closed]

I am a programmer by profession and new to Robotics. I have studied ECE, so know electronics, but not very familiar with mechanical aspects of robotics. I am working on a learning project with Dagu ...
7
votes
3answers
863 views

Reducing motor speed without jamming up

So I built three little bots so far. One with a raspberry-pi, (6V motors), one with an arduino (12V motors), and another with an arduino but a hacked remote car (7ish, volt motors): The problem I ...
5
votes
3answers
6k views

Limits of PWM, Timers and Interrupts?

I have a robot with two wheels/motors and each has a quadrature encoder for odometry. Using the wheel/motor/encoder combo from Pololu, I get 48 transition changes per rotation and my motors give me a ...
2
votes
1answer
296 views

How do I interface a TLC5947 with small motors?

This is a follow-up to this question: Prototyping a device with 25-100 small DC 3.0V motors, is Arduino a good fit? I've decided based on the answer that sending the control signals through multiple ...
8
votes
2answers
499 views

Motors response different with high-frequency PWM

We are making a junior soccer robot and we just got our brilliant motors from Maxon. Setting the PWM timer to low-frequencies (around 39kHz or 156 kHz ) the robot acts as expected. But this produces ...
8
votes
1answer
853 views

Dropping PWM on Ardrone Parrot 2.0

I am having some issues with the ARDrone Parrot 2.0 and hope someone else may be running into the same thing. While hovering, the drone is (seemingly) randomly losing altitude then recovering . It is ...
8
votes
2answers
332 views

How do I model a robot?

The answers I received to the question on training a line following robot using reinforcement learning techniques, got me to think on how to train a robot. I believe there are essentially two ways - ...
12
votes
2answers
17k views

What do the commutation waveforms look like for a brushless motor?

I have seen waveforms for driving a brushless motor. I guess this is the waveform used for the simpler block commutation. But if I want to do sinusoidal waveforms, what does the PWM signal look like ...