Cov txheej txheem:
Video: Arduino Wattmeter - Voltage, Tam sim no thiab Kev Siv Hluav Taws Xob: 3 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Ib lub cuab yeej tuaj yeem siv los ntsuas lub zog siv. Lub voj voog no tseem tuaj yeem ua raws li Voltmeter thiab Ammeter los ntsuas qhov hluav taws xob thiab tam sim no.
Khoom siv
Kho vajtse Cheebtsam
Arduino Ib
LCD 16 X 2
LM 358 Op-Amp
7805 Tus tswj hwm Volage
Potentiometer 10k ohm
0.1f ua
Kev tiv thaiv 10k ohm
Resistor, 20 kohm
Resistor 2.21k ohm
Resistor, 0.22 hli
Ntsuas load
Txuas xov hlau
Cheeb Tsam Software:
Arduino IDE Cov
Kauj Ruam 1: Ua haujlwm ntawm Arduino Wattmeter
Tsim koj tus kheej lub ntsuas tsis yog tsuas yog txo tus nqi ntawm kev sim tab sis tseem muab chav rau peb los pab txhawb cov txheej txheem ntsuas.
Ua hauj lwm:
Los ntawm qhov ntsuas qhov ntsuas, muaj ob ntu uas ntseeg tau rau ntsuas qhov ntsuas hluav taws xob thiab tam sim no. Txog kev ntsuas qhov hluav taws xob, qhov hluav taws xob faib hluav taws xob tau ua tiav siv 10KΩ thiab 2.2KΩ Resistor.
Nrog kev pab los ntawm cov tshuaj tiv thaiv no, koj tuaj yeem ntsuas qhov hluav taws xob tau yooj yim txog 24V. Cov resistors no tseem txhawb peb hauv kev ntsuas qhov voltage mus rau 0V - 5V, uas yog qhov ib txwm muaj uas Arduino ua haujlwm.
Txhawm rau ntsuas qhov tam sim no, peb yuav tsum hloov qhov txiaj ntsig tam sim no rau qhov ntsuas qhov ntsuas hluav taws xob. Raws li Ohm Txoj Cai, qhov hluav taws xob poob thoob plaws lub nra yog sib piv rau qhov tam sim no.
Yog li ntawd, me me shunt resistor tau npaj nrog kev hwm rau lub nra. Los ntawm kev kwv yees qhov hluav taws xob hla tus tiv thaiv no, peb tuaj yeem suav qhov tam sim no. Peb tau siv LM358 Op-Amp hauv Tsis-Hloov Hloov Amplifier Hom los ua kom muaj nuj nqis muab rau Arduino.
Lub network faib hluav taws xob rau kev tawm tswv yim suav nrog a20KΩ Resistor thiab 1KΩ Resistor. Cov resistors no muab qhov nce ntawm kwv yees li 21.
Kawm paub ntau ntxiv txog IoT Course uas yuav pab koj txhim kho Kev Kho Mob Tshwj Xeeb IoT.
Kauj ruam 2: Khiav Code
#suav nrog
int Nyeem_Voltage = A1;
int Nyeem_Current = A0;
const int rs = 2, en = 4, d4 = 9, d5 = 10, d6 = 11, d7 = 12;
LiquidCrystal lcd (rs, en, d4, d5, d6, d7);
ntab Voltage = 0.0;
Ntab Tam sim no = 0.0;
Lub zog ntab = 0.0;
void teeb tsa ()
{
lcd.begin (16, 2);
Serial.begin (9600);
lcd.print ("Arduino");
lcd.setCursor (0, 1);
lcd.print ("Wattmeter");
ncua (2000);
lcd.clear ();
}
void lub voj ()
{
Voltage = analogRead (Nyeem_Voltage);
Tam sim no = analogRead (Nyeem_Current);
Voltage = Voltage * (5.0/1023.0) * 6.46;
Tam sim no = Tam sim no * (5.0/1023.0) * 0.239;
Serial.println (Voltage); Serial.println (Tam sim no);
Fais fab = Voltage * Tam sim no;
Serial.println (Hwj chim);
lcd.setCursor (0, 0);
lcd.print ("V =");
lcd.print (Voltage);
lcd.print ("");
lcd.print ("Kuv =");
lcd.print (Tam sim no);
lcd.setCursor (0, 1);
lcd.print ("P =");
lcd.print (Hwj chim);
ncua (1000);
}
Pom zoo:
Cov Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob Igniter: 6 Kauj Ruam (nrog Duab)
Cov Hluav Taws Xob Bluetooth Hluav Taws Xob Igniter: Puas yog nws zoo rau taws ntau dua ib lub foob pob hluav taws tib lub sijhawm? Lossis txawm tias muaj kev nyab xeeb nyob deb rau qhov phom sij txaus ntshai. Hauv qhov haujlwm no kuv yuav qhia koj yuav tsim lub Circuit Court uas tuaj yeem ua tau li cas nrog kev pab ntawm Bluetooth ua haujlwm
Yuav Ua Li Cas Tswj DC Gear Motor los ntawm Kev Siv 160A Txhuam Cov Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob thiab Servo Tester: 3 Cov Kauj Ruam
Yuav Ua Li Cas Tswj DC Gear Motor los ntawm Kev Siv 160A Txhuam Cov Hluav Taws Xob Hluav Taws Xob thiab Cov Kev Pabcuam Servo: Kev Qhia Tshwj Xeeb: Voltage: 2-3S Lipo lossis 6-9 NiMH Nruam tam sim no: 35A Tam sim no tawg: 160A BEC: 5V / 1A, tawm qauv: 1. pem hauv ntej & thim rov qab; 2. mus &nres; 3. rau pem hauv ntej & nres & thim rov qab: 34g Loj: 42*28*17mm
Ib Leeg Hluav Taws Xob Hluav Taws Xob / Hluav Taws Xob Hluav Taws Xob: 6 Cov Kauj Ruam
Ib Leeg Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob / Hluav Taws Xob Hluav Taws Xob: Hauv qhov haujlwm no peb tab tom ua kom muaj Ib lub kauj induction lub cev Muaj zog, thiab ntau yam piav qhia ntxiv, cov qauv ntawm lub tshuab hluav taws xob no tau siv ntau yam khoom siv tam sim no. Peb lub cav tsis muaj lub zog loj, nws yog ntau ntxiv txog kev ua haujlwm
Yuav Ua Li Cas Siv Cov Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob Module: 6 Kauj Ruam
Yuav Ua Li Cas Siv Cov Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob Module: Nco tseg thiab ceev faj: CFL muaj cov mercury uas yog cov khoom phom sij, yog li nws yuav tsum tau ua raws li feem ntau CFL cov teeb, hluav taws xob hluav taws xob tau ua haujlwm zoo thiab tseem siv tau, tsuas yog lub teeb mus tsis zoo. CFL Circuit Court ntawm 18-24 Watts yog
Heatsinks rau Cov Hluav Taws Xob Hluav Taws Xob thiab Cov Hluav Taws Xob!: 4 Cov Kauj Ruam
Heatsinks rau Power Transistors thiab Regulators!: Koj muaj qhov ua tau zoo thiab vam tias yuav kawm paub yuav ua li cas thiaj ua tau qee yam ntawm heatsink rau koj tus tswj hwm lossis cov transistors kom paub tseeb tias dawb. Thiab yog tias tsis yog, cia siab tias txawm tias tau txais qee lub tswv yim, tau kawg koj tuaj yeem hloov kho kuv lub tswv yim. Kuv xav tias nws yog ruam heev