Irev-Dev / Arduino-Atmel-sPWM

Implementation of an sPWM signal
154 stars 79 forks source link

three phase inverter #9

Open athulpreet opened 4 years ago

athulpreet commented 4 years ago

thank you for providing such a great article with explanation.

can you please modify the same code by using timer 0 and timer 2 as i am doing a three phase inverter and i need three spwm signals from arduino uno.

Irev-Dev commented 4 years ago

It might be possible, I'm not entirely sure. I have had a go at a three phase inverter a few years ago but got stuck and ran out of steam. I can't remember what the issues I hit were, it was a long time ago.

herman75156106 commented 3 years ago

I wish you would return to a 3 phase inverter project? The single phase and variable frequency is great. Many thanks.

herman

Irev-Dev commented 3 years ago

If you figure it out @herman75156106, I'm very willing to accept a PR.

herman75156106 commented 3 years ago

Please forgive my ignorance: PR ?

I have your single phase working now at 120 volts AC 60hz

Ultimately i want to design a 3 phase 208 AC for an electric car.

My work until meeting you was long hand programming the pulses via micro second delay.

You very effectively generate a table. Great!

The 3 phase is 120 degrees out of phase with respect to each other phase.

I originally was just going to run an array for 360 degrees. With pulses for each degree for the total 3 phases, 120 degrees respect to each other.

I could do this from one of your tables?

But for now what is PR?

Back in 1967 i built 7 electric cars, six from the ground up. DC motors, relay controls for speed, deep cell lead acid batteries.

I sold that company, then went to college for 10 years. Only now i have decided to use IGBTs. Very efficient.

I go back to when Bill Gates was with MITS with the altar computer. Just assembly programming at first. 1975

Thank you for your prompt reply. Just what is PR?

Sincerely,

Herman

On Mon, Mar 1, 2021, 12:20 PM Kurt Hutten notifications@github.com wrote:

If you figure it out @herman75156106 https://github.com/herman75156106, I'm very willing to accept a PR.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Irev-Dev/Arduino-Atmel-sPWM/issues/9#issuecomment-788164249, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATBJFQYNXMBXQAXQIAVMCKTTBPLHLANCNFSM4SQKNH2A .

herman75156106 commented 3 years ago

Kurt, you may also reach me at herman75156@gmail.com.

Thanks

herman

On Mon, Mar 1, 2021, 12:20 PM Kurt Hutten notifications@github.com wrote:

If you figure it out @herman75156106 https://github.com/herman75156106, I'm very willing to accept a PR.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Irev-Dev/Arduino-Atmel-sPWM/issues/9#issuecomment-788164249, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATBJFQYNXMBXQAXQIAVMCKTTBPLHLANCNFSM4SQKNH2A .

Irev-Dev commented 3 years ago

Sorry @herman75156106 PR is Github jargon for "Pull request".

Really what I'm saying is that I'm not in a position to do more work on the code/repository, but if you were to get something working and wanted to share it, I would be happy to accept your changes into this code (Pull request is how that's done on github).

I'm glad you find my code useful. If you're making electric cars than it's good to draw inspiration from my work, but I think you'll probably want something a bit more powerful than the 8-bit micros I wrote this code for. 32-bit micros are so cheap these days, no reason not to use them.

herman75156106 commented 3 years ago

Kurt, yes i do intend to ultimately go to a more powerful processor. The arduino just spoils me for preliminary design and testing. I am also using the attiny85 for other dedicated parts of the controller ie issolution via pulse issolution transformers.

At this instant i am thinking one table array. With 3 control points for the 6 IGBTs. I will keep you posted.

Thanks for your attention.

herman

On Mon, Mar 1, 2021, 2:09 PM Kurt Hutten notifications@github.com wrote:

Sorry @herman75156106 https://github.com/herman75156106 PR is Github jargon for "Pull request".

Really what I'm saying is that I'm not in a position to do more work on the code/repository, but if you were to get something working and wanted to share it, You would be happy to accept your changes into this code (Pull request is how that's done on github).

I'm glad you find my code useful. If you're making electric cars than it's good to draw inspiration from my work, but I think you'll probably want something a bit more powerful than the 8-bit micros I wrote this code for. 32-bit micros are so cheap these days, no reason not to use them.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Irev-Dev/Arduino-Atmel-sPWM/issues/9#issuecomment-788236262, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATBJFQY3EEXPIC2CVTSCU53TBPX7ZANCNFSM4SQKNH2A .

Irev-Dev commented 3 years ago

Nice @herman75156106

I'll be very interested to hear about any progress 😁

herman75156106 commented 3 years ago

Kurt, i have been thinking much about a 3 phase inverter system. Contemplating several approaches. the one that repeats in my thinking, i wish to share with you for your thoughts, objectively?

Simply put: 3 separate cpu with a common external clock, and a fourth processor to manage the three that actually generate the 3 phases, each phase 120 degrees phase shift.

One might say too much hardware. An ibm360 mainframe is too much hardware.

A sync trigger from the master cpu maintains sync. all CPUs use same external ckock.

Your thoughts?

Whatever i end up with i will share with you. I personally have no YouTube desires. You may use anything i share with you as you wish.

Please advise.

Herman

On Tue, Mar 2, 2021, 3:29 AM Kurt Hutten @.***> wrote:

Nice @herman75156106 https://github.com/herman75156106

I'll be very interested to hear about any progress 😁

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Irev-Dev/Arduino-Atmel-sPWM/issues/9#issuecomment-788763208, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATBJFQZPJFBLAVTWXLM7XJ3TBSVXTANCNFSM4SQKNH2A .

Irev-Dev commented 3 years ago

I'm not sure @herman75156106, It does sound like a lot of hardware to me but keen to see how you go.

herman75156106 commented 3 years ago

Kurt, i have been attempting to send you pictures of my work, but the mail system will not allow anything i am attempting. 4 MB is the smallest my phone camera allows. Is there a way i can send you pictures and eventually video of my work? Shortly i will be doing 3 phase test on large 3 phase motors. vedeo would be great?

Please advise. Herman @.***

On Sun, Mar 28, 2021, 3:13 PM Kurt Hutten @.***> wrote:

I'm not sure @herman75156106 https://github.com/herman75156106, It does sound like a lot of hardware to me but keen to see how you go.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Irev-Dev/Arduino-Atmel-sPWM/issues/9#issuecomment-808952551, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATBJFQ37V2F5LUAFVGFNE5TTF6EVJANCNFSM4SQKNH2A .

Irev-Dev commented 3 years ago

Oh wow, how exciting. Are you using github via email? Hmm well you could always just send links to videos uploaded to https://imgur.com/? You don't need an account to upload and get a link.

herman75156106 commented 3 years ago

Kurt, i think i will just make private video on youtube and send you the link via this email platform?

In time i may also want to send you my code. I am writing in both arduino C and pure C. I don't wish at this time to publish to the world. It is still a work in progress.

In this situation how is the best way to send you my sourcs cods work?

Shortly i will send you youtube links. I prefer to not put source code piblic at least until the work is more advanced.

Thank you for your attention.

Herman

Ps: today i intend to start actual igbt test on thr AC single phase. this is not my first work with igbt. I designed a 12 volt dc igbt controller i intended to use on a steering control for an autonomous farm tractor using relational GPS. my first use of igbt. I became so excited with igbt i decided to stop the tractor work and built another electric car based on igbt. Here i am now.... My 8th electric car. My last car i built in 1869. Relay speed control.

On Tue, Mar 30, 2021, 1:17 PM Kurt Hutten @.***> wrote:

Oh wow, how exciting. Are you using github via email? Hmm well you could always just send links to videos uploaded to https://imgur.com/? You don't need an account to upload and get a link.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Irev-Dev/Arduino-Atmel-sPWM/issues/9#issuecomment-810474353, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATBJFQYZ5ZIZBKVLDRIW34TTGIISRANCNFSM4SQKNH2A .

herman75156106 commented 3 years ago

Kurt, just a short note to advise you tonight i have started voltage test on the single phase inverter based on your code. I have modified it to allow changes in frequency and sindivission. just low dc in now with no load on the ac output.

I would like to send you video, if needed via YouTube?

Shortly i will go to higher voltage. I need to finalize the igbt snubber.

Please advise of your interests?

Herman

On Tue, Mar 30, 2021, 4:03 PM LM741 @.***> wrote:

Kurt, i think i will just make private video on youtube and send you the link via this email platform?

In time i may also want to send you my code. I am writing in both arduino C and pure C. I don't wish at this time to publish to the world. It is still a work in progress.

In this situation how is the best way to send you my sourcs cods work?

Shortly i will send you youtube links. I prefer to not put source code piblic at least until the work is more advanced.

Thank you for your attention.

Herman

Ps: today i intend to start actual igbt test on thr AC single phase. this is not my first work with igbt. I designed a 12 volt dc igbt controller i intended to use on a steering control for an autonomous farm tractor using relational GPS. my first use of igbt. I became so excited with igbt i decided to stop the tractor work and built another electric car based on igbt. Here i am now.... My 8th electric car. My last car i built in 1869. Relay speed control.

On Tue, Mar 30, 2021, 1:17 PM Kurt Hutten @.***> wrote:

Oh wow, how exciting. Are you using github via email? Hmm well you could always just send links to videos uploaded to https://imgur.com/? You don't need an account to upload and get a link.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Irev-Dev/Arduino-Atmel-sPWM/issues/9#issuecomment-810474353, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATBJFQYZ5ZIZBKVLDRIW34TTGIISRANCNFSM4SQKNH2A .

Irev-Dev commented 3 years ago

Sorry @herman75156106, I've been moving house and a bit unsettled.

All sounds very exciting.

Yeah I'd like to see anything you've got working. You can use youtube or what ever is easiest. You can upload videos directly to github, just probably not through the email interface. You'de need to sign into the web app. But again what ever is easiest.

herman75156106 commented 3 years ago

Kurt, just a short note for now. I ask you do a simple Google research on the 3 terms:

  1. 120 degree mode of conduction

  2. 180 degree mode of conduction

  3. 150 degree mode of conduction

It appears the 150 degree mode will produce a spwm.

Please advise of your thoughts?

I now have 2 inverters. 1 a single phase. 2 a three phase. I will shortly advise you in video of them.

Thank you for your attention

Hernan

@.***

On Fri, Apr 23, 2021, 5:49 PM Kurt Hutten @.***> wrote:

Sorry @herman75156106 https://github.com/herman75156106, I've been moving house and a bit unsettled.

All sounds very exciting.

Yeah I'd like to see anything you've got working. You can use youtube or what ever is easiest. You can upload videos directly to github, just probably not through the email interface. You'de need to sign into the web app. But again what ever is easiest.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Irev-Dev/Arduino-Atmel-sPWM/issues/9#issuecomment-825980403, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATBJFQ55JABOLO6RTVJQ7WTTKH2OZANCNFSM4SQKNH2A .

herman75156106 commented 3 years ago

Kurt, https://www.youtube.com/watch?v=Jl8PHbv4KQs, this is a youtube video that explains 180 degree operation for a three phase inverter. There is a wealth of both youtube and google information on 120, 150, and 180 degree inverter operations.

I will video document my work for you with 180 degree operation.

More shortly.

herman

On Sun, Apr 25, 2021 at 4:15 AM LM741 @.***> wrote:

Kurt, just a short note for now. I ask you do a simple Google research on the 3 terms:

  1. 120 degree mode of conduction

  2. 180 degree mode of conduction

  3. 150 degree mode of conduction

It appears the 150 degree mode will produce a spwm.

Please advise of your thoughts?

I now have 2 inverters. 1 a single phase. 2 a three phase. I will shortly advise you in video of them.

Thank you for your attention

Hernan

@.***

On Fri, Apr 23, 2021, 5:49 PM Kurt Hutten @.***> wrote:

Sorry @herman75156106 https://github.com/herman75156106, I've been moving house and a bit unsettled.

All sounds very exciting.

Yeah I'd like to see anything you've got working. You can use youtube or what ever is easiest. You can upload videos directly to github, just probably not through the email interface. You'de need to sign into the web app. But again what ever is easiest.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Irev-Dev/Arduino-Atmel-sPWM/issues/9#issuecomment-825980403, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATBJFQ55JABOLO6RTVJQ7WTTKH2OZANCNFSM4SQKNH2A .