PWM (Pulse-width modulation) is a technique for controlling power to electrical devices, made practical by modern electronic power switches.
Questions tagged [pwm]
468 questions
0
votes
1 answer
Arduino External Interrupt Not Fast Enough
I've been trying to measure the time that the line is high on the Arduino. It goes high, then stays high for a couple of milliseconds. Then it gets pulled low for 1us and then floats back to high. My code doesn't seem to recognise the line getting…

Peter
- 107
- 1
- 15
0
votes
1 answer
How to program ESC to increase/decrease PWM in increments
I've coded with Python before however, I am in the process of learning C and from what I have been told Arduino is quite similar to C in some aspects (at least with coding). I noticed that my when I run the code on my robot it jolts due to the quick…

Bazfred
- 67
- 4
0
votes
1 answer
Simulink From block accepting values from matlab code
I have the following Simulink model : DC/AC Half-Bridge Inverter, that uses an PWM block (inside the Green Frame) to generate the switching signals to the IGBTs, The From block (inside the Red frame) accepts a signal from the PWM using the Goto…

KADEM Mohammed
- 1,650
- 2
- 23
- 45
0
votes
0 answers
TSMP77000 IR Sensor Module for Remote Control Systems
I use tsmp77000 IR sensor module for remote control systems with tv remote controller. Tsmp77000 has active low output.
from output of tsmp77000 with tv remote controller on/off
from my mcu pwm output
I generated signal with 38kHz and %50 duty…

kbtr
- 1
- 1
- 3
0
votes
1 answer
Using Arduino timers
I am using this Arduino code to generate a 5V, 200 KHz pulse with 50% pulse-width.
void setup() {
// put your setup code here, to run once:
pinMode(pwmpin, OUTPUT);
pinMode(FBo, INPUT);
pinMode(FBi, INPUT);
noInterrupts(); // disable all…

Atal Khattak
- 71
- 9
0
votes
1 answer
Matlab measure pulse width and plot over time for jitter evaluation
I want to measure the low pulse length of a signal and then plot it to see if the pwm ratio changes during run time of that signal.
The signal it self was acquired using an oscilloscope and stored as a cvs file, channel 2 is a pulse signal where i…

Moes
- 1
- 2
0
votes
2 answers
Generating a tone with PWM signal to a speaker on a PIC32 microcontroller
I'm currently working on generating a tone on a PIC32 device. The information I've found has not been enough to give me a complete understanding of how to achieve this. As I understand it a PWM signal sends 1's and 0's with specified duty cycle and…

ChrisA
- 15
- 1
- 4
0
votes
1 answer
How to use step size to find the tone frequency in sine table? STM32
I'm trying to use the Sine Table lookup method to find the tone frequency at different step size, but when I'm converting the floating point to integer and use the oscicopte to view the frequncy, it can't display any things on screen.
Does anyone…

user3435575
- 31
- 1
- 8
0
votes
2 answers
Can't control any servo with my RaspberryPi 2
I am having the problem, that I am not able to control any of my servos I have. I have two servos, one is a normal servo used in model planes and the second one is a micro sized servo.
I wired both of them separately (The signal cable to a GPIO pin…

pythoniosIV
- 237
- 5
- 18
0
votes
0 answers
How can i convert MP3 into PWM?
For a project that I am doing I am trying to essentially convert an mp3 file into vibrations. I have talked to staff at SparkFun Electronics who set me up with the Lilypad Vibe Board and the Arduino Uno. It is in my understanding that with the…

Megan Patterson
- 1
- 2
0
votes
2 answers
PWM signal generation based on Mic input
I am using MPC 7555 controller. It has a 16 bit sigma delta ADC.
A signal called mic input is fed to this ADC pin. based upon the voltage , a PWM signal of same frequency of ADC signal sampling should be generated.
For e.g.
0.1 V = 2 percent
0.2 V…

gabbar
- 49
- 1
- 8
0
votes
0 answers
Android: Trouble varying vibration intensity in loop
I'm attempting to vary a phone's vibration according to a pattern using PWM in order to change it's speed. I'm able to get this to work:
vibrator.vibrate(patternA, 0);
but when I put the vibrator call in a loop like so:
final int[] rampIntensity =…

nelmstr
- 1
- 3
0
votes
2 answers
Duty Cycle adjustment Fast PWM Mode
As per the datasheet of Atmega328, Timer0 fast PWM mode can be selected by setting WGM02:00 to either 011 or 111.
When we set Fast PWM mode using 111, TOV Flag set on TOP. Also TOP is equal to OCR0A. Now ON time of PWM is controlled using OCRA.…

Mahesha Padyana
- 431
- 6
- 22
0
votes
0 answers
PWM QT GUI in friendly arm mini2440
I am using a mini2440 board. I want to develop a gui for pwm that can increase and decrease the frequency of the signal. It has four buttons - start, stop, max and min - but pressing the max button makes no change in freq. By using the start and…

Gaurav Sharma
- 1
- 1
- 7
0
votes
1 answer
Why the servo keep shaking when I used PWM to control it on raspberry pi
I am trying use GPIO to simulate pwm output to control a servo on my raspi B board. But the servo keep shaking and can't stop in a expect postion. Any one know the reason about that?
The source code may like below:
import RPi.GPIO as…

Chris Feng
- 189
- 5
- 19