chipKIT® Development Platform

Inspired by Arduino™

Generating PWM on ChipKit Uno32

Created Wed, 14 Nov 2018 11:15:58 +0000 by moizurrehman4


moizurrehman4

Wed, 14 Nov 2018 11:15:58 +0000

Hello everyone, I have to generate PWM having 0-200KHZ using ChipKit Uno32 board. I will need 2 potentiometer to vary duty cycle and frequency. I need help since I'm not very familiar with Arduino programming.


majenko

Wed, 14 Nov 2018 12:16:15 +0000

You can use the function analogWriteFrequency() to set the frequency, and analogWrite() to set the duty cycle.