{"id":10035,"date":"2015-02-07T10:25:04","date_gmt":"2015-02-07T15:25:04","guid":{"rendered":"http:\/\/embedded-lab.com\/blog\/?p=10035"},"modified":"2015-02-07T10:25:04","modified_gmt":"2015-02-07T15:25:04","slug":"diy-ac-power-meter-using-pic18f252","status":"publish","type":"post","link":"https:\/\/embedded-lab.com\/blog\/diy-ac-power-meter-using-pic18f252\/","title":{"rendered":"DIY AC power meter using PIC18F252"},"content":{"rendered":"<p>Electro-Labs new tutorial project is a <a href=\"http:\/\/www.electro-labs.com\/diy-digital-ac-watt-meter\/\" target=\"_blank\"><strong>PIC microcontroller-based digital power meter<\/strong><\/a> that will let you measure the power consumption of an electrical appliance connected to\u00a0the 230V\/50Hz mains line. The project implements a resistor-divider network to scale down the mains voltage and then uses MCP3202 ADC chip to convert the scaled AC voltage to digital counts. For current measurement,\u00a0the ACS712-30A hall-effect sensor is used in conjunction with another MCP3202 chip. The digital outputs from the ADC chips are then read by the\u00a0PIC18F252 microcontroller for computing the power. The measured AC RMS voltage, current, and Watts are then displayed on the dot matrix LCD. The beauty of this project is the meter itself is powered from the mains, thus avoiding the need for an external power source.<\/p>\n<div id=\"attachment_10036\" style=\"width: 590px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/embedded-lab.com\/blog\/?attachment_id=10036\" rel=\"attachment wp-att-10036\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-10036\" class=\"size-full wp-image-10036\" alt=\"PIC-based AC watt meter\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2015\/02\/ac-wattmeter-intro.jpg\" width=\"580\" height=\"578\" srcset=\"https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2015\/02\/ac-wattmeter-intro.jpg 580w, https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2015\/02\/ac-wattmeter-intro-150x150.jpg 150w, https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2015\/02\/ac-wattmeter-intro-550x548.jpg 550w, https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2015\/02\/ac-wattmeter-intro-90x90.jpg 90w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/a><p id=\"caption-attachment-10036\" class=\"wp-caption-text\">PIC-based AC watt meter<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Electro-Labs new tutorial project is a PIC microcontroller-based digital power meter that will let you measure the power consumption of an electrical appliance connected to\u00a0the 230V\/50Hz mains line. The project implements a resistor-divider network to scale down the mains voltage and then uses MCP3202 ADC chip to convert the scaled AC voltage to digital counts. For current measurement,\u00a0the ACS712-30A hall-effect sensor is used in conjunction with another MCP3202 chip. The digital outputs from the ADC chips are then read by the\u00a0PIC18F252 microcontroller for computing the power. The measured AC RMS voltage, current, and Watts are then displayed on the dot<\/p>\n","protected":false},"author":1,"featured_media":10036,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[1112,1111,138],"class_list":["post-10035","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pic-projects","tag-ac-watt-meter","tag-pic18f252","tag-power-meter"],"_links":{"self":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/10035","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/comments?post=10035"}],"version-history":[{"count":1,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/10035\/revisions"}],"predecessor-version":[{"id":10037,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/10035\/revisions\/10037"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/media\/10036"}],"wp:attachment":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/media?parent=10035"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/categories?post=10035"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/tags?post=10035"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}