Arduino Nano SPWM generator: Grid Synchronization With Phase Locked Loop (SPLL) Software
ฝัง
- เผยแพร่เมื่อ 22 ส.ค. 2024
- About Synchronizing inverter with Grid, not yet in the form of Grid Tie Inverter. Applying the Phase-Locked Loop (SPLL) software on the Arduino Nano SPWM generator card to equalize the phase angle and frequency between the Nano SPWM generator and the grid or in other words sync with the grid.
By using the Zero Crossing Detector as a phase detector to detect the grid phase angle so that the circuit is simple.
related videos:
• Arduino Nano SPWM: Fee...
• Arduino Uno 12V to 220...
schematic & code
yopiediy.xyz/g...
#arduino
#inverter
#grid
Thanks for your clear and complete tutorials, I want to make a request, can you please use this Arduino and with this circuit and with AC mains sense to sense AC input, change over from inverter to mains and be charging the battery. Thanks
Alhamdulillah makin berkembang untuk kebaikan mantab bro. Nunggu terus update channel ini.
Makasih mabro
Thanks, your work has fully given me better understanding on Arduino
My pleasure
Mantap mas di tunggu projek Lainnya suhu + volume adroiuno untuk amplifier 🙏
wkwkw ditagih, itu dual channel maksudnya L dan R ya?...
@@yopiediy iay komandan karam blm bisa coding"🤣
Ch1 vol +suhu
Ch2 vol+suhu
Volume bisa naik dan turun saat di naiakin / turunin volume nya 😅
Kira" pakai atmega atau adruino yaa??
arduino yg pake prosesor atmega. itu maksudnya 2 ampl mono ato apa? sy ga pernah main ampl soalnya
@@yopiediy th-cam.com/video/4hwEvUX3uSM/w-d-xo.html
thank you
بارك الله لك و فيك و جزاك الله خيرا اسال الله ان يديم عليك نعمة الصحة و العافية
آمينآمين، بارك الله فيكم
sei troppo bravo !!!!
Terimakasih pak untuk videonya bisa menambah inspiras 🙏🙏
sama sama, semoga bisa menjadi dasar untuk menghasilkan karya terbaik
Mantab.....bisa diaplikasikan inverter on grid, nih
bagaimana caranya?... kasih bocoran dong siapa tau bisa jadi next video wkwkwk... plz
Nice one. Thanks for the grid sychro update.
thanks
wahh mantab ilmunya pak, mohon izin belajar, dan angkat aku jadi muridmu pak :)
wkwkwkwk, saya angkat jadi ksatria bersolder...
present friends good night.. new friends say hello
Hi, selamat malam juga
auto saya subrec pak di tunggu project2 yg lain
keren banget
Very good job
thanks
Mantap mas.... Absen dari jakarta...
Makasih kang..
good job very nice get like
thanks
12.7v.voltage power is higher may be used voltage down for circuit and normal battery(universal battery).Will be operating Bester.Thanks you.
no need for a voltage-lowering circuit because this circuit is for 12V, in testing I often step up and down the voltage to see the effect.
Assalamualikum brother, how can you adjust the amplitude of the voltage of the inverter with respect to the grid in your project? please clearify it
waalaikumsalam, here I did not adjust the inverter amplitude to match the grid. The quantity taken from the grid is only the phase angle information, the grid amplitude is not measured. so only the phase angle is matched.
@@yopiediy you may use cloesd loop dc-dc buck boost converter to match the voltage amplitude...thanks
pak Yopie untuk ZCD apa bisa pakai PC817, mana yg lebih baik jika menggunakan opamp seperti lm358 ? mungkin project berikutnya bisa membuat SPWM 3 phase dengan menggabungkan 3 arduino nano menjadi 3 phase dengan memanfaatkan ZCD yg di pasang masing2 module. trima kasih semoga ilmunya banyak bermanfaat untuk kalangan hobby electronic. sukses selalu projectnya pak Yopie.
PC817/optocoupler hasilnya berupa pulsa tipis ga bisa dipakai diprogram saya, program lebih rumit kalau pake opto. Masih banyak yang perlu di explore di 1 phase mungkin masih lama main2 ke 3 phase.
@@yopiediy Alhamdulillah , terima kasih pak Yopie infonya, saya tunggu updatenya pak untuk 1 phase grid tie yg lebih stabil lagi kedepannya.
Mantap om ijin nyimak
siap, semoga bermanfaat
Hi you can make grid tie inverter?
mantab
makasih senior..
mantap om yopie
Makasih oom..
Cerdas 👍👍👍, sebenarnya ingin sinkronkan inverter pure sine wave yang beli di pasaran dengan PLN biar saat pindah tidak terjadi perbedaan fasa , pengaruhnya pada alat alat motor listrik sangat berpengaruh jika pindah saat sudut fasa nya berbeda , bagaimana cara sincronisasinya apakah ada input pin sync pada modul spwm di inverter offgrid ?
Siyap... lagi ngerjain yg spt itu mudah2an cepet selesai...
@@yopiediy ditunggu semoga berhasil bro 👍👍👍
very good 👏👏👏👏👏
Thanks sir
UR welcome
saya sudah buat pak bisa synchron antara grid 1 dan grid 2 ( inverter ) sudut phase nya cocok. itu uji coba tnpa trafo dlu, saya liat dari keluaran inverter yg sktr 6v an. trus saat saya kasih trafo tiba alarm bunyi beep 5x yg menandakan low bat, pdhal aki saya masih +12.5 an kalo sesuai coding low bat sktr 10.5an. *saya uji coba ini tnpa regulator 7812 (jadi saya jumper in-out)..
saya cek kondisi analog A2 yg feedbck bat, masih terukur 2.61v
coba turunin dulu nilai lowbat di koding apa masih begitu? harusnya 2.6V sih ga lowbat bagusnya sih klo bisa liat teg di A2 nya noisi ato tidak
oke siap pak..
@@yopiediy sudah pak.. ttp bgitu.... tapi j2 saya jumper ga ada beep.
stlah j2 saya jumper trus saya nyalakan inv nya, trus saya cabut j2 nya g error g ada beepnya kondisi normal.. tpi saat saya matikan inv trus saya nyalakan lagi beep lagi. apa arduino saya yg rusak ya kira2
Saya mau bertanya pak, apakah bisa alat ini dijadikan alat sinkronisasi antara PLTS dengan jaringan PLN pak? terima kasih sebelumnya.
ga bisa, ini inverternya langsung di sinkronkan dg PLN. Untuk PLTS sama PLN pakai yang ini th-cam.com/video/WJWc3rfh7ts/w-d-xo.html
@@yopiediy kalau misalnya dari PLTS lalu dihubungkan ke inverter, kemudian diparalelkan dengan PLN menggunakan arduino untuk mendeteksi tegangan, frekuensi, dan fasa dari PLN agar inverter bisa menghasilkan tegangan, frekuensi, dan fasa yang sama dan berhasil di paralelkan. seperti itu bisa pak?
saya mau bertanya satu lagi pak, kalau saya pakai inverter pure sine wave apa tegangan, frekuensi, dan fasanya sama dengan jaringan PLN pak? terima kasih banyak pak
@@aristo2932 1. Inverter dan juga pln ga bisa diatur frekwensinya dan selalu ada sedikit perbedaan pada frekwensinya (akibatnya akan selalu ada perubahan pada perbedaan fasa). arduino transfer switch akan mengukur perbedaan fasa keduanya dan akan memindahkan hubungan ketika sudah terukur fasanya sama. waktu terjadinya pemindahan tergantung perbedaan frek makin besar perbedaan frek makin cepat sinkron.
2. inverter dan pln punya frek masing2 walaupun tertulis 50Hz tapi umumnya tidak benar2 sama ada sedikit selisih mis 50.001 Hz vs 50.000Hz demikian juga tegangannya. pada saat pemindahan yang terpenting adalah fasanya sama (walaupun frek dan teg sedikit berbeda).
note: frek sama belum tentu fasa sama, frek berbeda ada saat tertentu fasanya sama.
Hi Ser
I'm some one who loves electronics still learning as it is my hobby,
Now I have a question, is it possible for you to add charger on your board using same Arduino Nano or other chip?
That is I'm doing now, still need some work to make it happen. I will make a video if it done.
Bạn thêm phần này, làm inverter hoà lưới thì quá chuẩn.
Đây là một đồng bộ hóa với lưới, không phải là một biến tần hòa lưới, như tôi đã giải thích trong phần mô tả.
شكراً على الترجمة للغة العربية
❤❤❤❤
Cool video
menunggu programnya juga om hehehe
Sudah siap di link
@ Yopie DIY, we saw the coding update picture, when are you showing the video?
Thank you for your attention.
There are still bugs that haven't been resolved, I don't want to share code with a lot of bugs.
Sorry, please be patient.
@@yopiediy ok.
Pak mohon koreksinya, saya buat rangkain ZCD untuk supplai ic Lm758 klo pkek gnd, hasil gelombnya tidak sempurna sperti itu, kalo pake supplai tegangan simetris +5v dan -5v untuk supplai ic nya baru gelombangnya seperti itu. Typo maksudnya 358 🤣
saya pake lm358 memang agar single supply, klo pake yg +/- memang akan beda. BTW sy cari datesheetnya LM758 koq ga ada ya?
@@yopiediy typo pak 358 🤣...
@@yopiediy saya simul kan di multi sim pak.. gelombang nya beda klo pkek gnd, klo pke -5 v gelombang sprti itu pak
@@yopiediy th-cam.com/video/sLc5ow5r08Y/w-d-xo.html ini pak saya simul kan di multisiim
tkutnya berpengaruh juga di codingannya pak
kalo boleh request vidio, penjelasan ISR arduino om dan cara mengaksesnya, soalnya dalam SPWM dibentuknya lewat ISR bukan lewat void loop
Mudah2an ya oom...
Singkatnya sih ISR langsung bekerja setelah di enable kan di setup
@@yopiediy baik om kalau sempat aja, kalu mau belajar isrnya apakah di datasheet arduino juga ada contohnya?
@@taubatnasukha3030 di arduino.cc juga ada tapi kalo mau lebih detil di datasheet atmega nya.
@@yopiediy baik om sukses terus untuk chanelnya, btw apakah om seorang pengajar juga?
@@taubatnasukha3030 bukan, saya cuma penghobi oom...
Good job. Does it have feedback control volt ?
Yes it does
Cảm ơn bạn
Assalamualikum brother, how can you adjust the load sharing % to the grid in your project? + powerfactor controle parameters
Waalaikumsallam, this project is not grid tie inverter. My goal to this project is only to synchronize the phase of inverter with grid.
Dimana saya bisa order module itu dengan keluaran gate drive out saja out a dan b, bapak
buat sendiri saja (diy), rangkaian, layout dan koding sudah tersedia.
Kalo ini saya praktekan sebagai synchronoscope genset 1 dan 2 apakah bisa ?
bisa dengan tambahan koding lagi
Can I synchronize the inverter and phase with the grid at the same time as I want to build a dynamic voltage regulator?
yes you can
Thank you so much. I have a simple question also, if I connect the inverter's transformer in series with the supply line to compensate for the missing voltage when voltage sag occurs, what is the current that will flow through the primary of the injection transformer? Is it gonna be a constant current coming from the load current? for example, if I inject 20V rms and step-up by 3.66 ratio what will be the current in the primary if the load current is 1A rms?
@@yopiediy
@@raed9152 Simple question that can't be answered😁, I don't know how🙏. But from your question, I have something interesting for me to explore in the future.
I have another question. Why you have initialized pin 3 two times as a regular pin and as an interrupt? And what is the use of pin 11 and 12? @@yopiediy
@@raed9152 the second is not initializing the i/o pin but initializing the interrupt, which in this application comes from the input pin. D11 and 12 are for 50Hz fundamental pulse signals
Whalikum Salam brother
thanks
Hi ser
I have a question, is it possible to use the same technique by using EGS002 as an inverter and the reference voltage is the grid voltage
if so, how it's going to work and how the connection will look like ?
I thought it was possible, but it looks like the effort to do that is so much more.
@@yopiediy so , what’s the solution because i did an inverter using EGS002 and it was successively work with out any issues but my next step is to find a solution for this problem which is the synchronization of the inverter voltage and grid voltage
@@dyhaal-basha6578 you can modify egs002 so that it becomes a variable frequency then PLL hardware is also needed to synchronize the grid and inverter.
@@yopiediy ijin bertanya, untuk grid tie trafonya apakah bisa menggunakan yang LF (toroid), grid tie yg saya lihat dari review produksi pabrikan kebanyakan menggunakan HF trafo.
terimakasih
terima kasih
ada referensi buku nya gak om?
Hi dear
Thanks for video
I want circuit diagram connection for Arduino i don't know pin out ond input and lcd connection pin
please see the arduino nano spwm generator video, it uses the same circuit
Ok i want contact with you from Whatsapp or massanger please
You can reach me via instagram
Can I know please what's the role of the counterX variable?
counterX variable is unused. I use it for debugging so just ignore it.
@@yopiediy I've been trying to make this code work for me, but i still didn't succeed.
I don't use the same way to generate the spwm, i declare the reference as dutycycle[i] = (int) ( (1 + sin (2.* PI *i/(n)))* (TOP/2).
If i can't make it by myself i'll post another comment in a week :D
Thank you for this amazing video by the way!
@@majesticsky2676 ok, keep it up
@@yopiediy i used the same logic in this video, but in my case i'm generating a unipolar SPWM, which needs two sinusoidals.
The trick that worked for me was to simply make the sinus table restart from its first value when an external interruption is detected
@@majesticsky2676 Agreed, it worked for me too. This method is very fast to equalize the phase at the beginning of the cycle but has no mechanism to equalize the frequency. However, this method is sufficient for use for some purposes.
Permisi kak, apakah boleh lihat script codingan dari kontrol sinkronisasinya ya ?
link di deskripsi
Saya buat persis sama jenengan. Modul zcdnya kok bunyi kayak nginggggg gitu pak. Tpi dioda nya yg 1n4248 jrng dipasaran jdi saya pkek 1n4148 2 buah..
Klo tanpa zcd (inverter biasa), bunyi juga ga?.... 1N4248 ada di bag mana? Salah tulis saya yg bener 41418 🙏
@@yopiediy klo pkek invrt spwm aman pak, tpi pas saya kasih zcd kok ad bunyi kayak ngingg(bukan dri speaker). Tpi saya ujicoba zcd nya tnpa inverter aman pak saya tes pke osiloskop gel kotak.
Itu pke 1n4148 2 buah
@@yopiediy di dioda gb jenengan pdf itu pak
@@yopiediy ini msih saya cari
U1 di wiring terhubung kmna ya pak?
U1 terhubung ke Vcc dan Gnd di arduino
@yopiediy, this is a great video. Can I have the code and Schematic please? the Link is not working. It say 502 Bad Gateway
try using another browser
@@yopiediy Thank you. Changed from Chrome to Edge and it has worked.
@yopiediy Your circuit produces a good sinewave. However, I have a challenge from my side. I am using EGS002, 20150901. The board shows it is in normal operation but when I test the signal pins it produces square wave SPWM. Therefore, there is no output from the mosfets. What can be issue because I have tested the board by testing the VFB , ILB and TFB and it shows it is okay.
@@dishanotieno7449 check whether all mosfets are in good condition?
@@yopiediy The mosfets are in good condition, the module driver pins produce a square signal instead of sine signal. Could the module be defective?
maaf pak..spwm ini bisa tidak ya merubah koding untuk pwm stabilizer statis pak..kl bisa mohon panduanmya pak..🙏🙏🙏 pengn membuat projek stabilizer statis
Stabilizer statis itu yg gimana ya?
@@yopiediy boleh mnta kontak bapak mngkn bs mmbntu sy..
jd dia stabilizer yang tidak mnggunakan servo mau pun relay untuk menstabilkan tegangan..
Busa dm di ig
@@yopiediy bolh tau ig nya pak
yopiediy.xyz
sao mình không dao loat được giản đồ và mã
Aslam o Alaikum. Is this grid tie inverter ?
No, is not
Buat MPPT arduino juga omm. . .
Siyap....
Mantabbbb.. Di tunggu videonya
Xin chào các bạn, mình có một thắc mắc là làm cách nào để thay đổi cấu hình hoạt động được ở 60hz.
nhìn vào các nhận xét trên mã, tôi đã đánh dấu cái nào là cho 50Hz và 60Hz. bạn chỉ cần thay đổi phần 50Hz để nhận xét và bỏ ghi chú phần 60Hz.
@@yopiediy Cảm ơn thông tin, tôi đã thực hiện các thay đổi để hoạt động ở 60Hz, câu hỏi khác của tôi là làm cách nào để định cấu hình điện áp đầu ra trên màn hình Vout để hoạt động ở 120 vac.
@@ronaldgallardo1336 trên
void feedBackTest (float vfbIn, int tfbIn, int battIn) {
.
.
dis2 = vfbIn * 0,3560;
biến thành
dis2 = vfbIn * 0,1960;
Cảm ơn thông tin, cũng để bảo vệ ngắn mạch, nó được yêu cầu để thực hiện một thay đổi, để làm việc với 120 vac. if (vMax
@@ronaldgallardo1336 Khi bị chập, điện áp sẽ rất nhỏ và nhỏ hơn điện áp "under voltage", giá trị 50 ở đây không phải là giá trị chính xác mà là kết quả của quá trình thử và sai nên bạn có thể điều chỉnh lại giá trị. nhưng giá trị này phải thấp hơn nhiều so với giá trị của "under voltage"
cho mình sin địa chỉ dao loat sơ đồ và code địa chỉ trên đia rồi
thử với tìm kiếm google:
yopiediy.xyz/grid-synchronization/
@@yopiediy tìm với google nó báo ngăn chặn với mã độc hại
Mas bisa pesan arduino yg udah di isi utk spwm psw.yg bentuk kit pin egs
Coba hub teknisi sy, komen aja di chnl nya "sanka tuber" klo lg sempet mungkin dia bisa bikinin
@@yopiediy ok om
@@yopiediy saya juga butuh bbrp biji om
Ya sekalian aja, coba dulu satu klo cocok baru bikin lagi
Saya berminat jg
esta dando erro no liquidcrystal.h: such file or directory pode me orientar
instalar biblioteca LCD
nos menus:
sketch>include library>manage library
então procure liquidCrystal I2C
Será possível usar como modo ups sincronizado com rede inversor seu projeto
@@pjucemar Talvez sim
·Please I can't access your tutorial site
Pls try it again, tell me if still can't opened
chán quá tìm mọi cách mà không dao loat được code
Chỉ cần cho tôi email của bạn, tôi sẽ gửi nó sau. DM tốt hơn trên IG
sao lic dao loat dài tới 4 dòng th-cam.com/users/redirect?event=video_description&redir_token=QUFFLUhqa25OTEZmeWhZaGhzZEQ2OUMzN1NhY3FseTUtd3xBQ3Jtc0ttQUI1eHYtWjJ5M1E5MWppYVhWREs2dHEya21tYVJUejZnNHRJNzBEdXR4bno4UWwzemZZSzQyazRySHNyV05PaXVqVGMycG90Q09lRGNYcnpCQTNXOWJkUVNST1R1alhYTjJLbjVMQ3dJQUhNZ3JWSQ&q=https%3A%2F%2Fyopiediy.xyz%2Fgrid-synchronization%2F&v=z-tcIQBJ4hI dài thế này làm sao đao loát được
Vui lòng cung cấp địa chỉ email của bạn để tôi có thể gửi trực tiếp.
cho mình xin sơ đồ và code
giản đồ và mã đã có trong liên kết trong mô tả ..
cho tôi biết nếu liên kết không thể mở được và thông báo lỗi là gì.
@@yopiediy mình làm các cách mà vẫn không daoloat được nó cứ quay tròn
@@lieutran1438 Tôi đã kiểm tra liên kết hoạt động, nhưng một số người từ khu vực của bạn không thể mở nó.
Tôi không biết tại sao
địa th-cam.com/users/redirect?event=video_description&redir_token=QUFFLUhqbDk1UWYzX1Z5U1pjeDdqZHZ3SVZqRjlBbXNPd3xBQ3Jtc0tuZTB2UlJNNFRQWktfdTVuVHNNTnhCT0JJdnRqcUZhRU1XcTM3eTcxODFEeXlWc0RXWmtkMGZfa1JvS3BjeXBUcWtueWUzZDdkUXEtQVdlSktBam9BaUxZdzczNVBtOS1KNHhKTnVSWC15Y2EyNlJjQQ&q=https%3A%2F%2Fyopiediy.xyz%2Fgrid-synchronization%2F&v=z-tcIQBJ4hIchi dao lot nó lại thế này