How to implement a variable sPWM on arduino/atmel (Spwm part 2)

Поделиться
HTML-код
  • Опубликовано: 8 фев 2025

Комментарии • 40

  • @davidrichard1744
    @davidrichard1744 6 лет назад

    I just want to thank you for these 2 videos, I have been researching this topic for months without getting any smarter or closer to understanding how to implement SPWM in practice(code). Well now you have solved it for me and I can now proceed with my project(I am well aware of the safety concerns), thank you so very much.

  • @XXXXIndices
    @XXXXIndices Год назад

    "Hope this is of some use to some people :)" Yes it is extremely useful, thank you for taking the time to make the videos explaining this so us mere mortals have some chance of understanding how this works.

  • @tamibandy
    @tamibandy 8 лет назад

    Great Job!
    I'm waiting your third video :D
    Very nice code, very good explanation. You have done a good job, we are waiting to hear forward about you.

  • @israelefu6161
    @israelefu6161 4 года назад

    Seriously this explanation was Awesome.
    I wish to see your next video (3). 🙏
    Thanks bro 👍

  • @ahammadfahad3852
    @ahammadfahad3852 2 года назад

    Thanks man for this great video!!

  • @hassane89n
    @hassane89n 8 лет назад

    Best explanation ever.

  • @ghafoorsamadi2870
    @ghafoorsamadi2870 7 лет назад

    I like to thank you for your explanation.

  • @wariskn7096
    @wariskn7096 3 года назад

    Geat video...i have one doubt regarding the period. What is period mentioned in ur code? what value u r expecting from ur equation.... It's difficult to catch the value u have given oncode, which is 16mhz/swit freq/200....can u please answer me ASAP?...

  • @dalwindersingh9455
    @dalwindersingh9455 7 лет назад

    Thank you for making excellent video

  • @mapmplom4408
    @mapmplom4408 Год назад

    Mr. Kurt, I am very grateful for the amount of info about SPWM, it was amazing. I want to know if it possible to match the of signal frequency (as reference) of the input to match the output?

  • @roselyn123
    @roselyn123 8 лет назад

    looking forward for the third part :D
    hope it is an syncing phase .,.,.

  • @usertogo
    @usertogo 4 года назад

    Yes so another question : It appears to me that in power switching you have the challenge to control EMF transmission and non intrusiveness in its energy spectrum for sentient beings or matter in general - how could the 'spread spectrum and the potential for _information transfer_ be optimized in the context of multi phase motor control for example? Have you learned from the electronic engineer Dan Winter with his 'implosion' fibonacci based fractal model where he also defines the prime objective - sustainable ecstasy?

  • @AleksAltigor
    @AleksAltigor 2 года назад

    Good afternoon, I beg you, tell me how you can change the amplitude of the voltage without changing the frequency?

  • @zoonvanhetuni7993
    @zoonvanhetuni7993 4 года назад

    BRAVO !

  • @jamesking8105
    @jamesking8105 4 года назад

    Kurt, this is awesome. But I do have a question. In c or assembly there is usually an overflow bit v or z can't remember. It may be possible that you may be able to have an interrupt let you know when this bit is overflowed and then you can change the phase from there. This is usually helpful in FIFO routines. Don't know if this would be applicable to your code or not.

    • @meanman1992
      @meanman1992  4 года назад

      I not sure to be honest. But the interupt service routine could be based on such a bit, as I'm using an AVR library that might be abstracting this a little. Just a guess.

  • @anshaggarwal2060
    @anshaggarwal2060 8 лет назад

    thankyou so much for the video .

  • @alexsoares2600
    @alexsoares2600 3 года назад

    Hey thanks for the video, if i want to use the code for a high frequency transformer what is max frequency i can get from atmel?

  • @oropeiro
    @oropeiro 4 года назад

    Hi Meanman,how can i invert the switching signals, to the other half (10ms)of sine cycle (period)in the same pin of arduino ?the reason is for reset the low frequency transformer after every single switching pulse.for example,10ms period non inverting sw signal and 10 ms inverting sw signal the both at OCR1A(in one pin) thank you and congratulations for the project.

  • @kabete8
    @kabete8 6 лет назад

    Amazing things thank man

  • @RushikeshHaregaonkar
    @RushikeshHaregaonkar 11 месяцев назад

    Can we get variable frequency controlled 3phase SPWM

  • @lucasfreddi9424
    @lucasfreddi9424 6 лет назад

    Hi, thank you for the video. It is really clear. I have been trying to do a 3 spwm inverter with an atmega328, using 1 timer for each phase (limiting timer 1 resolution to 8 bit). My problem is that since the timers have 8 bit resolution I cant load periods longer than 255 cycles, and for frequencies between 0 and 50hz I need a 16 bit top number, like the ICR1. Do you have any idea or example on how to manage this problem? Seems that the atmega328 is very poor for this application. Thank you!

  • @Jexux01
    @Jexux01 8 лет назад +1

    you did a great job doing the code and implementing it, i have been using your code and tried to modify it to use it in a DC-AC inverter, but i have trouble to make it trigger 6 IGBT, i want to ask you for help, in what i have to do to get 6 outputs, 3 pair o signals as the code already generated, but defaced 120 degrees, i would appreciate any help.

    • @meanman1992
      @meanman1992  8 лет назад +5

      I have tried this myself, and I do want to pick it back up, but so far I haven't got it working and my priorities are else where. But to try and walk you through my problem you might have luck yourself. So having 6 switches (IGBT or other) for a 3 phase bridge certainly does make it tricky. For example if we take an arbitrary point on the sin wave for phase A sin(74)=0.96 which means that B is Sin(194)=-0.24 and C is sin(-46)=-0.72. If at the start of the period we turn on the high side switch for leg A of the bridge and low side switch for leg C and B and then turn off leg B after 24% of the period and then leg C after 72% of the period then the high side switch for leg A will still be on by itself doing nothing for a further 24% of the period.
      So probably (and I say probably because I'm not completely sure) what needs to happen is that is that at the start of the period leg A high side and leg B low side turn on, then after 24% of the period leg B low side turns off and leg C turns on until 96% of the period when leg A high side and leg C low side turn off. How that is implemented on the micro is another question since I'm not so sure you can turn a pin on and off a different times within the same period on the Atmel micros at least. I do have some ideas to get around this, but again my time and priorities, Hopefully I'll get around to it :/
      Hope that helps though.

  • @victorijoni760
    @victorijoni760 7 лет назад

    Thank you very much

  • @munifkhan5724
    @munifkhan5724 5 месяцев назад

    Can u try this project with stm32f1 with feedback?

  • @ghafoorsamadi2870
    @ghafoorsamadi2870 7 лет назад

    Hi, I tried the code with Arduino UNO and H Bridge it doesn't work, it's work in Proteus simulation but physical it's don't. please help me.

  • @yaqoobs.j.557
    @yaqoobs.j.557 6 лет назад

    Thanks for everything, I trying this code but don't Whats is the suitable code for h.bridge?

  • @varunranastar007
    @varunranastar007 8 лет назад

    Great work!
    Are you still planning to do the 3 phase sPWM after this?

    • @meanman1992
      @meanman1992  8 лет назад

      I hope so, see my reply to Hector.

  • @AkiroDemonSlayer123
    @AkiroDemonSlayer123 4 года назад

    Wont u able to design a spwm inverter?

  • @RNA0ROGER
    @RNA0ROGER 8 лет назад

    So can I use this to build say a pure signwave inverter?

  • @yannis92preloude
    @yannis92preloude 4 года назад

    Hi. Meanman, in your 3 code the one with adjustment of Frequency on pin A0. amplitude adjustment on pin A1. when I do use the code it toggles between 5 and 15Khz.
    I want to set it at 50hz but am unable to find in your code . any help will be great thanks .Yannis congratulations for the project.

  • @andryxa77
    @andryxa77 6 лет назад

    I wonder if similar can be done on Esp32. Was trying to generate 32kHz pwm with variable duty in each period, set by "look up" array of fixed numbers from 1 to 255(8bit) and repeating it with variable frequency 5 to 100Hz and vary a total duty of array from 0 to 100% . Any example code for this or part of it?

  • @nfsking2000
    @nfsking2000 7 лет назад

    Nice work. Video could be a bit more refined and short though.

  • @hiteshb5606
    @hiteshb5606 3 года назад

    Can't we use this code for high switching frequency? like 300KHz

    • @meanman1992
      @meanman1992  3 года назад

      You can try, but you might need a micro with a faster clock.

  • @arbtyalir3400
    @arbtyalir3400 4 года назад

    hello how i can contact with u?

  • @minhthuan2132
    @minhthuan2132 6 лет назад

    Thanks for ur videos, this is a great project. But i think when you change the frequency the amplitude of signal will change to, is it correct?

  • @luizvision478
    @luizvision478 6 лет назад

    MANY THANKS FOR ALL BEAUTIFULL, I AM STUDY THIS PROGRAM ... I LIKE THIS...
    LUIZ
    RIO DE JANEIRO