Cov txheej txheem:
- Kauj Ruam 1: Cheeb Tsam
- Kauj Ruam 2: Kev Txiav Txim Siab
- Kauj Ruam 3: Bluetooth Module & Khawm's
- Kauj ruam 4: Transistors
- Kauj ruam 5: Arduino Code
- Kauj Ruam 6: Digital Powered Lift App
- Kauj Ruam 7: Kawg
Video: Kev Tswj Cov Hluav Taws Xob rau Kev Ncua Sijhawm Siv Air Arduino thiab Smartphone Remote: 7 Cov Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Nyob zoo sawv daws
Hauv cov lus qhia no kuv yuav sim qhia koj yuav tsim tus tswj hwm rau koj lub tsheb huab cua raug ncua, siv ib qho arduino + bluetooth module thiab rau tej thaj chaw deb ib lub smartphone nrog hauv xov tooj ntawd +4.4, qhov no kuj yog kuv thawj zaug qhia kom ua nrog kuv thov:)
Txoj haujlwm no tau pib nrog tus phooj ywg uas muaj kev tshem tawm huab cua tab sis tsis muaj tus tswj hwm digital, yog li ntawm kuv lub sijhawm kuv tau txiav txim siab pom tias kuv tuaj yeem tsim ib qho rau nws, tom qab ntawd kuv txiav txim siab sim thiab muag lub tswv yim tab sis ntawm no hauv Portugal tsis muaj leej twg zoo li txaus siab. thiab txij li kuv tseem tsis tau muaj lub tsheb nrog huab cua teeb tsa, tam sim no, kuv yuav qhia qhov project nrog txhua tus.
Kho vajtse thiab software ntawm arduino tau ua haujlwm nrog DigitalPowerLift apk ntawm Smartphone, nws ua haujlwm ntawm kev ncua nrog 4 solenoids lossis nrog 8 kuj tseem muaj 3 khawm ntawm cov cuab yeej no kom koj tuaj yeem kho lub tsheb qhov siab yam tsis muaj xov tooj.
Kuv cov kauj ruam tom ntej nrog txoj haujlwm no yuav yog qhov ntsuas qhov siab rau txhua lub log thiab qhib Auto-Mode nyob rau hauv apk tab sis, ntxiv, raws li kuv tsis muaj lub tsheb nrog huab cua los sim cov khoom niaj hnub nyob ntawd tab sis tsuas yog qhia nrawm.
Txoj haujlwm no xav tau qee yam khoom siv ntxiv los tsim vim tias arduino ib leeg tsis tuaj yeem qhib lub 12v solenoids ntawm huab cua li qub, thiab qee yam kev tswj hwm txhawm rau muab lub zog rau arduino vim tias qhov spikes ntawm lub tsheb 12v kab "tsuas yog qhov xwm txheej", txoj haujlwm no kuj tseem tuaj yeem siv tib txheej rau lwm cov haujlwm uas xav tau kev qhib solenoids ntawm lub xov tooj.
Nrog cov lus qhia no koj tseem yuav kawm paub yuav siv qhov faib hluav taws xob rau koj qhov haujlwm li cas, siv ob peb lub khawm nrog koj lub arduino ntsaws nkaus xwb rau ib tus pin analog, siv transistors los qhib lub zog loj dua li arduino 5v.
Koj yuav tuaj yeem rub tawm tag nrho cov cai rau arduino tsuas yog qee cov kauj ruam ua ntej, rau lub xov tooj ntawm tes apk DigitalPowerLift tuaj yeem rub tawm los ntawm google ua si.
Kuv yuav qhia yuav ua li cas sib sau ua ke txhua yam mus rau hauv lub khob cij tab sis kuv muaj 2 tus piv txwv "txheeb xyuas qhov vis dis aus kawg" ntawm txhua qhov khoom siv hauv pcb me me, rau cov uas koj yuav xav tau qee qhov kev txawj ntse.
Kauj Ruam 1: Cheeb Tsam
Cov npe khoom:
TIP120 -Transistor ---- 8
N4007 -Standard Diode ---- 8
Resistor 1K ---- 9
Resistor 1K8 ---- 1
Resistor 390k ---- 1
Resistor 470k ---- 3
PushButton ---- 3
Coj 3mm Ntsuab ---- 4
Coj 3mm Liab ---- 4
Yeem-DC-DC Kauj Ruam 4.5V- 60V mus rau 3-35V ---- 1
Bluetooth Module HC-05
Arduino
Breadboard 830 ntsiab lus
Breadboard jumpercables
Nco tseg: Yog tias hauv koj lub tsheb koj tsuas muaj 2 lub solenoids rau txhua lub qag koj tsuas xav tau 2 ntawm txhua tus Led, 4 - TIP120 thiab 4 - Diodes Ib qho ntawm cov arduino no yuav ua "Uno, Pro mini, Breaduino" lwm tus kuj yuav ua haujlwm tab sis qee qhov kev hloov pauv mus rau qhov hluav taws xob ntawm theem nqis thiab hauv tus lej pin-out xav tau kho dua ua ntej rub tawm.
Kauj Ruam 2: Kev Txiav Txim Siab
Tsuas yog txoj kev uas kuv xav tias nws yooj yim dua los txuas txhua yam rau hauv daim ntawv qhia zaub mov.
Kev Txiav Txim Siab:
- Pib los ntawm kev txuas koj arduino mus rau lub zog ntsia ntawm lub khob cij 5v thiab Gnd ntawm ob sab.
- Txuas lub Bluetooth module.
- Txuas tag nrho cov transistors.
- Txuas tag nrho cov nyees khawm.
- Qhia tawm GND kev sib txuas los ntawm lub tsheb nrog lub khob cij.
- Siv cov kauj ruam-nqis los txhawb lub arduino "yog tias koj muaj nws.
- Upload cov cai rau arduino.
- Nruab ib daim ntawv thov ntawm koj lub smartphone.
- Qhib Serial monitor, xyuas kom lub pob nyem ua haujlwm "cov ntawv yuav tshwm ntawm cov saib" teeb yuav tsum teeb thaum koj thawb lawv.
- Txheeb xyuas txhua qhov transistor tso tawm kom koj tuaj yeem txuas lub log kom raug lossis nce hauv tsheb.
Kauj Ruam 3: Bluetooth Module & Khawm's
Piv txwv tias qee tus ntawm koj tsis tau siv lub bluetooth module lossis transistor kuv txiav txim siab los ua cov lus qhia me me txog yuav ua li cas txuas txhua yam hauv kev nthuav dav, cov no yog thawj zaug. Koj tuaj yeem ua raws cov duab los pab koj txuas txhua yam kom zoo.
Bluetooth Qauv:
Ua ntej peb yuav tsum txo qis arduino Rx uas yog 5v txog 3.3v txoj hauv kev yooj yim tshaj plaws thiab pheej yig tshaj yog ua qhov faib hluav taws xob, raws li koj tuaj yeem pom hauv daim duab yog yooj yim heev.
- Txuas tus +5v thiab GND ntawm tus qauv
- Tsuas yog txuas ib kawg ntawm 1k8 tus tiv thaiv rau hauv av thiab lwm qhov nyob ze tus qauv ntawm qhov 1 ntawm qhov kev tsheb nqaj hlau.
- Txuas ib kawg ntawm 1k resistor hauv tib txoj kev tsheb ciav hlau ib yam li ntawm 1k8 tsuas yog tso lub qhov nruab nrab ntawm lawv, lwm qhov kawg ntawm 1k resistor txuas qee qhov lwm qhov.
- Txuas tus xov tooj ntawm tus lej digital 10 arduino mus rau RX ntawm bluetooth module.
- Txuas tus xov tooj ntawm tus lej digital 11 arduino mus rau txoj kev tsheb nqaj hlau qhov twg 1k resistor nyob ib leeg.
Thaum kawg txuas lub xov tooj mus rau tib txoj kev tsheb nqaj hlau uas ob lub resistors sib ntsib, ntxig txoj kab ncaj nruab nrab ntawm lawv thiab lwm qhov kawg rau TX module.
Pushbuttons:
Txij li thaum kuv tab tom tsim txoj haujlwm no xav txog kev nyeem qhov tseem ceeb los ntawm analog pins kuv xav tau khaws tus pin ntawm arduino pub dawb thiab nrog 8 solenoids los ua haujlwm ntxiv rau 2 tus pin los ntawm bluetooth module lawv tau nqis nrawm, yog li kuv txiav txim siab siv 3 khawm ntawm tib tus pin arduino analog siv kev sib txuas zoo li koj tuaj yeem pom hauv daim duab.
Nco tseg: Rau cov nyees khawm no ua haujlwm koj yuav tsum tau siv qhov qub resistor uas kuv tau siv lossis koj yuav xav hloov txoj cai
- Ntxig lub pob nyem.
- Txuas lawv txhua tus mus rau +5v ntawm tib ceg thawj zaug.
- Ntawm lwm sab ntawm lub khob cij txuas 470k cov neeg tawm tsam hauv koob ntawm cov ceg rov qab ntawm +5v thiab qhov kawg tiv thaiv rau ib txoj kev tsheb nqaj hlau.
- Tam sim no tsuas yog ua tib yam li qhov faib hluav taws xob nrog lub bluetooth module, txuas ib kawg ntawm 390k resistor rau hauv av thiab lwm qhov rau tib txoj kev tsheb nqaj hlau qhov twg 470k nyob ib leeg tawm ntawm qhov ntawm lawv.
- Thaum kawg txuas lub xov tooj los ntawm nruab nrab ntawm cov tiv thaiv mus rau tus pin analog A1 ntawm arduino.
Kauj ruam 4: Transistors
Tam sim no cov transistors
Qhov no yog qhov yooj yim, tsuas yog pib los ntawm kev txuas ib qho zoo li cov duab thiab rov ua dua rau lawv.
Hauv theem no koj yuav tsum paub tias diode ua haujlwm li cas, yog tias koj tsis yooj yim tiag tiag. Tsuas yog xav txog nws li tus dej uas tsuas ntws ib txoj hauv kev, txij li peb yuav ua haujlwm nrog GND txhawm rau qhib lub solenoid's peb yuav tsum txuas qhov kawg ntawm diode uas muaj lub nplhaib nyiaj me ntsis nyob ib puag ncig nws, mus rau + thiab lwm qhov kawg ntawm tib yam tsheb nqaj hlau ua tus pin nruab nrab ntawm TIP120, qhov no yog txhawm rau tiv thaiv kib koj lub transistor vim tias solenoids zoo li lub cav DC, thaum koj tso lawv tawm lawv yuav tsim rau lub sijhawm luv luv tam sim no uas yuav sim rov qab mus rau lub transistor yog li peb xav tau rub nws mus rau + dua. "Siv cov duab muab rau kev pab thiab piv txwv"
Yog tias koj qhov kev teeb tsa huab cua tsuas muaj 4 lub solenoids, xyuam xim rau daim ntawv kawg.
Cov kauj ruam:
- Ntsib cov ntawv ntawm tus transistor tus pin sab laug yog qhov uas koj yuav tsum txuas ib kawg ntawm 1k resistor lwm qhov rau txoj kev tsheb nqaj hlau, tseem txuas rau Led ntev ceg "Anode" hauv tib tus pin sab laug thiab luv luv ceg "Cathode" rau GND.
- Ntawm txoj kab nruab nrab tus pin txuas lub diode ze ntawm lub transistor thiab ib txoj kab hlau txuas tom qab lub diode "ua raws li cov lus qhia", "cov hlau lead yog dab tsi yuav txuas rau GND ntawm solenoid".
- Txoj cai tus pin tau sib koom ntawm txhua tus transistors, qhov no yuav tsum tau sib koom nrog tsheb hauv av thiab Arduino GND.
- Txuas ib kab los ntawm Arduino tus lej digital 2 mus rau ib leeg kawg ntawm 1k resistor.
- Rov ua dua rau txhua tus transistors los ntawm tus lej digital 2 txog rau digital pin9, saib hauv qab no qee Cov Ntawv Qhia yuav ua li cas txuas rau koj lub tsheb cua tshuab.
Arduino - kev sib txuas transistor:
Green Leds yog rau UP:
Digital tus pin 2 - Pem hauv ntej sab laug Log Up
Digital tus pin 3 - Pem hauv ntej txoj cai log Up
Tus lej digital 4 - Rov qab log sab laug
Tus lej digital 5 - Rov qab log sab xis
Leds Leds yog rau Down:
Tus lej digital 6 - Pem hauv ntej sab laug Log Down
Digital tus pin 7 - Pem hauv ntej txoj cai Log
Tus lej digital 8 - Rov qab log sab laug
Tus pin 9 - Rov qab log sab xis
Nco tseg:
Rau kev teeb tsa lub dav hlau hloov chaw uas tsis muaj kev ywj pheej tswj lub log "8 solenoids" tsuas yog muaj kev tswj rau txhua lub qag "4 solenoids" txuas zoo li no.
Ntsuab Coj:
Digital tus pin 2 - Pem hauv ntej qag nce
Tus lej digital 4 - Rov qab qag nce
Liab Coj:
Tus lej digital 6 - Pem hauv ntej Qaum
Tus lej digital 8 - Qag rov qab qis
Kauj ruam 5: Arduino Code
Yog tias koj ua txhua qhov kev sib txuas raws li tau teev tseg, tsuas yog xa cov cai rau koj arduino.
Yog tias tsis muaj qee cov duab los pab koj.
Yog tias koj tau siv sib txawv resistors rau cov nyees khawm koj muaj qee qhov kev pab hauv cov duab ib yam
Rub tus lej arduino ntawm no rub cov cai ntawm no.
Hauv cov duab koj tuaj yeem pom:
- Qhov twg los hloov bauderates
- Qhov hloov pauv tus pin uas txuas rau transistors thiab yuav ua haujlwm ntawm solenoid's
- Qhov twg los hloov Bluetooth RX/TX pins
- Yog tias koj tau siv cov tshuaj tiv thaiv sib txawv los ntawm kev qhia hauv cov nyees khawm, qee qhov kev pab muaj.
Yog tias koj xav txog nws thov hloov txoj cai lossis siv nws raws li koj nyiam ntawm koj lwm txoj haujlwm.
"sib koom yog saib xyuas"
!! Tseem ceeb heev
Tsis txhob hloov cov cai uas nws tau txais cov ntaub ntawv los ntawm Android Application lossis lwm yam yuav tsis ua haujlwm nrog Android daim ntawv thov, tsuas yog hloov nws yog tias koj paub tseeb tias koj tab tom ua dab tsi
Kauj Ruam 6: Digital Powered Lift App
Cov app no twb tau ua haujlwm nrog tus lej arduino.
Koj tuaj yeem tshawb xyuas cov vis dis aus.
Txhawm rau rub daim ntawv thov los ntawm google ua si koj tuaj yeem pom nws ntawm no.
Tsuas yog qhib koj lub xov tooj Bluetooth, tshawb nrhiav thiab txuas koj li Bt module.
Qhib lub app, mus rau lub kaum sab xis saum toj thiab nyem rau txuas, nws yuav qhib cov npe ntawm cov khoom siv ua ke tsuas yog xaiv Bt module los ntawm txhaj rau nws thiab tos, nws yuav tsum rov qab nrog lub pob ntsuab nyob rau sab saum toj sab laug thiab hais hais tias nws yog kev cob cog rua.
Txhua yam ua haujlwm tshwj tsis yog Auto-Mode, uas tam sim no tsuas yog qhia gps nrawm.
Hauv Kev Ua Haujlwm Ntxiv koj tso koj lub xov tooj lub xov tooj tig thiab tig lub xov tooj, lub tsheb yuav ua ib yam.
Kauj Ruam 7: Kawg
Yog tias koj muaj kev ua xyem xyav lossis xav tau kev pab tsuas yog qhia rau kuv paub kuv yuav sim pab koj txhua qhov zoo tshaj plaws Kuv tuaj yeem ua tau.
Koj tuaj yeem ua raws cov piv txwv hauv daim vis dis aus yuav ua li cas thiaj ua tau qhov no hauv pcb me me kom nruj thiab ua haujlwm tau zoo kuv tau ua tiav.
Yog tias koj xav paub tias kuv ua cov lus qhia hais txog yuav ua li cas thiaj li ua daim ntawv thov Android los tswj cov haujlwm arduino siv hauv xov tooj cua studio qhia rau kuv paub hauv cov lus tawm.
Kuv vam tias koj tau tswj kom ua tiav txoj haujlwm no, thiab muaj kev lom zem ua nws.
Yog tias koj tseem muaj qee cov lus qhia txhawm rau txhim kho lossis txhim kho kuv cov lus qhia thov qhia rau kuv paub hauv cov lus kuj.
Xav koj txhua yam zoo tshaj plaws!
:)
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