1 phase inverter frequentie adjust?
Posted: Thu Jul 21, 2011 7:42 pm
Hi all,
I'm currently working on an application for driving a 1 phase FAN and if all goes well I'm going a step further and try to drive a 1 phase induction motor.
I have searched online how other people have done the same thing and did some research myself and with some help of a online calculator I have made a full sine wave look-up-table.
The lookup table contains 50 measurement point with an amplitude of 1023. This data is been stored in a data array within a calculation block.
(I dont know how to use a lookup-table in combination with the PWM module.)
This data is been givin to the PWM module via a simple while loop.
With the data of my lookup table and the following PWM module settings:
Period Register = 255
Clock Source = Clk / 1
uC clock = 19.6608 MHz
The output PWM signal looks like this.

On the output of CCP1 (PWM1) I have build an RC-filter to filter the AC signal out so i'm able to see it.
After the RC filter the signal looks like this.

As you can see my sinewave has a frequentie of 25.1Hz and a period time of 39.8 milli seconds. ( F = 1 / T or T = 1 / F)
My goal is to alter the frequentie from 25 Hz to about 150Hz. But I dont know how to do this. Maybe you can help me with this.
Also in my flowcode I needed to put an delay of 780 micro seconds to get a 25Hz signal.
I hope that you can help me change the frequentie between 25 and 150Hz with the use of a pot. meter.
Regards Jordy
I'm currently working on an application for driving a 1 phase FAN and if all goes well I'm going a step further and try to drive a 1 phase induction motor.
I have searched online how other people have done the same thing and did some research myself and with some help of a online calculator I have made a full sine wave look-up-table.
The lookup table contains 50 measurement point with an amplitude of 1023. This data is been stored in a data array within a calculation block.
(I dont know how to use a lookup-table in combination with the PWM module.)
This data is been givin to the PWM module via a simple while loop.
With the data of my lookup table and the following PWM module settings:
Period Register = 255
Clock Source = Clk / 1
uC clock = 19.6608 MHz
The output PWM signal looks like this.

On the output of CCP1 (PWM1) I have build an RC-filter to filter the AC signal out so i'm able to see it.
After the RC filter the signal looks like this.

As you can see my sinewave has a frequentie of 25.1Hz and a period time of 39.8 milli seconds. ( F = 1 / T or T = 1 / F)
My goal is to alter the frequentie from 25 Hz to about 150Hz. But I dont know how to do this. Maybe you can help me with this.
Also in my flowcode I needed to put an delay of 780 micro seconds to get a 25Hz signal.
I hope that you can help me change the frequentie between 25 and 150Hz with the use of a pot. meter.
Regards Jordy