Maximum PWM Frequency in Pictory

Topics about the Software of Revolution Pi
Post Reply
nithinkumar
Posts: 3
Joined: 16 Jan 2020, 14:14
Answers: 0

Maximum PWM Frequency in Pictory

Post by nithinkumar »

Hello Team,

I am using Revolution Pi Connect+ and DIO module. when trying to generate a PWM output by configuring in the pictory, the maximum frequency is 400 Hz. I need it for a higher frequency of around 1-2 kHz. is it possible to change in the pictory? And also I need to read PWM input from a function generator. is it possible, if yes how?
Please help!

Thanks and Regards,
Nithinkumar Mirle Prasannakumar
User avatar
dirk
KUNBUS
Posts: 1942
Joined: 15 Dec 2016, 13:19
Answers: 4

Re: Maximum PWM Frequency in Pictory

Post by dirk »

Hi Nithinkumar, unfortunately 400 Hz is the highest available PWM frequency. Please have in mind that at 400 Hz the resolution of the PWM is handled in 10% steps.
nithinkumar
Posts: 3
Joined: 16 Jan 2020, 14:14
Answers: 0

Re: Maximum PWM Frequency in Pictory

Post by nithinkumar »

Hello Dirk,

Thanks for your reply. I have the below questions.

1. can you please explain what exactly 10% steps mean?
2. Can Rev Pi read PWM input?
User avatar
dirk
KUNBUS
Posts: 1942
Joined: 15 Dec 2016, 13:19
Answers: 4

Re: Maximum PWM Frequency in Pictory

Post by dirk »

Hi nithinkumar,
Have a look here How to Configure Digital I/O Modules
Especially the "OutputPWMFrequency" parameter:
This is where, for all outputs that are to be operated in PWM mode, the frequency at which the PWM signal is to be generated is specified. In general, the higher the frequency, the higher the step size in which the clock ratio can be set.
There is also a nice viddo tutorial available Tutorial 15 – PWM am RevPi DIO
nithinkumar
Posts: 3
Joined: 16 Jan 2020, 14:14
Answers: 0

Re: Maximum PWM Frequency in Pictory

Post by nithinkumar »

Hello Dirk,

Thanks for your input.
Can we generate hardware PWM? if yes which are all the i/o pins enabled?

Thanks and Regards
Nihinkumar
User avatar
dirk
KUNBUS
Posts: 1942
Joined: 15 Dec 2016, 13:19
Answers: 4

Re: Maximum PWM Frequency in Pictory

Post by dirk »

Hi Nihinkumar, the GPIOs of the DIO are switched using the PiBridge. So you do the PiCtory configuration of an output to use PWM. Then you save and reset the driver. Then you can apply the PWM value to the output channel i.e. by using "piTest -w O_1,10" i.e. 10% on/90% off.
Post Reply