Cov txheej txheem:
- Kauj Ruam 1: Cov Npe Khoom
- Kauj ruam 2: Circuit Court
- Kauj ruam 3: Code
- Kauj ruam 4: Xeem
- Kauj Ruam 5: Kuaj Cov Tiv Thaiv
Video: Kuv - V Nkhaus Nrog Arduino: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Kuv txiav txim siab los tsim I -V nkhaus ntawm leds. Tab sis kuv tsuas muaj ib lub multimeter, yog li kuv tsim tau yooj yim I-meter nrog Arduino Uno.
Los ntawm Wiki: Tus yam ntxwv tam sim no – voltage lossis I – V nkhaus (tam sim no – qhov nkhaus nkhaus) yog kev sib raug zoo, feem ntau sawv cev raws li daim duab lossis kab duab, nruab nrab ntawm qhov hluav taws xob tam sim no los ntawm kev siv hluav taws xob, khoom siv, lossis cov khoom siv, thiab qhov sib xws sib txuas, lossis muaj peev xwm sib txawv hla nws.
Kauj Ruam 1: Cov Npe Khoom
Rau qhov haujlwm no, koj yuav xav tau:
Arduino Uno nrog USB cable
breadboard thiab duponts cable
leds (Kuv siv 5 hli liab thiab xiav leds)
poob resistor (shunt resistor) - Kuv txiav txim siab rau 200 ohm (rau 5V yog qhov siab tshaj tam sim no 25 mA)
resistors lossis potenciometer, Kuv siv sib xyaw resistors - 100k, 50k, 20k, 10k, 5k, 2.2k, 1k, 500k
Kauj ruam 2: Circuit Court
Circuit Court suav nrog los ntawm kev ntsuas coj, shunt resistor (R_drop) rau ntsuas tam sim no. Txhawm rau hloov qhov poob qis thiab tam sim no kuv siv ntau yam resistors (R_x).
Lub hauv paus ntsiab lus yog:
- tau txais tag nrho tam sim no kuv hauv Circuit Court
- tau txais qhov hluav taws xob poob ntawm kev sim coj Ul
Tag nrho tam sim no I
Txhawm rau kom tau txais tag nrho tam sim no, Kuv ntsuas qhov hluav taws xob poob Ur ntawm shunt resistor. Kuv siv analog pins rau qhov ntawd. Kuv ntsuas voltage:
- U1 ntawm GND thiab A0
- U2 ntawm GND thiab A2
Qhov sib txawv ntawm qhov ntsuas hluav taws xob no sib npaug qhov hluav taws xob poob ntawm shunt resistor: Ur = U2-U1.
Tag nrho tam sim no kuv yog: Kuv = Ur/R_drop = Ur/250
Voltage poob Ul
Txhawm rau kom tau txais qhov hluav taws xob poob ntawm coj, Kuv rho tawm U2 los ntawm tag nrho cov hluav taws xob U (uas yuav tsum yog 5V): Ul = U - U2
Kauj ruam 3: Code
ntab U = 4980; // qhov hluav taws xob nruab nrab ntawm GND thiab arduino VCC hauv mV = tag nrho qhov hluav taws xob
ntab U1 = 0; // 1 sojntsuam
ntab U2 = 0; // 2 sojntsuam
float ua = 0; // voltage poob ntawm shunt resistor
float Ul = 0; // voltage poob ntawm coj
ntab I = 0; // tag nrho tam sim no hauv Circuit Court
ntab R_drop = 200; // tsis kam ntawm kaw resistor
void teeb tsa ()
{
Serial.begin (9600);
pinMode (A0, INPUT);
pinMode (A1, INPUT);
}
void lub voj ()
{
U1 = ntab (analogRead (A0))/1023*U; // tau txais qhov hluav taws xob nruab nrab ntawm GND thiab A0 hauv milliVolts
U2 = ntab (analogRead (A1))/1023*U; // tau txais qhov hluav taws xob nruab nrab ntawm GND thiab A1 hauv milliVolts
Ua = U2-U1; // poob qhov hluav taws xob ntawm shunt resistor
Kuv = Ur/R_drop*1000; // tag nrho tam sim no hauv microAmps
Ul = U-U2; // voltage poob ntawm coj
Serial.print ("1");
Serial.print (U1);
Serial.print ("2");
Serial.print (U2);
Serial.print ("////");
Serial.print ("qhov hluav taws xob poob ntawm shunt resistor:");
Serial.print (Ua);
Serial.print ("qhov hluav taws xob poob ntawm coj:");
Serial.print (Ul);
Serial.print ("tag nrho tam sim no:");
Serial.println (Kuv);
// ncua
ncua (500);
}
Kauj ruam 4: Xeem
Kuv sim 2 leds, liab thiab xiav. Raws li koj tuaj yeem pom, cov coj xiav muaj lub hauv caug hluav taws xob loj dua, thiab qhov ntawd yog vim li cas xiav coj xav tau xiav coj pib tshuab ib puag ncig 3 Volts.
Kauj Ruam 5: Kuaj Cov Tiv Thaiv
Kuv ua kuv - V nkhaus rau resistor. Raws li koj tuaj yeem pom, kab ntawv yog kab tawm. Cov duab qhia, tias Ohm´s txoj cai ua haujlwm tsuas yog rau cov neeg tawm tsam, tsis yog rau leds. Kuv xam qhov tsis kam, R = U/I. Kev ntsuas tsis meej ntawm tus nqi qis tam sim no, vim tias analog - digital converter hauv Arduino muaj kev daws teeb meem:
5V / 1024 = 4.8 mV thiab tam sim no -> 19.2 microAmps.
Kuv xav tias ntsuas yuam kev yog:
- breadboard contants tsis yog super contants thiab ua rau qee qhov yuam kev hauv qhov hluav taws xob
- siv cov resistors muaj ib puag ncig 5 % ntau yam hauv kev tiv thaiv
- ADC qhov tseem ceeb los ntawm analog nyeem oscilate
Pom zoo:
Kuv Ua Kuv Tus Kheej Lub Tshuab Npaum Li Cas?: 11 Kauj Ruam (nrog Duab)
Kuv Ua Kuv Tus Kheej Lub Boxing Li Cas?: Tsis muaj ib zaj dab neeg zoo nyob tom qab qhov haujlwm no - Kuv tsuas yog ib txwm nyiam lub tshuab ntaus nrig, uas tau nyob hauv ntau qhov chaw nrov. Kuv txiav txim siab tsim kuv tus kheej
Brachistochrone nkhaus: 18 Kauj Ruam (nrog Duab)
Lub Brachistochrone nkhaus: Lub nkhaus brachistochrone yog qhov teeb meem physics qub, uas yog txoj hauv kev nrawm tshaj ntawm ob lub ntsiab lus A thiab B uas nyob ntawm qhov siab sib txawv. Txawm hais tias qhov teeb meem no yuav zoo li yooj yim nws muab cov txiaj ntsig tsis zoo thiab yog li yog qhov txaus nyiam
Kuv Tus D D Tus Tuav Yooj Yim (thiab Kuv Ua Li Cas Nrog): 4 Cov Kauj Ruam
Kuv Tus D D Tus Tuav Yooj Yim (thiab Qhov Kuv Tau Ua Nrog Nws): qhov no yog tus tuav yooj yim rau cov roj teeb me me, Kuv siv ob qho los tso tawm 3v, tab sis koj tuaj yeem yooj yim ncab lossis txo qhov tsim raws li koj xav tau, kuj koj tuaj yeem siv tau tib lub hauv paus ntsiab lus rau qhov loj c hlwb. Kuv muaj ntau qhov loj me d cell hauv lub txee ua dab tsi
Kuv Rack-mounted Kuv Kab 6 Pod Guitar Effects Processor: 10 Kauj Ruam (nrog Duab)
Kuv Rack -mounted Kuv Kab 6 Pod Guitar Effects Processor: Kuv yuav ib qho ntawm kab thawj 6 POD chav nyob thaum lawv thawj zaug rov qab los rau xyoo 1998. Nws suab zoo li rov tshwm sim thaum ntawd thiab tseem suab zoo hnub no - qhov teeb meem tsuas yog nws cov duab - Txhawm rau muab nws meej, nws zoo li ua dag. Tseem ceeb dua, tshwj tsis yog tias koj muaj
Kuv Keyboard Kuv Tes: 8 Kauj Ruam (nrog Duab)
Kuv Cov Keyboard Kuv Tes: Kuv siv lub cim tshiab Epilog laser txiav uas qhia tsis ntev los no tau txais laser cim cov duab ntawm kuv txhais tes mus rau kuv lub laptop keyboard … mus tas li. Tam sim no uas yog voiding koj lav hauv DIY style