{"product_id":"acs712-current-sensor-module","title":"ACS712 Hall Effect Current Sensor Module 5A to 30A","description":"\u003cdiv class=\"nznpd\"\u003e\n\u003cdiv class=\"nznpd__lead\"\u003e\n\u003cp class=\"nznpd__intro\"\u003eA current sensor tells your Arduino how much current is flowing through a wire. This module uses the ACS712 Hall effect chip. The current passes through a copper path inside the chip, and the chip turns the magnetic field around that path into a voltage. It reads DC or low-voltage AC current flowing either way, and the path adds almost no resistance to your circuit. The range to pick is the one just above the most current your load draws. The 5A gives the finest reading, so it suits LED strips, small motors and battery charging. The 20A suits bigger 12V motors and pumps. As a guide, a small 12V pump drawing a few amps suits the 5A or 20A. A motor or heater drawing around 15A suits the 20A or 30A. The 30A covers loads up to 30A in coarser steps, so it suits loads of half an amp or more. The chip sets the range, so pick the one you need now.\u003c\/p\u003e\n\u003cp class=\"nznpd__intro\"\u003eYou can use it to log how much current a motor draws, or to watch the current going into a battery as it charges. Add our \u003ca href=\"\/products\/voltage-detection-module-voltage-sensor-for-arduino-electronic-building-blocks\"\u003e0-25V voltage sensor module\u003c\/a\u003e and you can work out the power in watts. It runs from 5V and gives an analogue voltage, so its three header pins connect to 5V, GND and A0 on an \u003ca href=\"\/products\/arduino-uno-r3-atmega328p-development-board-usb-c\"\u003eUno\u003c\/a\u003e or Nano with female-to-male jumper wires. On a 3.3V board such as an ESP32, the output can rise above 3.3V, so it needs two resistors between OUT and the input pin (step 6 below). The wires you are measuring clamp into the screw terminal, and two holes let you screw the board down.\u003c\/p\u003e\n\u003c\/div\u003e\n\n\u003csection class=\"nznpd__block\"\u003e\n\u003ch3 class=\"nznpd__h\"\u003eSpecifications\u003c\/h3\u003e\n\u003cdiv class=\"nznpd__specs\"\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eChip\u003c\/span\u003e\u003cstrong\u003eACS712 Hall effect current sensor, version matched to the range\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eMeasures\u003c\/span\u003e\u003cstrong\u003eDC or low-voltage AC current, either direction\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eSupply voltage\u003c\/span\u003e\u003cstrong\u003e5V (the ACS712 chip runs from 4.5V to 5.5V)\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eOutput\u003c\/span\u003e\u003cstrong\u003eAnalogue voltage, half the supply (about 2.5V) with no current\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eAccuracy\u003c\/span\u003e\u003cstrong\u003e±1.5% at full current (ACS712 chip, 25°C)\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eBandwidth\u003c\/span\u003e\u003cstrong\u003e80kHz with a 1nF filter capacitor (ACS712 chip)\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eCurrent path resistance\u003c\/span\u003e\u003cstrong\u003e1.2mΩ (ACS712 chip)\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eOperating temperature\u003c\/span\u003e\u003cstrong\u003e-40°C to 85°C (ACS712 chip)\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eHeader pins\u003c\/span\u003e\u003cstrong\u003e3-pin male header, soldered: VCC, OUT, GND\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eCurrent connection\u003c\/span\u003e\u003cstrong\u003e2-way screw terminal\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003ePower indicator\u003c\/span\u003e\u003cstrong\u003eLED, lights when 5V is connected\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"nznpd__spec\"\u003e\n\u003cspan\u003eSize\u003c\/span\u003e\u003cstrong\u003eAbout 32 x 14mm, two mounting holes\u003c\/strong\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003ctable class=\"nznpd__tbl\"\u003e\n\u003ctr\u003e\n\u003cth\u003eRange\u003c\/th\u003e\n\u003cth\u003eMeasures\u003c\/th\u003e\n\u003cth\u003eSensitivity\u003c\/th\u003e\n\u003cth\u003eOutput at full current\u003c\/th\u003e\n\u003cth\u003eStep on a 5V Arduino\u003c\/th\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e5A\u003c\/td\u003e\n\u003ctd\u003e±5A\u003c\/td\u003e\n\u003ctd\u003e185mV\/A\u003c\/td\u003e\n\u003ctd\u003e1.58V to 3.43V\u003c\/td\u003e\n\u003ctd\u003eabout 26mA\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e20A\u003c\/td\u003e\n\u003ctd\u003e±20A\u003c\/td\u003e\n\u003ctd\u003e100mV\/A\u003c\/td\u003e\n\u003ctd\u003e0.5V to 4.5V\u003c\/td\u003e\n\u003ctd\u003eabout 49mA\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e30A\u003c\/td\u003e\n\u003ctd\u003e±30A\u003c\/td\u003e\n\u003ctd\u003e66mV\/A\u003c\/td\u003e\n\u003ctd\u003e0.52V to 4.48V\u003c\/td\u003e\n\u003ctd\u003eabout 74mA\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/table\u003e\n\u003cp\u003e\u003csmall\u003e* Sensitivity and output are the ACS712 chip's typical figures with a 5V supply. Steps are for a 10-bit analogue input with a 5V reference, as on an Uno or Nano.\u003c\/small\u003e\u003c\/p\u003e\n\u003c\/section\u003e\n\n\u003csection class=\"nznpd__block\"\u003e\n\u003ch3 class=\"nznpd__h\"\u003eDatasheets\u003c\/h3\u003e\n\u003cdiv class=\"nznpd__ds\"\u003e\n\u003ca class=\"nznpd__dsbar\" href=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0664\/6127\/0112\/files\/ACS712-Current-Sensor-Module-Datasheet-REV1.pdf?v=1796449504\" target=\"_blank\" rel=\"noopener\" aria-label=\"Download the ACS712 current sensor module datasheet (PDF)\"\u003e\n\u003csvg width=\"20\" height=\"20\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\u003e\u003cpath d=\"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z\"\u003e\u003c\/path\u003e\u003cpolyline points=\"14 2 14 8 20 8\"\u003e\u003c\/polyline\u003e\u003c\/svg\u003e\n\u003cspan\u003eFull technical datasheet\u003c\/span\u003e\n\u003cspan class=\"nznpd__dsmeta\"\u003ePDF\u003csvg width=\"17\" height=\"17\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\u003e\u003cpath d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\"\u003e\u003c\/path\u003e\u003cpolyline points=\"7 10 12 15 17 10\"\u003e\u003c\/polyline\u003e\u003cline x1=\"12\" y1=\"15\" x2=\"12\" y2=\"3\"\u003e\u003c\/line\u003e\u003c\/svg\u003e\u003c\/span\u003e\n\u003c\/a\u003e\n\u003c\/div\u003e\n\u003c\/section\u003e\n\n\u003csection class=\"nznpd__block\"\u003e\n\u003cdiv class=\"nznpd__qs\"\u003e\n\u003ch3\u003eWiring \u0026amp; getting started\u003c\/h3\u003e\n\u003cdetails class=\"nznpd__figbox\" open\u003e\u003csummary\u003eWiring diagram\u003cspan class=\"nznpd__codelang\"\u003eArduino Uno\u003c\/span\u003e\u003c\/summary\u003e\u003cfigure class=\"nznpd__fig\"\u003e\u003ca href=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0664\/6127\/0112\/files\/MOD-ACS712-wiring-uno-photo-wide.png?v=1796464540\" target=\"_blank\" rel=\"noopener\"\u003e\u003cpicture\u003e\u003csource media=\"(min-width: 600px)\" srcset=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0664\/6127\/0112\/files\/MOD-ACS712-wiring-uno-photo-wide.png?v=1796464540\" width=\"904\" height=\"838\"\u003e\u003cimg src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0664\/6127\/0112\/files\/MOD-ACS712-wiring-uno-photo.png?v=1796464540\" alt=\"Wiring picture: Arduino Uno 5V to ACS712 VCC, A0 to OUT and GND to GND, with the supply positive lead through the J1 screw terminal to the motor and the motor negative lead back to the supply. J1 has no polarity marks, so swap the two wires if the reading goes below zero\" width=\"690\" height=\"1059\" loading=\"lazy\"\u003e\u003c\/picture\u003e\u003c\/a\u003e\u003cfigcaption\u003eTap the picture to open it full size.\u003c\/figcaption\u003e\u003c\/figure\u003e\u003c\/details\u003e\n\u003col class=\"nznpd__steps\"\u003e\n\u003cli\u003e\u003cdiv\u003e\n\u003cstrong\u003eWire it into the circuit with the power off\u003c\/strong\u003e\u003cp\u003eCut or unplug the positive wire between your power supply and the load. Clamp the supply end into one side of the screw terminal and the load end into the other, so all the load's current passes through the module. The negative wire stays as it was.\u003c\/p\u003e\n\u003c\/div\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cdiv\u003e\n\u003cstrong\u003eConnect the header pins\u003c\/strong\u003e\u003cp\u003eVCC goes to 5V, GND to GND and OUT to A0 on an Uno or Nano. The power LED lights once the board is powered.\u003c\/p\u003e\n\u003c\/div\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cdiv\u003e\n\u003cstrong\u003eFind the zero with the load off\u003c\/strong\u003e\u003cp\u003eHave your sketch average about 1000 readings of A0 when it starts and keep that as the zero. On a 5V board it comes out close to 512 (about 2.5V), but it moves a little with the USB voltage, so measure it at each start-up rather than typing in 512.\u003c\/p\u003e\n\u003c\/div\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cdiv\u003e\n\u003cstrong\u003eWork out the current\u003c\/strong\u003e\u003cp\u003eSubtract the zero from each reading and divide by the sensitivity in volts per amp: \u003ccode\u003eamps = (reading - zero) * 5.0 \/ 1023 \/ sensitivity\u003c\/code\u003e. Use 0.185 for the 5A, 0.100 for the 20A or 0.066 for the 30A. On the 20A, a reading of 553 with a zero of 512 works out to 2.0A.\u003c\/p\u003e\n\u003c\/div\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cdiv\u003e\n\u003cstrong\u003eCheck it works\u003c\/strong\u003e\u003cp\u003eWith the load off it should print close to 0A, give or take a step or two. Switch on a load you know, such as a 12V LED strip that draws 1A, and it should read close to that. If the number is right but negative, swap the two wires in the screw terminal, or flip the sign in your code. Averaging 100 or more readings each time steadies the last digit.\u003c\/p\u003e\n\u003c\/div\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cdiv\u003e\n\u003cstrong\u003eUsing a 3.3V board such as an ESP32\u003c\/strong\u003e\u003cp\u003eA 3.3V board needs these two resistors, because the output can rise above 3.3V. Power the module from the board's 5V or VIN pin, which carries the USB 5V. Then add two resistors from our \u003ca href=\"\/products\/metal-film-resistor-assortment-kit-600pc-30-values-10%CF%89-1m\"\u003eresistor kit\u003c\/a\u003e: 10K from OUT to the input pin and another 10K from the input pin to GND. They halve the output, so 0.5V to 4.5V becomes 0.25V to 2.25V, which sits inside the range the ESP32 reads most accurately. A 100nF capacitor from the input pin to GND steadies the reading. Read the pin with \u003ccode\u003eanalogReadMilliVolts()\u003c\/code\u003e, find the zero the same way, then divide by 92.5 for the 5A, 50 for the 20A or 33 for the 30A to get amps. Treat those figures as a starting point and adjust them until the reading matches a load you know or a multimeter.\u003c\/p\u003e\n\u003c\/div\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003c\/div\u003e\n\u003c\/section\u003e\n\n\u003cp class=\"nznpd__note\"\u003e\u003cstrong\u003eNote:\u003c\/strong\u003e The screw terminal carries the full voltage of the circuit you are measuring. This module is for low-voltage circuits such as battery, solar and 12V systems, so keep it off mains wiring.\u003c\/p\u003e\n\u003c\/div\u003e\n","brand":"NZN Electronics","offers":[{"title":"5A","offer_id":67912460697696,"sku":"MOD-ACS712-05A","price":4.99,"currency_code":"NZD","in_stock":true},{"title":"20A","offer_id":67912460730464,"sku":"MOD-ACS712-20A","price":4.99,"currency_code":"NZD","in_stock":true},{"title":"30A","offer_id":67912460763232,"sku":"MOD-ACS712-30A","price":4.99,"currency_code":"NZD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0664\/6127\/0112\/files\/ACS712_01_hero.png?v=1796463005","url":"https:\/\/www.nznelectronics.co.nz\/products\/acs712-current-sensor-module","provider":"NZN Electronics","version":"1.0","type":"link"}