DELTA67
Newbie level 5
- Joined
- Sep 13, 2013
- Messages
- 10
- Helped
- 0
- Reputation
- 0
- Reaction score
- 1
- Trophy points
- 1,283
- Activity points
- 1,338
OCR2A = pgm_read_byte_near(sin256 + (uint8_t)(icnt + A_OFFSET));
OCR1A = pgm_read_byte_near(sin256 + (uint8_t)(icnt + B_OFFSET));
OCR1B = pgm_read_byte_near(sin256 + (uint8_t)(icnt + C_OFFSET));
Thanks FvM.I suggest
scaled table value = actual frequency/50 Hz*original table value
As table uses straight binary representation (centered at 128), you need additional math to keep the center value during scale operation.
How to keep the centre value?scaled table value = (actual frequency/50 Hz)*original table value
Did you notice that I wrote:Can you give me a formula please?
All the details are on the project's page on github (link given in the 1st post).Did you notice that I wrote:
"it depends..", "let´s say", "if", "there are various ways", "I don´t know" ....
Klaus
Your questions may be general and independent, but not the answers.My questions are, I think, general and independent of that project:
Using DDS method you can generate any frequency less than half PWM freq without changing the LUT length.frequency:
If you have 23kHz carrier and want to generate 50Hz, then you need to use 23000Hz/50Hz = 460 PWM pulses for one full wave.
Accordingly you need 160 PWM pulses if the carrier is 8kHz.
One possibilityHow to keep the centre value?
Yes. DDS method.Using DDS method you can generate any frequency less than half PWM freq without changing the LUT length.
This exactly is what the DDS software does for you.frequency:
If you have 23kHz carrier and want to generate 50Hz, then you need to use 23000Hz/50Hz = 460 PWM pulses for one full wave.
Accordingly you need 160 PWM pulses if the carrier is 8kHz.
I need frequencies from 0 to 100Hz.
Do some one knows a practical VFD project in the web?
As you mentioned above, the code implements DDS method and isn't restricted to a specific output frequency. The LUT generates 100 % modulation as you easily see. A VFD however can't run with constant V/F above rated motor frequency without either using a higher input respectively DC link voltage or rewiring the motor from wye to delta (if not already delta wired).In fact I don't know for which frequency the LUT is generated. The guy on github don't provide this info.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?