I've simple variac that I'd like to put into a box a displaying it's output voltage and current.
It's output can reach 240Vac and 3A
I'm a newbie to this and I was looking at some sensor modules, specifically one based on a ZMPT101B transformer and the other one that uses the ACS712. (and 1602 lcd for display)
The Allegro™ ACS712 provides economical and precise
solutions for AC or DC current sensing in industrial, commercial,
and communications systems
The ZMPT101B module is a compact single-phase AC voltage sensor module based on the minuscule 2mA/2mA precision voltage transformer ZMPT101B made by Qingxian Zeming Langxi Electronic (www.micro-transformer.com).
If you are competent around 240VAC, then yea, go for it.
Personally, as an EE, I have a deep respect for anything over 60 Volts... a respect that has been renewed multiple times over my lifespan.
With the power line you can assume a sine wave and then RMS is 0.707 times the peak.
In certain cases (like with an AC light dimmer) the current isn't a sine wave, and with inductive loads the voltage & current can be out-of-phase and that makes it more difficult to calculate the power (if you want to calculate power).
Note that the Arduino can be damaged by voltages greater than Vcc (+5V with a "regular" Arduino) or by negative voltages.
Yes, you can roll your own using a ZMPT101B Module which includes the transformer and a few parts. For current I would likely just choose a current transformer module or the mentioned ACS 712. That assumes roll your own and tie up an Arduino plus a display.