Summary of Arduino Energy Cost Electrical Meter Device
This article details the construction of a portable Energy Cost Electrical Meter to monitor electricity usage and costs. The project utilizes an Arduino Micro controller, an ACS712 current sensor, and an AC-to-DC power module to measure 220V circuits. Users can visualize spending on an LCD display. The device features a custom 3D-printed ABS body housing disassembled European Shuko plugs and sockets, assembled with specific screws and standard electronics tools like soldering equipment and clippers.
Parts used in the Energy Cost Electrical Meter:
- Home computer with XOD IDE
- 3D printer
- Clippers
- Screwdriver
- Pliers
- Soldering tools
- Needle file
- Sandpaper
- Shrink tubes
- 14 AWG wires (for 220V circuit)
- 24 or 26 AWG wires (for 5V logic circuit)
- Screw M3 20mm length
- Screw M3 10mm length
- Screw M2 / M2.5
- Hex nut M3
- AC current sensor ACS712 Module (20A range)
- Arduino Micro
- AC to DC Power Module (Input AC86-265V, Output 5V 1A)
- 0802 LCD 8x2 Character LCD Display Module 5V
- Earthed Female Plug 16A 250V
- Male Plug 16A 250V
- Main body (purple) 3D printed part
- Back cover (yellow) 3D printed part
- Socket case (pink) 3D printed part
- Plug case (red) 3D printed part
Do you pay too much for your electricity bills?
Do you want to know how much electricity your kettle or heater consumes?
Make your own portable Energy Cost Electrical Meter!
Watch how I found the use of this device.

Step 1: Preparation. Tools Screws and Consumables.

You need several things to make this project.
- Home computer with XOD IDE installed.
- 3D printer.
Tools:
- Clippers.
- Screwdriver.
- Pliers.
- Soldering tools.
- Needle file.
Consumables:
- Sandpaper.
- Shrink tubes.
- 14 AWG wires or less for 220V circuit.
- 24 or 26 AWG wires for 5V logic circuit.
Screws:
- Screw M3 (DIN7985 / DIN 84 / DIN 912) 20mm length.
- Screw M3 (DIN7985 / DIN 84 / DIN 912) 10mm length.
- Screw M2 / M2.5 (DIN7981 or other).
- Hex nut M3 (DIN 934/ DIN 985).
Step 2: Preparation. Electronics.

To create the device you need some electronic components. Let’s figure out which ones.
First of all, you need an AC current sensor.
The device can works with a high current, so the sensor should be suitable. On the internet, I found an ACS712 sensor manufactured by Allegro.
1 x 20A range Current Sensor ACS712 Module ~ 9$;
This sensor is analog and measures current using the Hall effect. It uses one wire to transmit the measured value. It may not be very accurate, but I think it’s enough for such a device. The ACS712 sensor can be of three types with different maximum limits of measurement :
- ACS712ELCTR-05B (5 amperes max);
- ACS712ELCTR-20A (20 amperes max);
- ACS712ELCTR-30A (30 amperes max).
You can pick the version you need. I use the 20 amp version. I don’t think the current in my sockets exceeds this value.
You need a controller, to read sensor data and to perform all other calculations.
Of course, I chose Arduino. I think that there is nothing more convenient for such DIY projects. My task isn’t difficult, so I don’t need a fancy board. I bought Arduino Micro.
1 x Arduino Micro ~ 20$;
Arduino is powered by DC voltage up to 12V while I was going to measure AC voltage 220V. Moreover, the ACS sensor should be powered by an exact 5 volts. To solve the problem, I bought the AC to DC converter from 220 to 5 volts.
1 x AC to DC Power Module Supply Input: AC86-265V Output: 5V 1A ~ 7$;
I use this converter to power Arduino and sensor.
To visualize my measurements, l display the amount of money spent on a screen. I use this 8×2 character LCD display.
1 x 0802 LCD 8×2 Character LCD Display Module 5V ~9$;
This is small, compatible with Arduino display. It use own data bus to communicate with the controller. Also, this display has a backlight which can be one of different colors. I got the orange one.
Step 3: Preparation. Sonnectors.

The device should have its own power plug and socket.
It is quite challenging to make a quality and reliable plug connection at home. Also, I wanted the device to be portable and compact without any cords and wires.
I decided to buy some universal sockets and plugs in the hardware store to disassemble them to use any their parts. Connectors that I purchased are F type or as they are called Shuko. This connection is used all over the European Union. There are different connector types, for example, the A or B types are a bit smaller than F and are used in Northen America. The internal dimensions of sockets and external dimensions of plugs are standardized for all connectors of the type.
For more information, you can read about different socket types here.
Disassembling a few sockets, I found that their inside parts can be easily removed. These parts have almost the same mechanical dimensions. I decided to use them.
So, To create own device you need :
- Choose the connection type;
- Find plugs and sockets that you can use, and that can be easily disassembled;
- Remove their inner parts.
I used this socket:
1 x Earthed Female Plug 16A 250V ~ 1$;
And this plug:
1 x Male Plug 16A 250V ~ 0,50$;
Step 4: Preparation. 3D Printing.

I printed body parts of the device on a 3D printer. I used ABS plastic of different colors.
Here is the list of parts:
- Main body (purple) – 1 piece;
- Back cover (yellow) – 1 piece;
- Socket case (pink) – 1 piece;
- Plug case (red) – 1 piece;
The main body has threading holes to fasten the current sensor and back cover.
The back cover has threading holes to fasten the AC-DC converter and a snap-fit joint to attach Arduino Micro.
All parts have holes for M3 screws to fix the display, plug and socket cases.
Pay attention to the socket case and plug case parts.
The inner surfaces of these parts are pre-modeled specifically for my connectors. For those disassembled connectors from the previous step.
Thus, if you want to make own device and your plug and socket connectors differ from mine, you need to fix or modify the socket case and plug case 3D models.
STL models are in the attachment. If it is necessary, I can attach the source CAD models.
Source: Arduino Energy Cost Electrical Meter Device
-
What electronic components are required for the device?
The device requires an ACS712 current sensor, an Arduino Micro controller, an AC to DC power module, and an 8x2 character LCD display. -
How does the ACS712 sensor measure current?
The ACS712 sensor measures current using the Hall effect and is available in 5A, 20A, and 30A versions. -
What type of connectors were used for the plug and socket?
The author used F type or Shuko connectors commonly found in the European Union, specifically a 16A 250V earthed female plug and a male plug. -
Which software is needed to prepare the computer for this project?
You need a home computer with the XOD IDE installed. -
What material was used for the 3D printed parts?
The body parts were printed using ABS plastic in different colors such as purple, yellow, pink, and red. -
Can the device handle high current measurements?
Yes, the device works with high current because the selected ACS712 sensor is suitable for measuring up to 20 amperes. -
How is the Arduino Micro powered in this setup?
The Arduino Micro is powered by an AC to DC converter that steps down 220V AC to 5V DC. -
Do I need to modify the 3D models if my connectors differ from the author's?
Yes, if your plug and socket connectors differ, you must fix or modify the socket case and plug case 3D models.
