Cov txheej txheem:

AC Voltmeter Siv Arduino: 3 Kauj Ruam (nrog Duab)
AC Voltmeter Siv Arduino: 3 Kauj Ruam (nrog Duab)

Video: AC Voltmeter Siv Arduino: 3 Kauj Ruam (nrog Duab)

Video: AC Voltmeter Siv Arduino: 3 Kauj Ruam (nrog Duab)
Video: JEE 2023 Aspirants ka Sach - 💔 #JEE2023inApril #jee #shorts #namokaul 2024, Hlis ntuj nqeg
Anonim
AC Voltmeter Siv Arduino
AC Voltmeter Siv Arduino

Nov yog qhov yooj yim Circuit Court kom paub meej AC qhov hluav taws xob siv Arduino UNO yam tsis muaj AC voltmeter !! Zoo siab !!

Kauj Ruam 1: YUAV TSUM MUAJ NTAUB NTAWV

NTAWV YUAV TSUM MUAJ
NTAWV YUAV TSUM MUAJ
NTAWV YUAV TSUM MUAJ
NTAWV YUAV TSUM MUAJ
NTAWV YUAV TSUM MUAJ
NTAWV YUAV TSUM MUAJ

Nyeem cov lus piav qhia kom paub txhua tus siv…

1) Step-downTransformer (12V lossis 6V), kuv tau siv 6V ib qho

2) Resistor (2P- 1K ohm raws li kuv siv 6V Tx, rau 12V nws 1K thiab 4.7K)

3) Diode (1N4007)

4) Zener Diode (5V)

5) Capacitor (1uF nyiam dua lossis lwm yam 10uF ntau lub sijhawm kom tso tus nqi !!)

6) Adruino UNO lossis pom tseeb thiab qee tus dhia (2)

Tag nrho cov no yog cov khoom siv uas yuav tsum tau kos lub phiaj xwm mus rau hauv lub neej …

Kauj Ruam 2: Daim duab qhia chaw thiab piav qhia

Daim duab kos thiab piav qhia
Daim duab kos thiab piav qhia

Koj puas pom lub voj voog ntawd ?? OHHH … yog tsis muaj dab tsi hauv nws

1) Kauj ruam-nqis hloov pauv (220V rau 6V AC) tab sis arduino tsis tuaj yeem siv AC qhov hluav taws xob los nyeem uas tseem yog 6V

2) Cia tau txais 6V nqes mus rau 5V kev siv hluav taws xob ntawm Arduino kom nws tuaj yeem ntsuas lossis nyeem, yog li qhov faib hluav taws xob siv 2 1k resistor yog li nws los rau 3V AC (kwv yees)

3) Txhawm rau kom tau txais DC peb tau siv lub diode ua ib nrab nthwv dej rectifier

4) Tam sim no 5V DC yuav tsum tau khaws cia tsis ntau tshaj qhov ntawd yog li peb tau siv lub tshuab hluav taws xob kom ruaj khov qhov hluav taws xob thiab zenver diode ua tus tswj hluav taws xob uas ua rau 5V ntawm lub dav hlau ib txwm !!

Yog li, tam sim no ntu ntu tau ua tiav tam sim no peb yuav tshem tawm cov dhia los ntawm cov dav hlau uas tau qhia hauv daim duab qhia chaw (piv txwv li hla zener diode) thiab tso cov dhia (+) rau A0 analog pin ntawm Arduino thiab (-) rau GND ntawm Arduino.

Yog tias koj tsis paub anode thiab cathode ntawm diode xa mus rau internet nws yooj yim! nyiaj sab cathode (1N4007) THIAB dub sab cathode (zener diode).

Kauj ruam 3: Arduino thiab Code

Arduino thiab Code!
Arduino thiab Code!
Arduino thiab Code!
Arduino thiab Code!
Arduino thiab Code!
Arduino thiab Code!

Arduino tus pin A0 thiab Gnd raws li tau siv los tshuaj xyuas qhov yuav los tom ntej nrog kev hwm rau AC lub ntsiab …

5V cov tswv yim ntawm A0 tus pin hais txog 1023 ntsis tus nqi ntawm arduino…

Yog li, 220V AC (rmss) = 311V (ncov) sib xws rau 1023 ntsis

1 ntsis sib xws = 311/1023, Yog li peb tau coj, b = analogRead (A0) thiab ac voltage = a = (b*311/1023)

Tam sim no qhov hluav taws xob uas peb tau txais yog qhov siab tshaj kom tau r.m.s. peb faib ncov/sqrt (2).

TAB SIS, yog tias peb tsuas yog hais cov ntawv luam tawm Arduino yuav txuas ntxiv cov phiaj hluav taws xob yog li peb tau ua qhov program los qhia tawm tsuas yog hloov pauv.

Ua tsaug rau nyeem qhov haujlwm me me tab sis muaj txiaj ntsig yog tias koj tsis muaj ac voltmeter nyob ze koj.

Kuv yuav los nrog IoT cov haujlwm los ntawm ib qho tom ntej.

Code: Github txuas rau ino file

Pom zoo: