Skip to main content

Questions tagged [pwm]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 views

Arduino Uno can only produce certain PWM duty cycles

I'm using the servo library on an Arduino Uno R4 to control a servo. However, when I use Servo.microSeconds(), the duty cycle only changes with every 100th ...
Pappa's user avatar
  • 1
0 votes
0 answers
52 views

pinMode PWM: Unable to do this when using /dev/gpiomem. Try sudo?

I have been scouring the web for a few hours now and I cannot seem to fix the problem. I am using RPi 4B 8GB RAM with Ubuntu 22.04 server. When trying to run C++ code with wiringPi to activate PWM I ...
owhenthesaints's user avatar
0 votes
1 answer
40 views

Robotic arm simulation in MikroC

I am supposed to control a robotic arm with a servo motor. The angle of rotation of the servo motor depends on the voltage of a potentiometer. A0 can read analog inputs and C2 can hold a PWM signal. ...
Volpina's user avatar
  • 101
0 votes
2 answers
126 views

How to: implementation problem with Position control on a 3 Wheels robot (2 motorized) with velocity profile of trapezoid

I'm trying to apply position control in a wheeled robot, controlled by an arduino mega. The robot has two wheels powered by two dc motors (1 motor for each wheel) and one castor wheel. In order to ...
maneedos's user avatar
-1 votes
1 answer
141 views

H bridge duty cycle vs maximum voltage

I've just burnt out an L298n H bridge, not surprising, but I thought it'd be ok for low load testing. Apparently not. I'm considering ordering these to replace them - Hilitand DC 5-12V Motor ...
Ben Bird's user avatar
1 vote
1 answer
636 views

Impact of using PID Output as a Change (Delta) vs Absolute

I am trying to control speed of a motor using PID. It seems like I have two approaches. Using PID to calculate the absolute duty cycle value of the PWM Using PID to calculate the change needed in the ...
Ligo George's user avatar
1 vote
1 answer
211 views

Feed-forward controller with lookup table

does anyone have experience in implementing a feed-forward controller for a hydraulic cylinder? Often, when a hydraulic cylinder is controlled with PWM values, people (https://drive.google.com/file/d/...
Joe's user avatar
  • 324
1 vote
1 answer
264 views

What is the noise in this PWM signal?

I'm in the process of calibrating servos while constructing a new hobbyist robot arm. When testing the base rotation servo I noticed some unexpected noise in the PWM signal while the servo is in ...
RowanP's user avatar
  • 339
1 vote
1 answer
94 views

What network protocol/control units are motor-based robots controlled with?

I know most vehicles are controlled via CAN (Controlled Area Network) protocol through an ECU (Electronic Control Unit) which send/receives data using this protocol and then sends/receives Amps/Volts ...
the big pescado's user avatar
2 votes
2 answers
90 views

How to handle motor stall zones in differential drive point-forward go to goal algorithm?

I am implementing the Go To Goal algorithm for a differential drive robot as described here and in this video. The issue I have is that there is a large dead zone in pwm values where the motors are ...
Ezward's user avatar
  • 356
1 vote
4 answers
923 views

PID control brushed motors via PWM using Encoder Clicks at SetPoints/Measurements

I've read numerous posts (1 , 2, 3 ) about using PID to control motors. All examples I've seen deal with the control signal being in the same units as the measurement signal. For example, use PID to ...
Phil Glau's user avatar
  • 111
0 votes
0 answers
36 views

Motor driver PWM frequency

What can happen to the motor driver if I give input PWM frequency more than the rated(capacity)? I'm using Maxon motor with specifications: Operating on 24V Speed: 600 RPM Nominal Torque: 21 Kg-cm
Vivek's user avatar
  • 1
0 votes
0 answers
130 views

Serial command receiving failure with Arduino and Adafruit shield from C# desktop application

For a long time I use Arduino Uno controller and Adafruit Servo Shield with 6.3V 1000 uF capacitor, powered with 6V 8Amp adapter to control 8 digital servo motors ...
user24233's user avatar
0 votes
0 answers
56 views

Relation between PWM frequency and torque

I am using Pololu G2 18v15 to drive a maxon motor. The motor is supposed to drive a load in a sinusoidal trajectory against gravity with maximum torque of 0.0634 NM with max speed of 5 rpm. I am using ...
vacky's user avatar
  • 417
1 vote
0 answers
43 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 ...
Michael Julyus Christopher M.'s user avatar
0 votes
1 answer
512 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 ...
sirshakir's user avatar
1 vote
1 answer
37 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 ...
Luis's user avatar
  • 163
0 votes
1 answer
301 views

are mg996r servo failures common?

I am new to 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 set up ...
hackware's user avatar
0 votes
3 answers
120 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 ...
Binary Yildirim's user avatar
1 vote
1 answer
205 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 ...
Nick Qian's user avatar
2 votes
1 answer
227 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 ...
AndyM's user avatar
  • 31
0 votes
1 answer
644 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 ...
Ammar Hussein's user avatar
5 votes
2 answers
392 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 ...
Dave's user avatar
  • 51
7 votes
1 answer
6k 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 ...
Saeed Molaie's user avatar
3 votes
3 answers
284 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 ...
user11770's user avatar
0 votes
1 answer
700 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 ...
Ramesh-X's user avatar
  • 192
1 vote
3 answers
886 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 ...
John Euell's user avatar
0 votes
1 answer
550 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 ...
Cheol  Shim's user avatar
1 vote
1 answer
298 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 ...
Daniel's user avatar
  • 115
3 votes
3 answers
2k 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 ...
Biscuits's user avatar
  • 217
2 votes
2 answers
588 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 ...
Bernard Meunier's user avatar
0 votes
2 answers
5k 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 ...
Pratik Panchal's user avatar
4 votes
3 answers
3k 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?
RaGe's user avatar
  • 193
2 votes
1 answer
303 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 ...
EEd's user avatar
  • 419
4 votes
3 answers
10k 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 ...
Damjan Dakic's user avatar
3 votes
1 answer
2k 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 ...
Cains's user avatar
  • 131
5 votes
1 answer
6k 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 ...
Joseph Roberts's user avatar
0 votes
3 answers
2k 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 ...
Punit Soni's user avatar
-1 votes
1 answer
270 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 ...
Punit Soni's user avatar
7 votes
3 answers
1k 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 ...
gideon's user avatar
  • 173
5 votes
3 answers
7k 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 ...
Robert's user avatar
  • 361
2 votes
1 answer
441 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 ...
Excrubulent's user avatar
8 votes
2 answers
566 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 ...
Miro Markaravanes's user avatar
8 votes
1 answer
927 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 ...
Daman's user avatar
  • 81
8 votes
2 answers
385 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 - ...
Lord Loh.'s user avatar
  • 575
12 votes
2 answers
20k 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 ...
Rocketmagnet's user avatar
  • 6,457