gdata.io.handleScriptLoaded({"version":"1.0","encoding":"UTF-8","feed":{"xmlns":"http://www.w3.org/2005/Atom","xmlns$openSearch":"http://a9.com/-/spec/opensearchrss/1.0/","xmlns$gd":"http://schemas.google.com/g/2005","xmlns$georss":"http://www.georss.org/georss","xmlns$thr":"http://purl.org/syndication/thread/1.0","xmlns$blogger":"http://schemas.google.com/blogger/2008","id":{"$t":"tag:blogger.com,1999:blog-7637332207079385607"},"updated":{"$t":"2023-12-03T11:58:07.149+07:00"},"category":[{"term":"PCB"},{"term":"Arduino"},{"term":"IoT"},{"term":"Tips dan Trik"},{"term":"Robotic"},{"term":"Software"},{"term":"Arduino Tutorial"},{"term":"STM32"},{"term":"Elektronika"},{"term":"Tutorial"}],"title":{"type":"text","$t":"MUHILHAM • Electronics Hobbyist and Maker"},"subtitle":{"type":"html","$t":"Berisi seputar Elektronika, Teknologi dan Konten menarik lainnya..."},"link":[{"rel":"http://schemas.google.com/g/2005#feed","type":"application/atom+xml","href":"https://www.blogger.com/feeds/7637332207079385607/posts/default/-/STM32?alt\u003djson-in-script\u0026max-results\u003d50"},{"rel":"self","type":"application/atom+xml","href":"https://www.blogger.com/feeds/7637332207079385607/posts/default/-/STM32?alt\u003djson-in-script\u0026max-results\u003d50"},{"rel":"alternate","type":"text/html","href":"http://www.muhilham.com/search/label/STM32"},{"rel":"hub","href":"http://pubsubhubbub.appspot.com/"}],"author":[{"name":{"$t":"MUHAMMAD ILHAM"},"uri":{"$t":"https://www.blogger.com/profile/10228690864565250696"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"32","height":"32","src":"//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhF90kMVU93eR4ntkygjL80kut4lbcSWMOO-m_I3SfrE1Apud66gUHAeIIuxEaHWqQ2c44a0Ktw9YO_KjXEhypNKLU5mz4pKjEJJevNx7WIKWtGcOcYRp_mlzA-jrczZbc/s113/46417909_1925061867600683_5804463230403215360_n.jpg%3F_nc_cat%3D101%26_nc_ht%3Dscontent.fjkt1-1.fna%26oh%3D95c622f7862893fbb097b1a818e8d0d1%26oe%3D5D394AD6"}}],"generator":{"version":"7.00","uri":"https://www.blogger.com","$t":"Blogger"},"openSearch$totalResults":{"$t":"1"},"openSearch$startIndex":{"$t":"1"},"openSearch$itemsPerPage":{"$t":"50"},"entry":[{"id":{"$t":"tag:blogger.com,1999:blog-7637332207079385607.post-1159371215825093250"},"published":{"$t":"2020-02-21T08:40:00.000+07:00"},"updated":{"$t":"2020-02-21T17:50:29.729+07:00"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"STM32"},{"scheme":"http://www.blogger.com/atom/ns#","term":"IoT"}],"title":{"type":"text","$t":"Monitoring Daya Listrik 3 Phase [3 Phase AC Power Monitoring] - Data Logger"},"content":{"type":"html","$t":"\u003cdiv style\u003d\"text-align: justify;\"\u003e\n\u003cdiv class\u003d\"separator\" style\u003d\"clear: both; text-align: center;\"\u003e\n\u003cimg border\u003d\"0\" data-original-height\u003d\"468\" data-original-width\u003d\"640\" src\u003d\"https://1.bp.blogspot.com/-0TKhfsCMgnY/Xk66jDvl__I/AAAAAAAALGs/Klj9LUMMwlc1Z2IrnTnDhgYqBxKJjQ_zgCNcBGAsYHQ/s1600/3-Phase%2BPower%2BMonitor.jpg\" /\u003e\u003c/div\u003e\n\u003cdiv class\u003d\"separator\" style\u003d\"clear: both; text-align: center;\"\u003e\n\u003c/div\u003e\n\u003cbr /\u003e\nArtikel kali ini akan membahas tentang sebuah alat untuk monitoring listrik 3 phase, project kali ini menggunakan STM32, diharapkan dengan menggunakan mikrokontroler 32-bit dengan resolusi ADC 12-bit ini data pengukuran akan lebih baik dan untuk koneksi ke internet digunakan modul SIM800L. Data hasil pengukuran akan dikirim ke database mysql sebagai datalogging.\u003c/div\u003e\n\u003cdiv style\u003d\"text-align: justify;\"\u003e\n\u003cbr /\u003e\nProject untuk mengukur daya listrik 3 phase ini tergolong cukup ribet dan mahal menurut saya, dikarenakan sensor yang digunakan sebanyak 6 buah, dimana digunakan 3 single phase voltage sensor dan juga 3 sensor untuk arusnya.\u003cbr /\u003e\n\u003cbr /\u003e\nSensor tegangan yang digunakan ZMPT101B dan SCT-013 untuk sensor arus, SCT-013 merupakan sensor arus berjenis non-kontak dengan sistem clamp, sensor ini cukup baik dari segi instalasi, hanya dengan menjepit pada salah satu kabel, artinya tidak perlu memutus atau mengubah instalasi yang sudah ada.\u003cbr /\u003e\n\u003cbr /\u003e\u003c/div\u003e\n\u003cdiv style\u003d\"text-align: justify;\"\u003e\n\u003cb\u003eKomponen yang digunkan\u003c/b\u003e\u003c/div\u003e\n\u003cdiv style\u003d\"text-align: justify;\"\u003e\n\u003c/div\u003e\n\u003cul\u003e\n\u003cli\u003eModul STM32F1 Bluepill\u003c/li\u003e\n\u003cli\u003eModul SIM800L\u003c/li\u003e\n\u003cli\u003eModul DC-DC Step Down\u003c/li\u003e\n\u003cli\u003eSensor Tegangan ZMP101B\u003c/li\u003e\n\u003cli\u003eSensor Arus SCT103\u0026nbsp;\u003c/li\u003e\n\u003cli\u003eLCD 16x2 + i2c\u003c/li\u003e\n\u003cli\u003eKapasitor 10uF\u003c/li\u003e\n\u003cli\u003eResistor 10K\u003c/li\u003e\n\u003cli\u003eResistor 330R\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv\u003e\n\u003cb\u003eRangkaian/Electrical Circuit\u003c/b\u003e\u003cbr /\u003e\n\u003cbr /\u003e\n\u003cdiv class\u003d\"separator\" style\u003d\"clear: both; text-align: center;\"\u003e\n\u003cimg border\u003d\"0\" data-original-height\u003d\"576\" data-original-width\u003d\"994\" src\u003d\"https://1.bp.blogspot.com/-ZToQU142wVI/Xk6mtWcys2I/AAAAAAAALE0/w_Z5toRxyeEuTRc7uLJvQp71lQrOR0dkwCNcBGAsYHQ/s1600/Schematic%2B3%2BPhase%2BPower%2BMeter.png\" /\u003e\u003c/div\u003e\n\u003cb\u003e\u003cbr /\u003e\n\u003c/b\u003e\u003c/div\u003e\n\u003cdiv\u003e\n\u003cb\u003ePCB Design\u003c/b\u003e\u003cbr /\u003e\n\u003cbr /\u003e\n\u003cimg border\u003d\"0\" data-original-height\u003d\"714\" data-original-width\u003d\"1366\" src\u003d\"https://1.bp.blogspot.com/-pp3ccJKtf0g/Xk6on-5QABI/AAAAAAAALFA/DO4LoVXLNWkc1u077W05oSJcKpLaqc87ACNcBGAsYHQ/s1600/Layout%2BPCB%2B3%2BPhase%2BPower%2BMonitoring.png\" style\u003d\"text-align: center;\" /\u003e\u003cbr /\u003e\n\u003cb\u003e\u003cbr /\u003e\nBagian program untuk mengukur daya listrik 3 phase\u003c/b\u003e\u003cbr /\u003e\n\u003cb\u003e\u003cbr /\u003e\n\u003c/b\u003e \u003cbr /\u003e\n\u003cpre class\u003d\"prettyprint linenums lang-cc\"\u003evoid process_power_data(int16_t channel) {\n  int32_t sample_V, sample_I, signed_V, signed_I;\n\n  // ----------------------------------------\n  // Voltage\n  if (channel \u003d\u003d 0) sample_V \u003d ADC_DMA_BUFF[0];\n  if (channel \u003d\u003d 1) sample_V \u003d ADC_DMA_BUFF[1];\n  if (channel \u003d\u003d 2) sample_V \u003d ADC_DMA_BUFF[2];\n  signed_V \u003d sample_V - MID_ADC_READING;\n  sum_V[channel] +\u003d signed_V;\n  sum_V_sq[channel] +\u003d signed_V * signed_V;\n\n  // ----------------------------------------\n  // Current\n  if (channel \u003d\u003d 0) sample_I \u003d ADC_DMA_BUFF[3];\n  if (channel \u003d\u003d 1) sample_I \u003d ADC_DMA_BUFF[4];\n  if (channel \u003d\u003d 2) sample_I \u003d ADC_DMA_BUFF[5];\n  signed_I \u003d sample_I - MID_ADC_READING;\n  sum_I[channel] +\u003d signed_I;\n  sum_I_sq[channel] +\u003d signed_I * signed_I;\n\n  // ----------------------------------------\n  // Power\n  sum_P[channel] +\u003d signed_V * signed_I;\n\n  count[channel] ++;\n\n  // ----------------------------------------\n  // Zero crossing detection\n  last_positive_V[channel] \u003d positive_V[channel];\n  if (signed_V \u0026gt; 0) positive_V[channel] \u003d true; else positive_V[channel] \u003d false;\n  if (last_positive_V[channel] !\u003d positive_V[channel]) cycles[channel]++;\n\n  // ----------------------------------------\n  // Cycle count \u003d\u003d cycle set (MAX_CYCLES)\n  if (cycles[channel] \u0026gt;\u003d MAX_CYCLES) {\n    cycles[channel] \u003d 0;\n\n    double Vmean \u003d sum_V[channel] * (1.0 / count[channel]);\n    double Imean \u003d sum_I[channel] * (1.0 / count[channel]);\n\n    sum_V_sq[channel] *\u003d (1.0 / count[channel]);\n    sum_V_sq[channel] -\u003d (Vmean * Vmean);\n    Vrms[channel] \u003d V_RATIO[channel] * sqrt((double)sum_V_sq[channel]);\n    sum_V[channel] \u003d 0;\n    sum_V_sq[channel] \u003d 0;\n\n    sum_I_sq[channel] *\u003d (1.0 / count[channel]);\n    sum_I_sq[channel] -\u003d (Imean * Imean);\n    Irms[channel] \u003d I_RATIO[channel] * sqrt((double)sum_I_sq[channel]);\n    sum_I[channel] \u003d 0;\n    sum_I_sq[channel] \u003d 0;\n\n    double mean_P \u003d (sum_P[channel] * (1.0 / count[channel])) - (Vmean * Imean);\n    sum_P[channel] \u003d 0;\n    count[channel] \u003d 0;\n\n    realPower[channel] \u003d V_RATIO[channel] * I_RATIO[channel] * mean_P;\n    apparentPower[channel] \u003d Vrms[channel] * Irms[channel];\n    powerFactor[channel] \u003d realPower[channel] / apparentPower[channel];\n\n    endMillis[channel] \u003d HAL_GetTick();\n    unsigned long timeMs \u003d (endMillis[channel] - startMillis[channel]);\n    WattHour[channel] +\u003d realPower[channel] * ((double) timeMs / 3600000); // Watt-Hour\n    startMillis[channel] \u003d HAL_GetTick();\n\n    readings_ready \u003d true;\n  }\n}\n\u003c/pre\u003e\n\u003cbr /\u003e\n\u003cb\u003ePemasangan sensor SCT-013 pada kabel fasa\u003c/b\u003e\u003cbr /\u003e\n\u003cbr /\u003e\n\u003cimg border\u003d\"0\" data-original-height\u003d\"900\" data-original-width\u003d\"1600\" src\u003d\"https://1.bp.blogspot.com/-URi2XqMnb5U/Xk6zRyvPREI/AAAAAAAALGI/twYhFiVLZwg4Tx5-C3m51dcJWACdNuiFQCNcBGAsYHQ/s1600/3%2Bphase%2Bcurrent%2Bsensor.JPG\" style\u003d\"text-align: center;\" /\u003e\u003cbr /\u003e\n\u003cbr /\u003e\n\u003cb\u003ePemasangan sensor ZMPT-101B fasa terhadap neutral (L/N)\u003c/b\u003e\u003cbr /\u003e\n\u003cbr /\u003e\n\u003cimg border\u003d\"0\" data-original-height\u003d\"900\" data-original-width\u003d\"1600\" src\u003d\"https://1.bp.blogspot.com/-E3MRYthngeE/Xk6zdKWiQQI/AAAAAAAALGM/bjajBzZKhmwnHkr_orfUGTgSAYEYT90zQCNcBGAsYHQ/s1600/3%2Bphase%2Bvoltage%2Bsensor.JPG\" style\u003d\"text-align: center;\" /\u003e\u003cbr /\u003e\n\u003cb\u003e\u003cbr /\u003e\n\u003c/b\u003e \u003cb\u003eDatalogging database mySQL\u003c/b\u003e\u003cbr /\u003e\n\u003cbr /\u003e\n\u003cimg border\u003d\"0\" data-original-height\u003d\"569\" data-original-width\u003d\"1084\" src\u003d\"https://1.bp.blogspot.com/-8UhgqGTdHVM/Xk6z2gI3UFI/AAAAAAAALGU/JbQljEt5OG8vuYjR6gYH5a8RwYY8MOuVQCNcBGAsYHQ/s1600/3%2Bphase%2Bpower%2Bdatalogging.png\" style\u003d\"text-align: center;\" /\u003e\u003cbr /\u003e\n\u003cdiv style\u003d\"text-align: justify;\"\u003e\nData pengukuran di kirim ke database menggunakan modul GSM dengan mode GPRS, data diterima oleh webserver hosting dan dimasukkan ke database dengan PHP.\u003c/div\u003e\n\u003cdiv style\u003d\"text-align: justify;\"\u003e\n\u003cdiv style\u003d\"text-align: center;\"\u003e\n\u003cbr /\u003e\u003c/div\u003e\n\u003cdiv style\u003d\"text-align: center;\"\u003e\n\u003cbr /\u003e\u003c/div\u003e\n\u003c/div\u003e\n\u003cdiv style\u003d\"text-align: center;\"\u003e\n\u003ch4\u003e\n\u003cb\u003e\n👉\u0026nbsp;\u003ca href\u003d\"https://www.muhilham.com/p/custom-project.html\" target\u003d\"_blank\"\u003eUNTUK PERTANYAAN ATAU CUSTOM PROJECT\u003c/a\u003e\u0026nbsp;👈\u003c/b\u003e\u003c/h4\u003e\n\u003c/div\u003e\n\u003cdiv style\u003d\"text-align: center;\"\u003e\n\u003cdiv style\u003d\"text-align: center;\"\u003e\n\u003cbr /\u003e\u003c/div\u003e\n\u003cbr /\u003e\u003c/div\u003e\n\u003cb\u003ePengujian Monitoring Daya Listrik\u003c/b\u003e\u003cbr /\u003e\n\u003cbr /\u003e\n\u003cdiv style\u003d\"text-align: justify;\"\u003e\nUntuk interface digunakan LCD16x2 dengan sebuah tombol yang berfungsi sebagai pengubah tampilan layar lcd, terdapat 4 tampilan layar tegangan, arus, daya aktif (watt) dan konsumsi daya (Wh).\u003c/div\u003e\n\u003cdiv style\u003d\"text-align: justify;\"\u003e\n\u003cbr /\u003e\u003c/div\u003e\n\u003cdiv style\u003d\"text-align: justify;\"\u003e\nTampilan tegangan/voltage\u003c/div\u003e\n\u003cdiv style\u003d\"text-align: justify;\"\u003e\n\u003cbr /\u003e\u003c/div\u003e\n\u003cdiv class\u003d\"separator\" style\u003d\"clear: both; text-align: center;\"\u003e\n\u003cimg border\u003d\"0\" data-original-height\u003d\"900\" data-original-width\u003d\"1600\" src\u003d\"https://1.bp.blogspot.com/-ZMSSAv3koI0/Xk6v-DJdPVI/AAAAAAAALFY/nCjmUH4HPr45UroNYFIFemdQ9WV_XRFDgCNcBGAsYHQ/s1600/3-Phase%2BPower%2BMonitor%2B2%2BVoltage%2BView.jpg\" /\u003e\u003c/div\u003e\n\u003cdiv style\u003d\"text-align: justify;\"\u003e\n\u003cbr /\u003e\u003c/div\u003e\n\u003cdiv style\u003d\"text-align: justify;\"\u003e\nTampilan arus/current\u003c/div\u003e\n\u003cdiv style\u003d\"text-align: justify;\"\u003e\n\u003cbr /\u003e\u003c/div\u003e\n\u003cdiv class\u003d\"separator\" style\u003d\"clear: both; text-align: center;\"\u003e\n\u003cimg border\u003d\"0\" data-original-height\u003d\"900\" data-original-width\u003d\"1600\" src\u003d\"https://1.bp.blogspot.com/-7Z0PfSsB7DU/Xk6wMXxE8pI/AAAAAAAALFc/4jlzEN-pejYJ86C4_ZCRRy-IGfez4rTyQCNcBGAsYHQ/s1600/3-Phase%2BPower%2BMonitor%2B3%2BCurrent%2BView.jpg\" /\u003e\u003c/div\u003e\n\u003cdiv style\u003d\"text-align: justify;\"\u003e\n\u003cbr /\u003e\u003c/div\u003e\n\u003cdiv style\u003d\"text-align: justify;\"\u003e\nTampilan daya/power\u003c/div\u003e\n\u003cdiv style\u003d\"text-align: justify;\"\u003e\n\u003cbr /\u003e\u003c/div\u003e\n\u003cdiv class\u003d\"separator\" style\u003d\"clear: both; text-align: center;\"\u003e\n\u003cimg border\u003d\"0\" data-original-height\u003d\"900\" data-original-width\u003d\"1600\" src\u003d\"https://1.bp.blogspot.com/-E_0Jrz_0QWw/Xk6wYP2LjlI/AAAAAAAALFk/BH6Z06tDTeUFS4mDvlTFRBPeVG4He9NLACNcBGAsYHQ/s1600/3-Phase%2BPower%2BMonitor%2B4%2BPower%2BView.jpg\" /\u003e\u003c/div\u003e\n\u003cdiv style\u003d\"text-align: justify;\"\u003e\n\u003cbr /\u003e\u003c/div\u003e\n\u003cdiv style\u003d\"text-align: justify;\"\u003e\nTampilan konsumsi daya (watt hours)\u003c/div\u003e\n\u003cdiv style\u003d\"text-align: justify;\"\u003e\n\u003cbr /\u003e\u003c/div\u003e\n\u003cdiv class\u003d\"separator\" style\u003d\"clear: both; text-align: center;\"\u003e\n\u003cimg border\u003d\"0\" data-original-height\u003d\"900\" data-original-width\u003d\"1600\" src\u003d\"https://1.bp.blogspot.com/-jx09PsdZ-9I/Xk6wrZiW7QI/AAAAAAAALFw/4kybmiLyBmUC78OyePS1DOTOpvNxfGHmQCNcBGAsYHQ/s1600/3-Phase%2BPower%2BMonitor%2B5%2BWattHours%2BView.jpg\" /\u003e\u003c/div\u003e\n\u003cdiv style\u003d\"text-align: justify;\"\u003e\n\u003cbr /\u003e\u003c/div\u003e\n\u003cdiv style\u003d\"text-align: justify;\"\u003e\n\u003cb\u003eVideo 3 Phase Power Monitoring\u003c/b\u003e\u003cbr /\u003e\n\u003cb\u003e\u003cbr /\u003e\n\u003c/b\u003e\u003c/div\u003e\n\u003cdiv class\u003d\"videoyoutube\"\u003e\n\u003cdiv class\u003d\"video-responsive\"\u003e\n\u003cdiv class\u003d\"video-youtube loader\" data-src\u003d\"https://www.youtube.com/embed/U4il9naGsEQ\"\u003e\n\u003c/div\u003e\n\u003c/div\u003e\n\u003c/div\u003e\n\u003c/div\u003e\n\u003cbr /\u003e\n\u003cspan style\u003d\"font-size: x-small;\"\u003eReferensi \u003ca href\u003d\"https://learn.openenergymonitor.org/electricity-monitoring/ac-power-theory/3-phase-power\"\u003elearn.openenergymonitor.org\u003c/a\u003e\u003c/span\u003e"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https://www.muhilham.com/feeds/1159371215825093250/comments/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https://www.muhilham.com/2020/02/monitoring-daya-listrik-3-phase-datalogging-database.html#comment-form","title":"4 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https://www.blogger.com/feeds/7637332207079385607/posts/default/1159371215825093250"},{"rel":"self","type":"application/atom+xml","href":"https://www.blogger.com/feeds/7637332207079385607/posts/default/1159371215825093250"},{"rel":"alternate","type":"text/html","href":"https://www.muhilham.com/2020/02/monitoring-daya-listrik-3-phase-datalogging-database.html","title":"Monitoring Daya Listrik 3 Phase [3 Phase AC Power Monitoring] - Data Logger"}],"author":[{"name":{"$t":"MUHAMMAD ILHAM"},"uri":{"$t":"https://www.blogger.com/profile/10228690864565250696"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"32","height":"32","src":"//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhF90kMVU93eR4ntkygjL80kut4lbcSWMOO-m_I3SfrE1Apud66gUHAeIIuxEaHWqQ2c44a0Ktw9YO_KjXEhypNKLU5mz4pKjEJJevNx7WIKWtGcOcYRp_mlzA-jrczZbc/s113/46417909_1925061867600683_5804463230403215360_n.jpg%3F_nc_cat%3D101%26_nc_ht%3Dscontent.fjkt1-1.fna%26oh%3D95c622f7862893fbb097b1a818e8d0d1%26oe%3D5D394AD6"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https://1.bp.blogspot.com/-0TKhfsCMgnY/Xk66jDvl__I/AAAAAAAALGs/Klj9LUMMwlc1Z2IrnTnDhgYqBxKJjQ_zgCNcBGAsYHQ/s72-c/3-Phase%2BPower%2BMonitor.jpg","height":"72","width":"72"},"thr$total":{"$t":"4"}}]}});