Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Nruab Shunya OS ntawm Raspberry Pi 4
- Kauj ruam 2: Nruab Shunya Interfaces
- Kauj Ruam 3: Kev Sib Txuas Sensor
- Kauj Ruam 4: Piv Cai
Video: Interface ADXL335 Sensor ntawm Raspberry Pi 4B hauv 4 Kauj Ruam: 4 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Hauv Cov Lus Qhia no peb yuav cuam tshuam nrog ADXL335 (ntsuas lub ntsuas) ntsuas ntawm Raspberry Pi 4 nrog Shunya O/S
Khoom siv
- Raspberry Pi 4B (txhua yam sib txawv)
- Raspberry Pi 4B ua raws lub zog siv
- 8GB lossis loj dua daim npav micro SD
- Saib xyuas
- micro-HDMI Cable
- Nas
- Keyboard
- laptop lossis lwm lub khoos phis tawj los teeb tsa daim npav nco
- ADXL3355 Accelerometer sensor - Yuav
- PCF8591 ADC module - Yuav
- Cov qhob cij
- Txuas xov hlau
Kauj Ruam 1: Nruab Shunya OS ntawm Raspberry Pi 4
Koj yuav xav tau lub khoos phis tawj lossis khoos phis tawj nrog lub micro SD daim npav nyeem ntawv/hloov pauv kom thauj daim npav micro SD nrog Shunya OS.
- Rub tawm Shunya OS los ntawm kev tso tawm e site
- Shunya OS cov menyuam muaj kev qhia zoo ntawm Flashing Shunya OS ntawm Raspberry Pi 4.
- Ntxig daim npav micro SD rau hauv Raspberry Pi 4.
- Txuas tus nas & keyboard rau Raspberry Pi 4.
- Txuas Saib Xyuas rau Raspberry Pi 4 ntawm micro-HDMI
- Txuas lub xov tooj hluav taws xob thiab Lub Hwj Chim ntawm Raspberry Pi 4.
Raspberry Pi 4 yuav tsum khau raj nrog Shunya OS.
Kauj ruam 2: Nruab Shunya Interfaces
Shunya Interfaces yog GPIO lub tsev qiv ntawv rau txhua lub rooj txhawb nqa los ntawm Shunya OS.
Txhawm rau teeb tsa Shunya Interfaces peb yuav tsum txuas nws mus rau wifi nrog siv internet.
1. Txuas rau wifi siv qhov hais kom ua
$ nmtui
2. Txhim kho Shunya Interfaces yog ib qho yooj yim, tsuas yog khiav cov lus txib
$ sudo apt nruab shunya-cuam tshuam
Kauj Ruam 3: Kev Sib Txuas Sensor
ADXL335 yog qhov ntsuas sib piv, tab sis Raspberry Pi 4 yog cov cuab yeej siv digital. Yog li peb xav tau tus hloov pauv PCF8591 (ADC) uas hloov pauv txhua qhov txiaj ntsig zoo sib xws muab los ntawm ADXL335 rau cov txiaj ntsig digital nkag siab los ntawm Raspberry Pi 4.
Daim duab kab hluav taws xob tau muab rau hauv daim duab saum toj no.
- Txuas SDA & SCL pins ntawm PCF8591 rau tus pin 3 & tus pin 5 ntawm Raspberry Pi 4.
- Txuas VCC & GND ntawm PCF8591 rau tus pin 4 (5V) & tus pin 6 (GND) ntawm Raspberry Pi 4.
- Txuas VCC & GND ntawm ADXL335 rau VCC & GND ntawm PCF8591.
- Txuas Ain1 ntawm PCF8591 rau X ntawm ADXL335.
- Txuas Ain2 ntawm PCF8591 rau Y ntawm ADXL335.
- Txuas Ain3 ntawm PCF8591 rau Z ntawm ADXL335.
Kauj Ruam 4: Piv Cai
- Rub cov cai hauv qab no.
- Sau nws siv qhov hais kom ua
$ gcc -o adxl335 adxl335.c -lshunyaInterfaces
Khiav nws siv qhov hais kom ua
$ sudo./adxl335
Pom zoo:
Siv Kev Cia Siab Lub Hauv Paus txuas ntxiv txhawm rau Nrhiav Lub Tuam Tsev Tsis Ua Haujlwm Txoj Cai Ua Haujlwm Hauv Koj Tsev Neeg Tsob Ntoo ntawm Kev Tshawb Nrhiav Tsev Neeg: 11 Kauj Ruam
Siv Kev Cia Siab Lub Hauv Paus Txuas Ntxiv kom Nrhiav Lub Tuam Tsev Tsis Ua Haujlwm Ua Haujlwm Hauv Koj Tsev Neeg Tsob Ntoo ntawm Kev Tshawb Nrhiav Tsev Neeg: Lub hom phiaj ntawm cov lus qhia no yog los qhia seb yuav tshawb nrhiav koj tsev neeg tsob ntoo li cas hauv Tsev Neeg Nrhiav rau cov poj koob yawm txwv nrog kev ua haujlwm hauv lub tuam tsev tsis tiav siv Kev Cia Siab lub hauv siab txuas ntxiv. Siv Kev Cia Siab Lub Hauv Paus tuaj yeem ua rau koj qhov kev tshawb nrhiav tsis tiav
Kev Tswj Dej Hauv Dej Hauv Dej Hauv Dej: 10 Kauj Ruam (nrog Duab)
Underwater Remote Control Drone: Kuv txiav txim siab los tsim ROV no rau lub hom phiaj ntawm kev tshawb fawb thiab kev qhuas ntawm lub ntiaj teb hauv qab dej vim tias tsis muaj ntau tus nqi tsim txiaj hauv cov drones hauv qab. Txawm hais tias nws siv sijhawm ntau, tshawb fawb, thiab autodidacticism, nws yog qhov kev lom zem
Ntse Suab Nkauj hauv Chav Dej thiab Da Dej Nrog Raspberry Pi - Sib Koom Ua Ke Hauv Chav, Tswb, Khawm Tswj thiab Kev Siv Tsev Hauv Tsev: 7 Kauj Ruam
Ntse Suab Nkauj hauv chav pw thiab Da Dej Nrog Raspberry Pi - Sib Koom Ua Ke Hauv Chav, Tswb, Khawm Tswj thiab Kev Siv Tsev Hauv Tsev: Niaj hnub no peb xav muab ob qho piv txwv txog yuav ua li cas koj tuaj yeem siv Raspberry Pi nrog peb Max2Play software rau hauv tsev automation: hauv chav dej thiab chav pw . Ob txoj haujlwm zoo ib yam nyob hauv cov suab paj nruag siab ncaj los ntawm ntau qhov chaw tuaj yeem rub tawm los
DIY-Rov ua dua lub kiv cua hauv pem teb rau hauv Kev Teeb Duab Teeb Duab/txhua-hauv-ib Teeb: 11 Kauj Ruam
DIY-Rov ua dua lub kiv cua hauv pem teb rau hauv Kev Hloov Kho Lub Teeb/txhua-hauv-ib lub teeb: Yog li kuv nyuam qhuav nyuam qhuav ntxuav lub caij nplooj ntoo hlav thiab tuaj hla cov kiv cua hauv pem teb uas muaj nws lub cav hlawv tawm. Thiab kuv xav tau lub teeb rooj. 2+2 thiab kuv tau ua tswv yim me ntsis thiab tuaj nrog lub tswv yim los hloov lub kiv cua mus rau hauv 20inch dav lub teeb hloov kho. Nyeem rau s
Cov lus qhia ntawm Kev Ua Kom Zoo Mock-Up ntawm Track Slide Tsim rau Nqa/Txo Hauv Pem Hauv Ntej-Mounted Footrests ntawm Lub Hwj Huam Log: 9 Kauj Ruam (nrog Duab)
Cov lus qhia ntawm Kev Ua Kom Tiav Mock-Up ntawm Track Slide Tsim rau Nqa/Sab Qaum Nruab Nrab-Mounted Footrests ntawm Lub Hwj Huam Lub Rooj Zaum: Lub hauv paus tau teeb tsa lub tog zaum kom nqa tau hauv qab lub rooj kom zoo, thiab qis dua kom siv tau. Ib lub tswv yim rau kev ua haujlwm ywj pheej ntawm kev tuav cov footrest thiab kev xa tawm tsis suav nrog lub rooj zaum fais fab lag luam, thiab PWC cov neeg siv tau qhia txog qhov xav tau