arduino control 3 phase inverter

i want to generate 3 PWM 120 degrees out of phase with arduino uno because i want to control six pulse igbt to control 3 phase motor ( 220v/380v // f=50hz // rpm = 1430 ) and display the frequency in LCD


i found a code (Unknown Language) #it's attached to this topic# but i have some problems with output frequency

can you help me to fix the code for my arduino uno and thx.

Capture.PNG

Capture.PNG

include.doc (37.5 KB)

The language is C so it is compatible with Arduino (Uno or otherwise). However, the code has line numbers that should not be there.

The code depends upon refclk (line 25) which you have to measure.
The frequency is currently set to 1000 Hz at line 50, but the frequency probably depends upon refclk as well.

The code is NOT set up for 0, 120 degrees and 240 degrees.

Step 1: Learn to read and program in C, or take this to the "Gigs and Collaborations" forum.

Programming in C (or others) is not part of my area of study .... so how am I going to understand this?

THANK YOU for your help "vaj4088" ... I understood the trick of REFCLK and frequency

but I can not understand a lot of steps to find the lines that must be removed....

and you said "The code is NOT set up for 0, 120 degrees and 240 degrees." >>> So it's on what?

It seems that you're saying that you don't know C or C++, and you don't intend to learn either, but you still want to program an Arduino to do something as complicated as operating a three-phase variable frequency drive in real time.

Do I understand you correctly?

Nooo...

i said it is not part of my area of study !! not i don't want to learn about it
of course i want to learn more about the language c

i already have a little idea about it by some searching on net

i just need someone to make me understand this code more clearly _ (to be a teacher for this problem)

the english is the 3rd language in our country so i'm sorry if i can not pass the information correctly

Hi,

Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html
then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

What is your area of study, and is this a college/university project?

What is your electronics, programming, arduino, hardware experience?

Thanks.. Tom... :slight_smile:

#TOM thanks for information about how to post a code it's too much easier by that way ....

university project _ the code here is just a part of the project

area : power electronics & industrial electronics

i know enough about electronics but just a little bit about programming, arduino just what i've learned by the internet and some tutorials

Hi Loopi,
Did you solve the code issue? Can you share your code is you have please.
Regards
Cobus Verster.