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 pulse train
I will give you a little introduction:
I am working on a water fuel cell of Stanley Meyer. For those who don't know the water fuel cell you can see it here.
For the water fuel cell one has to build a circuit. Here is the diagram:
Right now I am…

Arturo Veras
- 145
- 2
- 10
0
votes
1 answer
How to setup PWM output on an LPC11CXX series microcontroller without any timer resets
Background: I have this LPC11C24 microcontroller that I'm working on that uses a single 32 bit timer to read PWM input on one pin and control PWM outputs on 2 other pins. Being that input and output are on the same timer, I do not do any resets of…

LaneL
- 737
- 1
- 6
- 25
0
votes
2 answers
How to create an Accurate Timer in Arduino Due
I'm trying to create some PWM waves using a TC timer in Arduino Due. My problem is that I cannot generate accurate frequencies using this kind of timers.
Here's a simple code for what I'm trying to do :
static void setupTimer(uint32_t…

M.Moncif
- 11
- 4
0
votes
1 answer
Arduino Due PWM
I want to be able to use the Arduino Due PWM at higher resolution and frequency than what is available by default. I use IDE 1.6.8, that was the most recent a few weeks ago when I installed it (I think 1.6.9 may be on its way now). After searching…

Zorglub29
- 6,979
- 6
- 20
- 37
0
votes
2 answers
RF motor/servo control
I have been wrecking my head over this the last weeks and cannot find useful information online on how I should do this.
The Goal:
Drive several servo/RC motors wireless from one pi to another pi.
In essence, I want to build a RC remote control…

Misha
- 556
- 1
- 8
- 25
0
votes
2 answers
uC/OS-III Systick & Peripheral timer0 for PWM interfere
I'm having trouble in getting a PWM signal for LEDs running smoothly on a NXP LPC1857 running uC/OS-III. Only when I disable the OS systick running at 1ms the flickering which regulary occurs stops.
I have set up my timer with 4 match registers, one…

Futience
- 1
- 2
0
votes
0 answers
MATLAB and Arudino, set registers (PWM)
I am using an Arduino MEGA with MATLAB for the first time to try and control a servo motor, the issue is that the default PWM frequency for the pin I am trying to use is at 976Hz, while I need it to be around 50Hz. I found code for changing the…

oblivioncth
- 315
- 3
- 11
0
votes
1 answer
how to get trapezoidal pwm signal
I generate a PWM signal with a microcontroller Kinetis, I don't want to get really a digital signal what I'm trying to do is to convert this signal to a trapezoidal one where the T rise and T fall are longer.
I've found that I have to set an RC…

Tova
- 69
- 1
- 5
0
votes
1 answer
Multiple PWM Channels on PIC
I use the PIC16F88 for my project, with XC8 compiler.
What I'm trying to achieve is to control 4 LEDs with 4 buttons, when you press a buttons it increases the duty cycle of the corresponding LED by 10%.
When you press the button on RB0 it increases…

Quarky-Up
- 45
- 5
0
votes
1 answer
Running wiringPi-python hardware PWM withoot root
I am attempting to run wiringpi to control the hardware PWM on GPIO 18 on the pi. If I use wiringPiSetupGpio() as below and I run as root everything works. Using wiringPiSetupSys() as documentation suggests does not work, even when ran as…

SpaceCase
- 148
- 2
- 10
0
votes
0 answers
Controlling a servo-motor with PWM on MSP430
I am a beginner coder learning on the MSP430FR4133.
I'm using a servo motor as part of my system, which is controlled by PWM.
The motor rotates across 180°, with a 1ms pulse being far right and 2ms pulse being far left in a 20ms period.…

RDA
- 1
- 1
0
votes
1 answer
Frequency issues in simulink interface with arduino
I'm trying to generate 6 PWM signals by comparing sine and triangular waves on simulink.In the scope I'm getting the frequency of PWM signals as 50 HZ. But when I deploy the model onto arduino, the frequency of the PWM signal is getting reduced to…
0
votes
0 answers
How to implement Sine PWM using Tiva TM4C123G?
I am trying to implement the SPWM (Sine PWM) using the TM4C123G Microcontroller.
I tried to do the same thing using another microcontroller, the STM32F100RB and it kinda worked. Here is the link for my repository in case someone want to take a…
0
votes
1 answer
pwm generation using fpga
How to generate a PWM signal using an FPGA? Which is best method to generate a variable duty cycle?
I tried to solve this problem by using the following code but two or three errors occurred.
This is my code:
library IEEE;
use…

Snehal Baviskar
- 21
- 1
0
votes
1 answer
Attribute error : RPi.GPIO.PWM has no attribute 'ChangeDutyCycle'
So i'm making a little robot using a raspberry pi B+ , everything is going fairly nicely, but I get this error message that I don't seem to be able to solve ..
Attribute error : RPi.GPIO.PWM has no attribute 'ChangeDutyCycle'
Here's two things you…

Dominus
- 808
- 11
- 25