Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Ua Circuit Court
- Kauj ruam 2: Teeb tsa Python
- Kauj Ruam 3: Nyeem Cov Ntaub Ntawv
- Kauj Ruam 4: Database (mySQL)
- Kauj Ruam 5: Txuas Koj Cov Python Nrog Cov Ntaub Ntawv
- Kauj Ruam 6: Xa Cov Ntaub Ntawv mus rau Database
- Kauj Ruam 7: Siv Cov Ntaub Ntawv
- Kauj Ruam 8: Vaj Tsev: Hauv Qab
- Kauj Ruam 9: Vaj Tsev: Sab Me
- Kauj Ruam 10: Vaj Tsev: Sab Loj
- Kauj Ruam 11: Ntxiv Lub Qhov rau LCD & LDR
- Kauj Ruam 12: Txuas Arduino & RFID Scanner rau Sab
Video: Qhia tawm Smartbike: 12 Cov Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Thaum twg kuv siv kuv lub tsheb kauj vab kuv zoo li tsis hnov qab qhib kuv lub teeb thaum nws tsaus ntuj. Kuj ntawm kuv lub tsheb kauj vab kuv tsis muaj txoj hauv kev kom paub tias kuv yuav mus nrawm npaum li cas.
Yog li kuv tau txiav txim siab los ua qhov sib faib smartbike uas taug qab ntawm:
- Ceev
- Qhov chaw
- Koj tau siv lub tsheb kauj vab ntev npaum li cas
Nws tseem tuaj yeem tig lub teeb rau lossis tawm. Kuv siv lub tshuab RFID kom lwm tus tuaj yeem siv lub tsheb kauj vab yam tsis hloov kuv cov ntaub ntawv.
Txuas rau kuv github.
Khoom siv
- Raspberry Pi 3 (€ 32, 49)
- SD Card (rau RPi) (€ 13, 99)
- GPS NEO 6M (rau qhov nrawm thiab qhov chaw) (€ 15, 99)
- Anker PowerCore 10400mAh (€ 29, 99)
- RFID RC522 (€ 5, 49)
- 16x2 LCD (€ 9, 99)
- Elegoo Uno R3 Board (€ 9, 34)
- LDR (€ 1, 50)
- MCP3008 (ADC) (€ 5, 98)
- Lub teeb siv dua tshiab
- Ntoo rau vaj tsev (~ € 15, 00)
- Cables (~ € 6, 00)
Tus nqi tag nrho: € 145.76
Kauj Ruam 1: Ua Circuit Court
Ua ntej koj yuav tau muab txhua yam ua ke. Kuv suav nrog cov txheej txheem fritzing.
Nco tseg: Qee qhov khoom siv zoo li lub tshuab luam ntawv RFID yuav tsum tau muab muag.
Kauj ruam 2: Teeb tsa Python
Txog qhov haujlwm no kuv yuav siv tus nab npawb 3 thiab khiav cov cai nrog tus nab npawb neeg rau zaub mov. Kuv yuav txuas kuv tus github nrog kuv tus lej.
Ua ntej koj yuav tsum tau txuas nrog koj li Raspberry Pi ntawm Chaw> Tsim, Tshawb Xyuas, Kev Ua Haujlwm> Kev Ua Haujlwm. Tom qab ntawd koj yuav tsum ua tus neeg txhais lus nrog txhua pob khoom xav tau. Ntawm kuv tus Raspberry Pi Kuv siv sej 3.5.
Thaum koj tau ua tus neeg txhais lus koj tuaj yeem tsim txoj haujlwm tshiab thiab xaiv tus neeg txhais lus uas koj nyuam qhuav ua rau txoj haujlwm. Tom qab ntawd koj yuav tsum xaiv qhov twg los khaws cov ntaub ntawv ntawm koj lub PC thiab RPi.
Kauj Ruam 3: Nyeem Cov Ntaub Ntawv
Tom qab koj tau ua qhov Circuit thiab txhua qhov khoom ua haujlwm koj xav tau nyeem cov ntaub ntawv los ntawm cov ntsuas. Kuv qhov haujlwm tau tsim los siv Python 3. Hauv nab hab sej kuv nyeem tawm feem ntau ntawm cov ntaub ntawv los ntawm cov ntsuas ntsuas siv chav kawm.
- RFID scanner tau siv nrog arduino (cov ntaub ntawv feem ntau yuav siv nws li cas ntawm no). Kuv nyeem tawm cov ntaub ntawv los ntawm lub tshuab luam ntawv nrog arduino thiab xa mus rau RPi nrog Serial USB.
- GPS module tseem siv kev sib txuas lus txuas. Cov ntaub ntawv GPS xa mus rau RPi tsis zoo li txheej txheem Kuv tau siv lub tsev qiv ntawv los cais cov ntaub ntawv thiab ua kom yooj yim dua rau siv. (Qee cov ntaub ntawv ntxiv ntawm GPS cov ntaub ntawv).
- Qhov sib piv ntawm LDR tau hloov pauv siv mcp3008 (adc), tom qab ntawd kuv hloov tus nqi rau ib feem pua.
Nco tseg: Yog tias koj xav siv 'thaum loops' hauv nab hab sej kom tau txais cov ntaub ntawv tas li thaum khiav lub server sej. Koj yuav xav tau siv xov (cov ntaub ntawv ntau ntxiv ntawm xov). Xov yog yooj yim siv.
Kauj Ruam 4: Database (mySQL)
Tam sim no koj muaj koj cov ntaub ntawv los ntawm cov ntsuas koj xav tau qee qhov chaw khaws cov ntaub ntawv. Peb yuav khaws cov ntaub ntawv hauv cov ntaub ntawv txheeb ze hauv mySQL.
Kuv khiav cov ntaub ntawv ntawm kuv RPi rau qhov no los ua haujlwm Kuv xav kom muaj mariaDB teeb tsa ntawm kuv RPi. Thaum koj teeb tsa mariaDB thiab teeb tsa nws koj tuaj yeem siv mySQL workbench ntawm koj lub PC txuas nrog koj cov ntaub ntawv ntawm RPi.
Koj yuav tsum ua ERD ntawm lub PC; xa mus rau tus kws tshaj lij ERD thiab xa tawm cov ntaub ntawv. Tom qab ntawd koj tuaj yeem xa cov khoom pov tseg (tsis txhob hnov qab tsim cov phiaj xwm) ntawm RPi ntawm mySQL workbench.
Nco tseg: Lub rooj 'Bike_has_User' tsis xav tau thiab tsuas yog siv yog tias koj npaj yuav siv ntau lub tsheb kauj vab. Koj tuaj yeem tso lub rooj 'Bike_has_User' thiab txuas cov lus Siv nrog 'Datahistory'.
Kauj Ruam 5: Txuas Koj Cov Python Nrog Cov Ntaub Ntawv
Tam sim no koj tau teeb tsa koj lub database koj tuaj yeem txuas koj tus nab hab sej nrog cov ntaub ntawv khaws tseg. Nyem rau ntawm database (rau sab xis ntawm lub vijtsam) thiab ntxiv cov ntaub ntawv tshiab.
Cov chaw khaws ntaub ntawv thiab cov nab hab sej sau rau ntawm RPi yog li siv tus IP localhost. Siv tus neeg siv uas koj tau tsim yav dhau los thaum koj nyob qhov twg teeb tsa mariaDB.
Kauj Ruam 6: Xa Cov Ntaub Ntawv mus rau Database
Thaum koj muaj txhua yam teeb tsa koj tuaj yeem pib xa cov ntaub ntawv mus rau lub database. Kuv siv cov pab hauv chav kawm.database hauv nab hab sej rau qhov no (saib kuv github).
Daim duab qhia qee qhov piv txwv piv txwv.
Kauj Ruam 7: Siv Cov Ntaub Ntawv
Nrog rau cov pab hauv chav kawm. Database koj tuaj yeem ntxig cov ntaub ntawv rau hauv lub database lossis tau txais cov ntaub ntawv los ntawm lub database.
Tam sim no txhua yam ua haujlwm koj tuaj yeem siv cov ntaub ntawv los ntawm lub hauv paus los tso saib lawv ntawm lub vev xaib lossis txhua qhov chaw koj xav tau.
Kauj Ruam 8: Vaj Tsev: Hauv Qab
Hais txog vaj tsev
Thaum kawg lub tsev nyob rau qhov haujlwm no yog ua los ntawm ntoo (310x130x110 mm). Feem ntau ntawm cov khoom siv tau muab ntsia rau ntawm ntoo tshwj tsis yog lub txhab nyiaj thiab lub khob cij.
Koj tuaj yeem ua rau lub tsev me dua yog tias koj ua cov khoom sib xyaw. Kuv tsis suav nrog txoj hauv kev txuas lub tsev ruaj ntseg mus rau lub tsheb kauj vab, tab sis muaj ntau txoj kev xaiv.
Ua vaj tsev
Koj yuav tau pib nrog ua hauv qab ntawm lub tsev. Pom tawm ib daim ntoo (130x310 mm). Tom qab ntawd txuas RPi nrog cov ntsia hlau thiab lo lub khob cij rau hauv qab.
Nco tseg: Koj tuaj yeem ua ib feem zoo ib yam rau saum lub tsev
Kauj Ruam 9: Vaj Tsev: Sab Me
Thaum koj ua tiav qhov hauv qab. Koj tuaj yeem pib sawing ob sab. Pib nrog ua ob sab me me.
Ua ntej koj yuav tau muab cov sab me dua. Kuv siv ntoo ntxiv los txuas txhua ntu ua ke, daim ntxiv no ua rau nws yooj yim dua.
Kauj Ruam 10: Vaj Tsev: Sab Loj
Tam sim no koj yuav tau ua sab loj dua. Ib zaug ntxiv pom ob sab thiab txuas lawv rau hauv qab uas siv cov ntoo ntxiv.
Kauj Ruam 11: Ntxiv Lub Qhov rau LCD & LDR
Koj kuj tseem yuav tsum ua lub qhov rau LCD kom koj tuaj yeem pom tus IP chaw nyob thiab tso saib seb tus neeg siv tshuaj xyuas hauv lossis tawm.
Siv qhov ntsuas ntawm LCD los txiav txim siab seb lub qhov yuav loj npaum li cas.
Tom qab koj tau tso lub LCD koj xav tau kom ntseeg tau tias LDR nyob sab nraum lub tsev. Kuv siv lub qhov me me kom LDR tuaj yeem pom nruab hnub nrig.
Kauj Ruam 12: Txuas Arduino & RFID Scanner rau Sab
Tom qab lub tsev nyob tiav, koj tseem yuav tsum tau xa daim npav arduino & RFID. Koj tuaj yeem txuas lawv txhua qhov chaw koj muaj chav. Tab sis kuv pom zoo kom txuas lub RFID scanner hauv qab lub LCD kom tus neeg siv tuaj yeem pom yog tias nws tau luam tawm hauv lossis tawm.
Pom zoo:
Yuav Ua Li Cas Thiaj Li Tawm Tawm Tawm Tawm Rau Hauv Kev Hloov Pauv Hloov?: 6 Cov Kauj Ruam
Yuav Ua Li Cas Thiaj Li Ua Tus Tawm Tawm Tawm Rau Hauv Kev Hloov Transformer?: Yog tias koj xav tau tus tswv lub zog hloov pauv, tom qab ntawd koj yuav tsum tau nyeem kab lus no. Peb yuav xav ua kom tus neeg hloov pauv ntawm txhais ceg txav mus, ua haujlwm yooj yim thiab hais ob peb yam, lossis tseem paub yuav ua li cas sawv, zaum thiab yoj tes. Lub zog los ntawm
Cov Khoom Siv Hluav Taws Xob Tawm Tawm Cov Hluav Taws Xob: 6 Cov Kauj Ruam (nrog Duab)
Cov Khoom Siv Hluav Taws Xob Tawm Tawm Cov Hluav Taws Xob: Hauv kaum kaum xyoo, txog 40 xyoo dhau los, Kuv tau tsim ob txoj kab hluav taws xob tawm. Kuv tau txais daim duab qhia chaw los ntawm cov ntawv xov xwm hu ua 'Elektuur', niaj hnub no hu ua 'Elektor' hauv Netherlands. Cov khoom siv hluav taws xob no siv ib lub hwj chim ntsuas hluav taws xob txuas rau
Kho Ob Chav Tawm Tawm Tawm Tawm Tawm Cov Khoom Siv Hluav Taws Xob: 10 Cov Kauj Ruam (nrog Duab)
Kho Ob Chav Tawm Tawm Tawm Tawm Tawm Tawm Cov Khoom Siv Hluav Taws Xob: Nta: AC-DC Hloov pauv ob npaug tso tawm qhov hluav taws xob (Zoo-Hauv av-Tsis Zoo) Kho txoj kab zoo thiab tsis zoo Tsuas yog Ib Leeg Ib Leeg AC hloov pauv cov suab nrov (20MHz-BWL, tsis muaj thauj khoom): Ib puag ncig 1.12mVpp Tsawg suab nrov thiab cov txiaj ntsig ruaj khov (zoo tagnrho
Dual 7 -ntu Cov Lus Qhia Tswj los ntawm Potentiometer hauv CircuitPython - Qhia tawm ntawm Kev Ua Phem Tsis Pom Kev: 9 Kauj Ruam (nrog Duab)
Dual 7-ntu Cov Lus Qhia Tswj los ntawm Potentiometer hauv CircuitPython-Qhia tawm ntawm Kev Ua Phem Tsis Pom Kev: Qhov haujlwm no siv lub zog ntsuas los tswj cov zaub ntawm ob peb ntawm 7-ntu LED qhia (F5161AH). Raws li lub pob qhov ntsuas hluav taws xob tau tig lub teeb pom kev hloov pauv hauv thaj tsam 0 txog 99. Tsuas yog ib qho LED tau teeb nyob rau txhua lub sijhawm, luv luv, tab sis
Yuav Ua Li Cas Kho Lub Rooj Tog Zaum Lub Hwj Huam Muab Tawm Tawm ntawm Cov Pc Cov Khoom Siv Hluav Taws Xob: 6 Cov Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Hloov Kho Lub Rooj Tog Zaum Lub Hwj Huam Tawm ntawm Cov Pc Cov Khoom Siv Hluav Taws Xob qub: Kuv muaj lub PC qub Lub Hwj Huam Muab tso nyob ib puag ncig.Yog li kuv tau txiav txim siab los ua lub rooj zaum kho kom raug lub zog tawm ntawm nws.Peb xav tau ntau qhov sib txawv ntawm qhov hluav taws xob rau lub zog lossis txheeb xyuas cov hluav taws xob sib txawv lossis cov phiaj xwm. Yog li nws ib txwm zoo kom muaj kev kho tau