Cov txheej txheem:

Arduino Dual Channel Voltage Sensor Module: 8 Kauj Ruam
Arduino Dual Channel Voltage Sensor Module: 8 Kauj Ruam

Video: Arduino Dual Channel Voltage Sensor Module: 8 Kauj Ruam

Video: Arduino Dual Channel Voltage Sensor Module: 8 Kauj Ruam
Video: Voltage Sensor for Arduino with code and formula to measure any DC voltage 2024, Hlis ntuj nqeg
Anonim
Arduino Dual Channel Voltage Sensor Module
Arduino Dual Channel Voltage Sensor Module
Arduino Dual Channel Voltage Sensor Module
Arduino Dual Channel Voltage Sensor Module
Arduino Dual Channel Voltage Sensor Module
Arduino Dual Channel Voltage Sensor Module

Nws tau ob peb xyoos txij li kuv tau sau cov lus qhia, Kuv tau xav tias yog lub sijhawm rov qab los. Kuv tau xav tsim lub ntsuas hluav taws xob kom kuv tuaj yeem txuas nrog kuv lub rooj zaum fais fab mov. Kuv muaj ob txoj kev hloov pauv lub zog siv hluav taws xob, nws tsis muaj zaub yog li kuv yuav tsum siv lub ntsuas hluav taws xob los teeb qhov hluav taws xob. Kuv tsis yog tus kws tsim hluav taws xob lossis tus tsim qauv, Kuv ua qhov no raws li kev nyiam ua. Tau hais tias kuv yuav piav qhia peb yuav tsim dab tsi ntawm no thiab nws yuav tsis yog qhov tsim qauv zoo tshaj plaws los yog coding zoo tshaj, tab sis kuv yuav ua qhov zoo tshaj plaws.

Kauj Ruam 1: Txog Txoj Haujlwm

Txog Txoj Haujlwm
Txog Txoj Haujlwm
Txog Txoj Haujlwm
Txog Txoj Haujlwm
Txog Txoj Haujlwm
Txog Txoj Haujlwm

Ua ntej tshaj plaws qhov no tsuas yog kev tsim ua ntej ntawm qee yam ruaj khov thiab ntseeg tau, qee yam ntawm cov khoom yuav tsis xaus rau hauv qhov tsim qauv zaum kawg. Feem ntau ntawm cov khoom tau raug xaiv tsuas yog vim muaj (Kuv muaj lawv hauv kuv lub tsev) thiab tsis yog vim lawv ntseeg tau. Qhov kev tsim no yog rau 15V lub zog siv hluav taws xob tab sis koj tuaj yeem hloov ob peb yam tsis sib xws thiab tuaj yeem ua rau nws ua haujlwm ntawm ib qho hluav taws xob lossis tam sim no. Cov ntsuas hluav taws xob tam sim no muaj nyob hauv 5A, 20A thiab 30A koj tuaj yeem tsuas yog xaiv qhov amperage thiab hloov kho cov cai, tib yam nrog lub ntsuas hluav taws xob koj tuaj yeem hloov tus nqi ntawm cov tiv thaiv thiab cov cai ntsuas qhov siab dua.

PCB tsis tau teeb tsa qhov muaj txiaj ntsig vim tias koj tuaj yeem hloov pauv cov khoom siv kom ua tau raws li qhov xav tau ntawm koj lub zog siv. Nws tau raug tsim los ntxiv rau txhua lub hwj chim.

Kauj Ruam 2: Voltage Sensors

Voltage Sensors
Voltage Sensors
Voltage Sensors
Voltage Sensors
Voltage Sensors
Voltage Sensors
Voltage Sensors
Voltage Sensors

Peb yuav pib nrog cov ntsuas hluav taws xob thiab cov ntsuas hluav taws xob tam sim no. Kuv tab tom siv Arduino Mega los ntsuas cov kab hluav taws xob thiab cov cai, yog li qee tus pib zoo li kuv tus kheej tuaj yeem ua thiab sim lawv tus kheej ntawm yoov es tsis txhob tsim tag nrho cov qauv ntawm lub khob cij.

Peb tsuas tuaj yeem ntsuas 0-5 volts siv Arduino cov khoom sib piv. Txhawm rau kom peb tuaj yeem ntsuas txog 15 volts peb xav tau los tsim qhov faib hluav taws xob, cov faib hluav taws xob tau yooj yim heev thiab tuaj yeem tsim tau siv tsuas yog 2 tus tiv thaiv hauv qhov no peb siv 30k thiab 7.5k uas yuav muab rau peb qhov sib piv ntawm 5: 1 yog li peb tuaj yeem ntsuas qhov tseem ceeb ntawm 0-25 volts.

Daim Ntawv Teev Npe Rau Voltage Sensor

R1, R3 30k Resistors

R2, R4 7.5k Resistors

Kauj Ruam 3: Tam Sim No

Tam sim no Sensors
Tam sim no Sensors
Tam sim no Sensors
Tam sim no Sensors
Tam sim no Sensors
Tam sim no Sensors
Tam sim no Sensors
Tam sim no Sensors

Txog qhov ntsuas tam sim no kuv yuav siv ACS712 ua los ntawm Allegro. Tam sim no thawj qhov uas kuv yuav tsum tau hais yog tias kuv paub tias lub ntsuas cua no tsis yog qhov tseeb tab sis yog qhov kuv muaj ntawm tes thaum tsim tus qauv no. ACS712 tsuas yog muaj nyob rau saum npoo av pakage thiab nws yog ib qho ntawm ob peb qho SMD cov khoom siv hauv qhov qauv no.

Daim Ntawv Teev Npe Sensor Tam Sim No

IC2, IC3 ASC712ELC-05A

C1, C3 1nF Capacitor

C2, C4 0.1uF Capacitor

Kauj Ruam 4: Kub Sensor & Ntxuam

Kub Sensor & Ntxuam
Kub Sensor & Ntxuam
Kub Sensor & Ntxuam
Kub Sensor & Ntxuam
Kub Sensor & Ntxuam
Kub Sensor & Ntxuam

Kuv txiav txim siab ntxiv qhov ntsuas kub mus rau tus qauv vim tias feem ntau cov khoom siv hluav taws xob tsim kom muaj cua sov zoo thiab peb xav tau kev tiv thaiv kom sov dhau. Txog qhov ntsuas kub kuv tab tom siv HDT11 thiab rau kev tswj tus kiv cua peb yuav siv 2N7000 N-Channel MOSFET los tsav 5V CPU kiv cua. Lub Circuit Court yog qhov yooj yim heev peb yuav tsum tau siv qhov hluav taws xob mus rau Drain ntawm transistor thiab peb siv qhov ntsuas hluav taws xob zoo rau lub qhov rooj, qhov no peb tab tom siv arduino cov digital tso tawm los muab qhov hluav taws xob ntawd thiab transistor tig ON tso cai rau tus kiv cua los ua. muaj zog.

Cov cai yog qhov yooj yim heev peb ntsuas ntsuas kub los ntawm DHT11 lub ntsuas cua yog tias qhov ntsuas kub ntau dua li peb tus nqi teeb tsa nws teeb tsa tus pin HIGH thiab kiv cua tig rau. Thaum qhov ntsuas kub poob qis dua qhov teeb tsa qhov ntsuas cua ntxuam tawm. Kuv tsim lub Circuit Court ntawm kuv lub khob cij los ntsuas kuv tus lej, kuv nqa qee cov duab nrawm nrog kuv lub xov tooj, tsis zoo thov txim, tab sis cov phiaj xwm yooj yim to taub.

Kub Sensor & Cov Npe Cov Ntxuam

J2 DHT11 Temp Sensor

R8 10K Kuj

J1 5V FAN

Q1 2N7000 MOSFET

D1 1N4004 Diode

R6 10K Resistor

R7 47K Cov Kuj

Kauj Ruam 5: Lub Hwj Huam Circuit Court

Lub Hwj Huam Circuit Court
Lub Hwj Huam Circuit Court
Lub Hwj Huam Circuit Court
Lub Hwj Huam Circuit Court
Lub Hwj Huam Circuit Court
Lub Hwj Huam Circuit Court

Tus qauv ua haujlwm ntawm 5V yog li peb xav tau lub zog ruaj khov. Kuv tab tom siv L7805 Tus tswj hwm qhov hluav taws xob txhawm rau muab 5V tas mus li, tsis ntau hais txog qhov Circuit no.

Daim Ntawv Teev Npe Lub Hwj Huam Circuit Court

1 L7805 Tus Tswj Hluav Taws Xob

C8 0.33uF Capacitor

C9 0.1uF Capacitor

Kauj Ruam 6: LCD & Serial Outputs

LCD & Serial Outputs
LCD & Serial Outputs
LCD & Serial Outputs
LCD & Serial Outputs
LCD & Serial Outputs
LCD & Serial Outputs
LCD & Serial Outputs
LCD & Serial Outputs

Kuv tsim tus qauv kom siv nrog LCD hauv siab, tab sis tom qab ntawd txiav txim siab ntxiv cov ntawv tso tawm rau lub hom phiaj debugging. Kuv yuav tsis mus rau hauv kom ntxaws txog yuav teeb tsa I2C LCD vim kuv twb tau npog nws hauv cov lus qhia yav dhau los I2C LCD Txoj hauv kev yooj yim kuv ntxiv LEDS rau Tx & Rx kab los qhia kev ua haujlwm. Kuv siv lub usb rau cov txuas txuas uas kuv txuas rau tus qauv tom qab ntawd kuv qhib lub ntsuas saib hauv Arduino IDE thiab kuv tuaj yeem pom txhua qhov txiaj ntsig, xyuas kom txhua yam ua haujlwm raws li nws yuav tsum tau ua.

LCD & Serial Out Tshooj npe

I2C 16x2 I2C LCD (20x4 Yeem)

LED7, LED8 0603 SMD LED

R12, R21 1K R0603 SMD Resistor

Kauj Ruam 7: ISP Programming & ATMega328P

ISP Programming & ATMega328P
ISP Programming & ATMega328P
ISP Programming & ATMega328P
ISP Programming & ATMega328P
ISP Programming & ATMega328P
ISP Programming & ATMega328P

Zoo li kuv hais thaum pib qhov qauv no yog tsim los tsim rau kev teeb tsa sib txawv, peb yuav tsum ntxiv txoj hauv kev los teeb tsa ATMega328 thiab xa peb cov duab kos. Muaj ntau txoj hauv kev los mus hais txog kev teeb tsa tus qauv, ib qho ntawm lawv yog siv Arduino ua tus ISP Programmer zoo li hauv ib qho ntawm kuv yav dhau los Cov Lus Qhia Bootloading ATMega nrog Arduino mega.

Sau ntawv:

- Koj tsis xav tau Capacitor los thauj ISP kos duab ntawm Arduino, koj xav tau nws los hlawv lub bootloader thiab xa qhov voltage_sensor Sketch.

-Tau qhov hloov tshiab ntawm Arduino IDE koj yuav tsum txuas tus pin 10 rau tus pin 1 RESET ntawm ATMega328.

ISP & ATMega328P Circuit Parts List List

U1 ATMega328P

XTAL1 16MHz HC-49S Crsytal

C5, C6 22pf Capacitors

ISP1 6 Tus Pin Header

R5 10K Kuj

Pib dua 3x4x2 Tact SMD Hloov

Kauj ruam 8: Sau & Cov Ntaub Ntawv

Sau & Cov Ntaub Ntawv
Sau & Cov Ntaub Ntawv
Sau & Cov Ntaub Ntawv
Sau & Cov Ntaub Ntawv
Sau & Cov Ntaub Ntawv
Sau & Cov Ntaub Ntawv

Nov tsuas yog ib txoj hauv kev rau kuv tso qee cov tswv yim rau hauv cov khoom siv ua haujlwm, zoo li kuv tau hais ua ntej tsuas yog ntxiv me me rau kuv Dual Channel lub rooj ntev zaum lub zog siv. Kuv tau suav nrog txhua yam koj xav tau los tsim koj tus kheej tus qauv, txhua yam ntaub ntawv Eagle CAD thiab cov duab. Kuv tau suav nrog daim duab Arduino, yooj yim heev thiab kuv tau sim ua kom nkag siab yooj yim thiab hloov kho. Yog tias koj muaj lus nug xav nug dawb, kuv yuav sim teb lawv. Nov yog qhov haujlwm qhib, cov lus pom zoo txais tos. Kuv sim muab cov ntaub ntawv ntau npaum li kuv tuaj yeem ua tau tab sis kuv pom tawm txog Arduino kev sib tw lig thiab xav xa qhov no. Kuv yuav sau qhov zoo nkauj sai sai no kuv tseem tau tshem SMD Cheebtsam (resistors, thiab LED) thiab hloov lawv nrog TH cov khoom, tsuas yog SMD Cheebtsam yog lub ntsuas tam sim no vim nws tsuas muaj nyob hauv SOIC pakage, ZIP cov ntaub ntawv muaj cov ntaub ntawv nrog cov khoom TH.

Pom zoo: