Cov txheej txheem:
- Kauj Ruam 1: Khoom
- Kauj ruam 2: Nruab Raspberry Pi
- Kauj ruam 3: Ntxiv Script
- Kauj Ruam 4: Nruab Pob
- Kauj ruam 5: Configure Crontab
- Kauj Ruam 6: Daim duab PCB
- Kauj Ruam 7: Khawm Khawm thiab LED
- Kauj Ruam 8: Npaj PCB
- Kauj Ruam 9: Solder PCB
- Kauj ruam 10: Siv
Video: Raspberry Pi GPS Logger: 10 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:28
Cov lus qhia no piav qhia koj yuav tsim lub compact GPS logger nrog raspberry pi xoom. Lub ntsiab kom zoo dua rau cov kab ke no yog tias nws suav nrog lub roj teeb thiab yog li ntawd yog kev cog lus heev.
Cov cuab yeej khaws cov ntaub ntawv hauv.nmea cov ntaub ntawv. Cov ntaub ntawv hauv qab no tuaj yeem pom yooj yim hauv google ntiaj teb:
- Txoj hauj lwm
- Ceev
- Qhov siab
- Nrug deb
Cov kab ke no tuaj yeem siv rau hauv qhov chaw uas koj tsis xav tso koj lub smartphone, piv txwv li:
- Longboarding (tshwj xeeb yog nqes hav)
- Ntawm lub drone
Kauj Ruam 1: Khoom
Txhawm rau paub qhov kev qhia no koj xav tau cov cuab yeej hauv qab no:
- Raspberry Pi Zero nrog HDMI thiab USB adapter
- Micro SD daim npav
- Adafruit GPS
- Adafruit 500mAh Powerboost Charger
- Li-Po roj teeb, uas tuaj yeem muab lub zog txaus rau lub zog txhawb (2500mAh hauv kev qhia)
- Stripboard PCB (yam tsawg 29x23 qhov)
- somme tooj liab hlau
- 2x 200 Ohm resistors (lossis nrog tiv taus ntau dua)
- 3x 10 kiloohm resistors
- ntsuab thiab liab LEDs (LED thiab resistor pob)
- 3 x laub khawm
Cov cuab yeej koj xav tau:
- khoos phis tawj nrog SD daim npav nyeem ntawv
- keboard rau raspberry pi
- zaub nrog HDMI
- HDMI kab
- Ethernet cable
- USB rau LAN adapter
- Qhov chaw nres tsheb Soldering
- qee tus pincers los txiav thiab khoov cov xov tooj tooj liab
Koj tuaj yeem siv lwm tus raspberry pi (tsis yog xoom) rau kev teeb tsa yog tias koj tsis muaj cov adapters raug.
Ceeb Toom: Cov roj teeb Lithium tuaj yeem ua rau txaus ntshai heev! Xaiv lub roj teeb Li-Po uas tuaj yeem muab lub zog txaus thiab uas muaj kev tiv thaiv Circuit Court inbuilt. Kuv tsis lav paub thaum muaj xwm txheej.
Kauj ruam 2: Nruab Raspberry Pi
Txhawm rau nruab koj li raspberry pi koj yuav tsum rub ob yam:
Win32diskImager: https://sourceforge.net/projects/win32diskimager/Raspbian Jessy lite:
Nco ntsoov rub tawm 32 ntsis version ntawm Raspbian.
Nruab Win32DiskImager thiab qhib nws. Xaiv cov ntawv Raspbianimg thiab daim npav SD tsis muaj dab tsi. Nias ntawm lub pob sau, tos kom txog thaum win32DiskImagerhave tiav thiab tshem daim npav SD ntawm lub computer.
Kauj ruam 3: Ntxiv Script
Txoj hauv kev yooj yim tshaj plaws los ntxiv tsab ntawv yog theej nws mus rau daim npav SD nrog lub khoos phis tawj.
Luam cov ntaub ntawv los ntawm qhov chaw cia khoom no mus rau qhov muab faib ntawm SD card lossis clone lub chaw cia ntawm raspberry pi thiab txav nws mus rau hauv /khau raj nplaub tshev.
Github repository:
Thiab yog tias koj nyiam lub phiaj xwm txheeb xyuas kuv li Instagram:)
Kauj Ruam 4: Nruab Pob
Yog tias koj muaj Ethernet thiab HDMI adapter, txuas lub raspberry pi xoom mus rau HDMI zaub thiab rau lub network. Muab tso rau hauv SD daim npav thiab pib raspberry pi. Yog tias koj tsis muaj tus hloov pauv, koj tuaj yeem siv lwm tus raspberry pi rau kev teeb tsa. Hauv qhov haujlwm no kuv tau siv raspberry pi qauv B.
Pib raspberry pi thiab sau lub npe siv tsis raug: pi thiab tus password: raspberry. Ntaus hauv qhov hais kom ua pib lub cuab yeej teeb tsa.
sudo raspi-teeb tsa
Nthuav cov ntaub ntawv kaw lus kom ntseeg tau tias txhua daim npav SD tau siv thiab ua haujlwm tsis zoo hauv lub davhlau ya nyob twg hauv ntu ntu. Koj kuj tseem xav hloov tus password, teeb tsa keyboard lossis pab kom SSH.
Txhawm rau txhim kho pob, rov pib dua raspberry pi thiab ua qhov hloov tshiab:
sudo apt-tau hloov tshiab
Tom qab ntawd teeb tsa txhua pob sej rau kev sib txuas lus nrog GPS thiab GPIO.
sudo apt-tau nruab python-dev python-rpi.gpio sej-serial
Kauj ruam 5: Configure Crontab
Txog qhov ntawv sau mloog cov nyees khawm txuas nrog GPIO, peb xav kom nws khiav tsuas yog tom qab pib raspberry pi. Txhawm rau ua qhov no peb xav tau crontab. Crontab tau teeb tsa los ntawm lub neej ntawd.
sudo crontab -e
Yog tias cov lus yuam kev tshwm sim tsuas yog nias nkag mus.
ntawm qhov kawg ntawm cov ntawv, tom qab cov lus pom, ntxiv kab hauv qab no:
@reboot sh /boot/gps.sh
Qhov no yuav khiav tsab ntawv gps.sh tom qab txhua qhov pib. Txuag qhov kev hloov kho thiab kaw tus editor nrog CTRL+O thiab CTRL+X. Koj tus raspberry pi tam sim no npaj tau, koj tuaj yeem kaw nws nrog:
sudo kaw tam sim no
Kauj Ruam 6: Daim duab PCB
Hauv cov duab koj pom cov duab kuv tau ua rau PCB ntawm txoj haujlwm no.
Rau PCB daim duab:
- Cov kab ntsug yog cov dhia.
- Cov dots yog cov ntsiab lus solder
- Cov voj voos yog kev sib txuas rau cov khoom sab nrauv PCB
- Thiab cov ntoo khaub lig yog so hauv cov kab txaij.
- Cov duab plaub yog cov neeg tawm tsam (lub cim yog cov nyob sab Europe)
- Cov kab horizontale yog kom nkag siab zoo dua txog kev sib tw
Daim duab thib ob piav qhia txhua qhov txuas sab nraud ntawm PCB tseem ceeb.
Tej zaum koj yuav xav txhim kho, hloov kuv daim duab lossis ntxiv lwm yam kev ua haujlwm rau hauv Circuit. Piv txwv li, koj tuaj yeem ntxiv qhov ntsuas kub, av noo lossis ntsuas qhov nrawm. Tab sis nco ntsoov tias koj xav tau chaw rau txhua qhov kev tivthaiv (raspberry pi, gps, powerboost thiab roj teeb), thiab tias lub zog txuas USB txuas yuav tsum siv tau kom them lub roj teeb.
Nco tseg: Cov duab kos yog pom los ntawm sab tooj liab ntawm PCBs.
Kauj Ruam 7: Khawm Khawm thiab LED
Txog rau tus neeg siv cuam tshuam txiav ib qho PCB me me kom siv cov LEDs thiab cov nyees khawm ntawm lawv. Yog tias PCB muaj cov kab tooj liab zoo li hauv daim duab koj xav tau lub cuab yeej los cuam tshuam cov kab txaij. Yog tias koj tsis muaj cov cuab yeej zoo li no, tsuas yog siv qee yam ntse zoo li ib qho ntawm txhuas los ntawm cov ntawv qub qub.
Ntawm thawj daim duab koj pom PCB uas ua tiav, nrog xaim rau txhua qhov tivthaiv (LED lossis khawm) thiab ib qho xaim hauv av. Txhua ntawm cov xaim no yuav tsum tau muab txuas rau lub PCB tseem ceeb.
Nco tseg: Cov tooj liab xim av ntawm PCB yog vim cua sov ntawm cov hlau txuas.
Kauj Ruam 8: Npaj PCB
Txiav tawm PCB nrog 23 kab thiab 29 kab. Nws tau txais txiaj ntsig zoo yog tias PCB tus nees luav tooj liab kab thiab tsis yog ib ncig ib ncig ntawm txhua qhov. Npaj cov hlua los ntawm xaim txhawm rau txuas cov kab ntawm PCB. Cuam tshuam cov kab tooj liab ntawm cov chaw uas pom hauv daim duab los ntawm kauj ruam 6 (hla).
Kauj Ruam 9: Solder PCB
Pib siv cov hlua dhia, vim tias lawv yog cov khoom me me. Txiav tawm tag nrho cov xov hlau thiab tus pin.
Txuas ntxiv nrog cov resistors. Tom qab cov resistors PCB tiav.
Tam sim no peb yuav tsum npaj lwm PCB (GPS, txhawb zog thiab raspberry pi). Muab cov pins xav tau rau cov khoom no (saib daim duab).
Thaum kawg koj tuaj yeem txhuam txhua qhov ua ke. Ua tib zoo saib xyuas ntawm cov laug, cov roj teeb sib txuas yuav tsum tsis txhob sib kov.
Txhawm rau tiv thaiv lub cuab yeej muab nws tso rau hauv lub thawv ntoo lossis lub thawv. Nws tsis tsim nyog, nws nyob qhov twg koj siv nws.
Kauj ruam 10: Siv
Muab daim npav SD uas tau teeb tsa tso rau hauv xoom xoom thiab lub zog ntawm lub cuab yeej los ntawm kev hloov pauv. Txog thaum liab LED mus, raspberry pi tau npaj los sau cov ntaub ntawv GPS los ntawm GPS tus txais rov qab.
Cov liab LED ntawm GPS tus txais yuav yog zaum ntsais ib zaug ib pliag, qhov no txhais tau hais tias tus neeg txais rov qab yog tus neeg dag ntxias dag ntxias. Mus nraum zoov thiab tos qee qhov tsawg, qhov ntsais yuav hloov los ntawm ib pliag mus rau ib zaug txhua 15 vib nas this, qhov no txhais tau tias nws tau pom txaus satelites los xam cov haujlwm.
Txhawm rau pib sau cov kev tswj hwm nyem rau ntawm lub pob tom ntej ntawm ntsuab LED (pib ntawm daim duab)
Pom zoo:
GPS Cap Cov Ntaub Ntawv Logger: 7 Kauj Ruam (nrog Duab)
GPS Cap Cov Ntaub Ntawv Logger: Nov yog qhov haujlwm zoo rau hnub so, yog tias koj tab tom taug kev lossis caij tsheb kauj vab ntev, thiab xav tau GPS cov ntaub ntawv logger txhawm rau taug qab txhua qhov koj taug kev/caij koj tau coj … Thaum koj ua tiav kev tsim thiab rub tawm cov ntaub ntawv los ntawm GPS module ntawm tr
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Nest Thermostat History Logger Logger: 6 Cov Kauj Ruam (nrog Duab)
Nest Thermostat Keeb Kwm Cov Ntaub Ntawv Logger: Zes thermostat ntsuas qhov ntsuas kub, av noo thiab cua sov/siv AC thiab cov neeg siv tuaj yeem pom cov ntaub ntawv keeb kwm tsuas yog 10 hnub. Kuv xav sau cov ntaub ntawv keeb kwm (> 10 hnub) thiab tuaj hla google spreadheets tsab ntawv uas pings zes txhua lub sijhawm
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv
Ua Cov Ntaub Ntawv Logger Nrog Raspberry Pi: 3 Cov Kauj Ruam (nrog Duab)
Ua Tus Logger Cov Ntaub Ntawv Nrog Raspberry Pi: Cov ntaub ntawv logger yooj yim no siv lub ntsuas ntsuas ib txwm nrog lub LDR analog (Photoresistor) thiab khaws lawv hauv cov ntawv sau ntawm koj li Raspberry Pi. Cov ntaub ntawv logger no yuav ntsuas thiab sau lub teeb theem txhua 60 vib nas this, tso cai rau koj los tshuaj xyuas