So I am doing a dc/ac converter and driving my mosfet drivers with arduino. So I am inputting 12vdc at the drives to make the h-bridge to go 12vac then I’m putting a step up transformer going from 12vac to 110ac. I then add a 15w light bulb as a load and I’m reading my values from the bulb.
I have got AC voltage at the output to read but now I want to make it read output current on the same LCD screen 16x2 with a button to have if and else statements.
I have used dmm and to read values but can’t use that since it’s my senior project need to use arduino
If (button_not_pushed) read voltage
if else (button_pushed ) read current.
I don't know how to implement it can someone help me pls !!!!!!!!
So, if the input voltage is 110V then the voltage across the 1k ohm resistor is 0.110V = 110mV (RMS values).
The 100nF ceramic capacitor is used to stabilize and eliminate noise of voltage signal across the 1k resistor. The 1N4733A Zener diode (reverse-breakdown voltage is 5.1V) is used to protect the Arduino board from voltages higher than 5.1V.
The following Arduino code measures the RMS value of the input AC voltage by detecting the maximum value of the half wave and then divide it by square root of 2 (√2).
So: Vrms = Vmax/√2
I need to build my own meter I cant buy it. My project will also be in a box and no wires will be exposed.
You can add a current sensing resistor in series and measure the voltage over that resistor.
You may need an opamp to amplify the signal.
Another option is with a coil clamped around the wire.
If you are looking at mains AC, please forget about the resistor option!
Can you please post a copy of your circuit, a picture of a hand drawn circuit in jpg, png?
Hand drawn and photographed is perfectly acceptable.
Please include ALL hardware, power supplies, component names and pin labels.
NOTE - IT'S DANGEROUS TO CONNECT DIRECTLY TO THE AC POWER LINE, even with the voltage divider (resistors) and a proper ground.
It would be illegal to sell a product like that unless it's completely enclosed in an insulated box with no outside connections (no USB connection and battery operated or powered from the same AC power line.)
If you build something like that, most of the development & testing should be done with safe voltages (12 or 24V) through an AC transformer whenever the USB is connected to your computer. Transformers are electrically isolated with no electrical connection between the primary and secondary... The energy is transferred magnetically.
...If I was building something like that, I'd use a transformer permanently, not just for testing & development. The secondary voltage is proportional to the primary voltage so it works just as well. (It is more expensive and bulkier).
A few months ago I was doing some "troubleshooting" and I needed to measure AC current. I bought a "Kill-A-Watt" meter. Notice how it's built-into a safe-plastic case?
I could have used my multimeter but this way I didn't have to mess-with wiring the meter in series. ...I'm not "afraid" of AC power and I wouldn't have bought it just for measuring voltage, but this was an easier and "cleaner" way of doing it. And now I have a new handy tool.