{"id":55976,"date":"2017-12-04T00:41:31","date_gmt":"2017-12-04T00:41:31","guid":{"rendered":"https:\/\/www.microplanet.ma\/?post_type=product&#038;p=55976"},"modified":"2026-10-20T04:06:13","modified_gmt":"2026-10-20T04:06:13","slug":"acs712-30a-hall-effect-current-sensor-module","status":"publish","type":"product","link":"https:\/\/www.microplanet.ma\/en\/produit\/acs712-30a-hall-effect-current-sensor-module\/","title":{"rendered":"ACS712 30 A Hall-Effect Current Sensor Module"},"content":{"rendered":"<h3>ACS712 30 A Hall-Effect Current Sensor Module<\/h3>\n<p>The ACS712 uses the Hall effect to measure current. Current passes through a copper path in the module, creating a magnetic field that the sensor converts into a proportional analog voltage. The source lists AC and DC measurement up to 30 A.<\/p>\n<h4>Specifications (as listed)<\/h4>\n<ul>\n<li>Operating supply: 4.5\u20135.5 V DC<\/li>\n<li>Measurement range: \u221230 A to +30 A<\/li>\n<li>Sensitivity: 66 mV\/A<\/li>\n<li>Output: analog voltage proportional to measured current<\/li>\n<li>Conductor isolation: 2.1 kV RMS (source-listed)<\/li>\n<li>Accuracy: \u00b11.5% (source-listed)<\/li>\n<li>Operating temperature: \u221240 \u00b0C to +85 \u00b0C<\/li>\n<li>Dimensions: compact; no exact dimensions provided<\/li>\n<li>Price: MAD 30 (regular price MAD 38)<\/li>\n<li>Stock: 191 units<\/li>\n<\/ul>\n<h4>Applications listed<\/h4>\n<ul>\n<li>Current monitoring for motors and battery-charging systems<\/li>\n<li>Power management for electronic devices<\/li>\n<li>Overcurrent detection in circuits<\/li>\n<li>Robot and autonomous-machine prototyping<\/li>\n<li>Current detection and measurement in energy-management systems<\/li>\n<\/ul>\n<h4>Pinout<\/h4>\n<ul>\n<li>VCC: supply, 4.5\u20135.5 V<\/li>\n<li>GND: ground<\/li>\n<li>OUT: analog output proportional to measured current<\/li>\n<\/ul>\n<h4>Connecting to Arduino<\/h4>\n<p>Connect VCC to the Arduino 5 V supply, GND to ground, and OUT to an analog input. The following basic example is reproduced exactly from the source:<\/p>\n<pre class=\"prism undefined-numbers lang-cpp\" data-lang=\"C++\"><code>#define CURRENT_SENSOR_PIN A0\r\n\r\n\r\nvoid setup() {\r\n\u00a0 Serial.begin(9600);\r\n}\r\n\r\n\r\nvoid loop() {\r\n\u00a0 int sensorValue = analogRead(CURRENT_SENSOR_PIN);\r\n\u00a0 float analogVoltage = sensorValue * (5.0 \/ 1023.0);\r\n\u00a0 float current = (analogVoltage - 2.5) \/ 0.066; \/\/ Sensibilit\u00e9 de 66 mV\/A pour 30A\r\n\u00a0 Serial.print(\"Current: \");\r\n\u00a0 Serial.print(current);\r\n\u00a0 Serial.println(\" A\");\r\n\u00a0 delay(1000);\r\n}<\/code><\/pre>\n<h4>What the basic code does<\/h4>\n<p>The code reads the sensor analog value, converts it to voltage and estimates current using the listed 66 mV\/A sensitivity. It prints the result to the serial monitor.<\/p>\n<h4>Parts for the basic example<\/h4>\n<ul>\n<li>Arduino Uno<\/li>\n<li>ACS712 current sensor module<\/li>\n<li>Jumper wires<\/li>\n<\/ul>\n<h4>Basic example wiring<\/h4>\n<ul>\n<li>VCC: Arduino 5 V<\/li>\n<li>GND: Arduino GND<\/li>\n<li>OUT: Arduino A0<\/li>\n<\/ul>\n<p>The formula assumes a 5 V ADC reference, 10-bit readings and a 2.5 V zero-current output. Actual offset and sensitivity vary; calibrate against a suitable reference. This example reports an instantaneous sample and does not calculate RMS current for AC.<\/p>\n<h4>Advanced Arduino example with LCD<\/h4>\n<p>The source also provides this LCD example. Its code is reproduced exactly, including the original comments:<\/p>\n<pre class=\"prism undefined-numbers lang-cpp\" data-lang=\"C++\"><code>#include &lt;LiquidCrystal_I2C.h&gt;\r\n\r\n\r\n\/\/ Broches de connexion\r\n#define CURRENT_SENSOR_PIN A0\r\n\r\n\r\n\/\/ Constantes\r\nconst float V_REF = 5.0;\r\nconst int ADC_RESOLUTION = 1023;\r\nconst float ZERO_CURRENT_VOLTAGE = 2.5;\r\nconst float SENSITIVITY = 0.066; \/\/ Sensibilit\u00e9 du module 30A : 66 mV\/A\r\n\r\n\r\nLiquidCrystal_I2C lcd(0x27, 16, 2);\r\n\r\n\r\nvoid setup() {\r\n\u00a0 lcd.begin();\r\n\u00a0 lcd.backlight();\r\n\u00a0 Serial.begin(9600);\r\n}\r\n\r\n\r\nvoid loop() {\r\n\u00a0 int sensorValue = analogRead(CURRENT_SENSOR_PIN);\r\n\u00a0 float analogVoltage = sensorValue * (V_REF \/ ADC_RESOLUTION);\r\n\u00a0 float current = (analogVoltage - ZERO_CURRENT_VOLTAGE) \/ SENSITIVITY;\r\n\u00a0 lcd.clear();\r\n\u00a0 lcd.setCursor(0, 0);\r\n\u00a0 lcd.print(\"Current: \");\r\n\u00a0 lcd.print(current, 2); \/\/ Affiche le courant avec 2 d\u00e9cimales\r\n\u00a0 lcd.print(\" A\");\r\n\u00a0 Serial.print(\"Current: \");\r\n\u00a0 Serial.print(current, 2);\r\n\u00a0 Serial.println(\" A\");\r\n\u00a0 delay(1000);\r\n}<\/code><\/pre>\n<h4>What the LCD example does<\/h4>\n<p>The example displays the ACS712 reading on an I2C LCD and sends it to the serial monitor.<\/p>\n<h4>Parts for the advanced example<\/h4>\n<ul>\n<li>Arduino Uno<\/li>\n<li>ACS712 current sensor module<\/li>\n<li>1602 I2C LCD<\/li>\n<li>Jumper wires<\/li>\n<\/ul>\n<h4>Advanced example explanation<\/h4>\n<ol>\n<li>The <code>LiquidCrystal_I2C.h<\/code> library is included for the LCD.<\/li>\n<li>The sensor signal pin is assigned to A0.<\/li>\n<li><code>V_REF<\/code> is set to the Arduino 5 V reference, <code>ADC_RESOLUTION<\/code> to 1023, <code>ZERO_CURRENT_VOLTAGE<\/code> to 2.5 V, and <code>SENSITIVITY<\/code> to 0.066 V\/A for the listed 30 A version.<\/li>\n<li><code>setup()<\/code> initializes the LCD backlight and serial communication at 9600 baud.<\/li>\n<li>The loop reads the analog input, converts it to voltage and estimates current from the zero-current voltage and sensitivity.<\/li>\n<li>The LCD is cleared, the result is shown to two decimal places, and the loop waits one second.<\/li>\n<\/ol>\n<p>As with the basic sample, this is a simple illustrative calculation. It does not calculate AC RMS current; calibration, the actual module variant and the measurement circuit affect the result.<\/p>\n<h4>Library installation<\/h4>\n<p>The source says no special library is needed for the ACS712 itself. For the LCD example, install <code>LiquidCrystal_I2C<\/code> using the Arduino IDE Library Manager.<\/p>\n<p><strong>Electrical safety:<\/strong> The sensor supply pins are low voltage, but the measured conductor may carry hazardous current or voltage. Use appropriate isolation, wiring, fusing and test equipment for the circuit. Do not treat the listed isolation value as permission to work on live mains.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ACS712 Hall-effect current sensor module for AC and DC current measurement, listed up to \u00b130 A. Analog output, 66 mV\/A sensitivity and 4.5\u20135.5 V DC operating supply.<\/p>\n","protected":false},"featured_media":55977,"template":"","meta":[],"product_brand":[],"product_cat":[314,316],"product_tag":[],"class_list":["post-55976","product","type-product","status-publish","has-post-thumbnail","product_cat-developpement-en","product_cat-modules-capteurs-en","first","instock","sale","taxable","shipping-taxable","purchasable","product-type-simple"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>ACS712 30 A Hall-Effect Current Sensor Module | MicroPlanet<\/title>\n<meta name=\"description\" content=\"ACS712 current sensor module: \u00b130 A, 66 mV\/A sensitivity and 4.5\u20135.5 V supply as listed. Includes Arduino code examples.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.microplanet.ma\/en\/produit\/acs712-30a-hall-effect-current-sensor-module\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ACS712 30 A Hall-Effect Current Sensor Module | MicroPlanet\" \/>\n<meta property=\"og:description\" content=\"ACS712 current sensor module: \u00b130 A, 66 mV\/A sensitivity and 4.5\u20135.5 V supply as listed. Includes Arduino code examples.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.microplanet.ma\/en\/produit\/acs712-30a-hall-effect-current-sensor-module\/\" \/>\n<meta property=\"og:site_name\" content=\"MicroPlanet Maroc\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ArduinoPlanet\/\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-20T04:06:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.microplanet.ma\/wp-content\/uploads\/2017\/12\/210-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"1000\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/en\\\/produit\\\/acs712-30a-hall-effect-current-sensor-module\\\/\",\"url\":\"https:\\\/\\\/www.microplanet.ma\\\/en\\\/produit\\\/acs712-30a-hall-effect-current-sensor-module\\\/\",\"name\":\"ACS712 30 A Hall-Effect Current Sensor Module | MicroPlanet\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/en\\\/produit\\\/acs712-30a-hall-effect-current-sensor-module\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/en\\\/produit\\\/acs712-30a-hall-effect-current-sensor-module\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.microplanet.ma\\\/wp-content\\\/uploads\\\/2017\\\/12\\\/210-1.png\",\"datePublished\":\"2017-12-04T00:41:31+00:00\",\"dateModified\":\"2026-10-20T04:06:13+00:00\",\"description\":\"ACS712 current sensor module: \u00b130 A, 66 mV\\\/A sensitivity and 4.5\u20135.5 V supply as listed. Includes Arduino code examples.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/en\\\/produit\\\/acs712-30a-hall-effect-current-sensor-module\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.microplanet.ma\\\/en\\\/produit\\\/acs712-30a-hall-effect-current-sensor-module\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/en\\\/produit\\\/acs712-30a-hall-effect-current-sensor-module\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.microplanet.ma\\\/wp-content\\\/uploads\\\/2017\\\/12\\\/210-1.png\",\"contentUrl\":\"https:\\\/\\\/www.microplanet.ma\\\/wp-content\\\/uploads\\\/2017\\\/12\\\/210-1.png\",\"width\":1000,\"height\":1000},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/en\\\/produit\\\/acs712-30a-hall-effect-current-sensor-module\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/www.microplanet.ma\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Shop\",\"item\":\"https:\\\/\\\/www.microplanet.ma\\\/shop\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"ACS712 30 A Hall-Effect Current Sensor Module\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/#website\",\"url\":\"https:\\\/\\\/www.microplanet.ma\\\/\",\"name\":\"MicroPlanet Maroc\",\"description\":\"Arduino, Electronique DIY, Modules, Composants, Raspberry PI\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.microplanet.ma\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/#organization\",\"name\":\"MicroPlanet\",\"url\":\"https:\\\/\\\/www.microplanet.ma\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.microplanet.ma\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/logo5.png\",\"contentUrl\":\"https:\\\/\\\/www.microplanet.ma\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/logo5.png\",\"width\":400,\"height\":133,\"caption\":\"MicroPlanet\"},\"image\":{\"@id\":\"https:\\\/\\\/www.microplanet.ma\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/ArduinoPlanet\\\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ACS712 30 A Hall-Effect Current Sensor Module | MicroPlanet","description":"ACS712 current sensor module: \u00b130 A, 66 mV\/A sensitivity and 4.5\u20135.5 V supply as listed. Includes Arduino code examples.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.microplanet.ma\/en\/produit\/acs712-30a-hall-effect-current-sensor-module\/","og_locale":"en_US","og_type":"article","og_title":"ACS712 30 A Hall-Effect Current Sensor Module | MicroPlanet","og_description":"ACS712 current sensor module: \u00b130 A, 66 mV\/A sensitivity and 4.5\u20135.5 V supply as listed. Includes Arduino code examples.","og_url":"https:\/\/www.microplanet.ma\/en\/produit\/acs712-30a-hall-effect-current-sensor-module\/","og_site_name":"MicroPlanet Maroc","article_publisher":"https:\/\/www.facebook.com\/ArduinoPlanet\/","article_modified_time":"2026-10-20T04:06:13+00:00","og_image":[{"width":1000,"height":1000,"url":"https:\/\/www.microplanet.ma\/wp-content\/uploads\/2017\/12\/210-1.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.microplanet.ma\/en\/produit\/acs712-30a-hall-effect-current-sensor-module\/","url":"https:\/\/www.microplanet.ma\/en\/produit\/acs712-30a-hall-effect-current-sensor-module\/","name":"ACS712 30 A Hall-Effect Current Sensor Module | MicroPlanet","isPartOf":{"@id":"https:\/\/www.microplanet.ma\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.microplanet.ma\/en\/produit\/acs712-30a-hall-effect-current-sensor-module\/#primaryimage"},"image":{"@id":"https:\/\/www.microplanet.ma\/en\/produit\/acs712-30a-hall-effect-current-sensor-module\/#primaryimage"},"thumbnailUrl":"https:\/\/www.microplanet.ma\/wp-content\/uploads\/2017\/12\/210-1.png","datePublished":"2017-12-04T00:41:31+00:00","dateModified":"2026-10-20T04:06:13+00:00","description":"ACS712 current sensor module: \u00b130 A, 66 mV\/A sensitivity and 4.5\u20135.5 V supply as listed. Includes Arduino code examples.","breadcrumb":{"@id":"https:\/\/www.microplanet.ma\/en\/produit\/acs712-30a-hall-effect-current-sensor-module\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.microplanet.ma\/en\/produit\/acs712-30a-hall-effect-current-sensor-module\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.microplanet.ma\/en\/produit\/acs712-30a-hall-effect-current-sensor-module\/#primaryimage","url":"https:\/\/www.microplanet.ma\/wp-content\/uploads\/2017\/12\/210-1.png","contentUrl":"https:\/\/www.microplanet.ma\/wp-content\/uploads\/2017\/12\/210-1.png","width":1000,"height":1000},{"@type":"BreadcrumbList","@id":"https:\/\/www.microplanet.ma\/en\/produit\/acs712-30a-hall-effect-current-sensor-module\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.microplanet.ma\/"},{"@type":"ListItem","position":2,"name":"Shop","item":"https:\/\/www.microplanet.ma\/shop\/"},{"@type":"ListItem","position":3,"name":"ACS712 30 A Hall-Effect Current Sensor Module"}]},{"@type":"WebSite","@id":"https:\/\/www.microplanet.ma\/#website","url":"https:\/\/www.microplanet.ma\/","name":"MicroPlanet Maroc","description":"Arduino, Electronique DIY, Modules, Composants, Raspberry PI","publisher":{"@id":"https:\/\/www.microplanet.ma\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.microplanet.ma\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.microplanet.ma\/#organization","name":"MicroPlanet","url":"https:\/\/www.microplanet.ma\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.microplanet.ma\/#\/schema\/logo\/image\/","url":"https:\/\/www.microplanet.ma\/wp-content\/uploads\/2023\/05\/logo5.png","contentUrl":"https:\/\/www.microplanet.ma\/wp-content\/uploads\/2023\/05\/logo5.png","width":400,"height":133,"caption":"MicroPlanet"},"image":{"@id":"https:\/\/www.microplanet.ma\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/ArduinoPlanet\/"]}]}},"_links":{"self":[{"href":"https:\/\/www.microplanet.ma\/en\/wp-json\/wp\/v2\/product\/55976","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.microplanet.ma\/en\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/www.microplanet.ma\/en\/wp-json\/wp\/v2\/types\/product"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.microplanet.ma\/en\/wp-json\/wp\/v2\/media\/55977"}],"wp:attachment":[{"href":"https:\/\/www.microplanet.ma\/en\/wp-json\/wp\/v2\/media?parent=55976"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/www.microplanet.ma\/en\/wp-json\/wp\/v2\/product_brand?post=55976"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.microplanet.ma\/en\/wp-json\/wp\/v2\/product_cat?post=55976"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/www.microplanet.ma\/en\/wp-json\/wp\/v2\/product_tag?post=55976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}