Cov txheej txheem:
- Kauj Ruam 1: Pib Nrog Daim Npav SD Dawb, Rub Raspbian Duab, thiab Nruab Rau Hauv SD Card
- Kauj Ruam 2: Txuas Raspberry Pi rau TV/Saib, thiab Khiav Los Ntawm Kev Pib Pib
- Kauj Ruam 3: Yeem: Ua Haujlwm Pi Headless
- Kauj ruam 4: Pom zoo: Hloov kho OS
- Kauj Ruam 5: Xaiv tau: Teeb IP Chaw Nyob E-mailer
- Kauj Ruam 6: Xaiv tau - Teeb VNC
- Kauj Ruam 7: Nruab BCM2835 SPI Library
- Kauj Ruam 8: Tau ADXL362 SPI Piv txwv
- Kauj Ruam 9: Phyiscally Txuas ADXL362 Breakout rau Raspberry Pi GPIO
- Kauj ruam 10: Sau thiab khiav ADXL362_RaspPi
Video: Ua ntej* SPI ntawm Pi: Sib Tham Nrog SPI 3-axis Accelerometer Siv Raspberry Pi: 10 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Cov lus qhia ib kauj ruam ntawm yuav ua li cas teeb tsa Raspbian, thiab sib txuas lus nrog SPI cov cuab yeej siv bcm2835 SPI lub tsev qiv ntawv (TSIS tsoo me ntsis!)
Qhov no tseem yog qhov ua ntej tshaj plaws… Kuv xav tau ntxiv cov duab zoo dua ntawm kev sib txuas ntawm lub cev, thiab ua haujlwm dhau qee qhov kev coj txawv txawv.
Kauj Ruam 1: Pib Nrog Daim Npav SD Dawb, Rub Raspbian Duab, thiab Nruab Rau Hauv SD Card
Mus ntsib https://www.raspberrypi.org/downloads rau cov lus qhia yuav ua li cas rau nruab Raspbian
Kuv rub tawm: duab Raspbian, thiab siv Win32DiskImager los teeb tsa hauv SD daim ntawv Muaj cov ntaub ntawv ntxiv ntawm
Kauj Ruam 2: Txuas Raspberry Pi rau TV/Saib, thiab Khiav Los Ntawm Kev Pib Pib
(Tsis xav tau kev sib txuas is taws nem)
Teem sijhawm sijhawm pab SSH Hloov Kho Tom Qab, Ua Kom tiav. Terminal code: rov pib dua
Kauj Ruam 3: Yeem: Ua Haujlwm Pi Headless
Qhia tau zoo heevttttp: //elinux.org/RPi_Remote_Access Kuv siv Putty (Windows) lossis Terminal (Mac) los txuas nrog SSH
Kauj ruam 4: Pom zoo: Hloov kho OS
Terminal Code: sudo apt-tau hloov tshiab sudo apt-tau hloov tshiab
Kauj Ruam 5: Xaiv tau: Teeb IP Chaw Nyob E-mailer
Kuv tau teeb tsa kuv tus Pi rau e-mail kuv nws tus IP chaw nyob txhua lub sijhawm nws khau raj. Qhov no ua rau kuv lub neej yooj yim dua thaum kuv xav tau kev nkag mus deb siv SSH.
Qhia tau zoo heev
Kauj Ruam 6: Xaiv tau - Teeb VNC
Qhia tau zoo heevttttp: //elinux.org/RPi_VNC_Server Kuv tsis tau hla tag nrho cov lus qhia … tsuas yog cov theem hauv qab no: $ sudo apt -tau nruab tightvncserver $ tightvncserver $ vncserver: 1 -geometry 1200x800 -depth 24 Thiab, Kuv tau tsim a tsab ntawv kom kuv ntaus ntawv kom tsawg kawg.
Kauj Ruam 7: Nruab BCM2835 SPI Library
gist.github.com/3183536
Cov ntaub ntawv zoo (thiab piv txwv) ntawm https://www.open.com.au/mikem/bcm2835 Terminal code: cd; // wget https://www.open.com.au/mikem/bcm2835/bcm2835-1.5.tar.gz; // Kuv Pi tsis tuaj yeem txheeb xyuas qhov URL no - tsis tuaj yeem daws tus tswv tsev npe? wget https://67.192.60.197/mikem/bcm2835/bcm2835-1.5.tar.gz tar xvfz bcm2835-1.5.tar.gz; cd bcm2835-1.5;./configure; ua; sudo ua kom nruab
Kauj Ruam 8: Tau ADXL362 SPI Piv txwv
Nco tseg: Txoj cai tseem yog qhov tseem ceeb… xav tau txhawm rau txhim kho ADXL362_RaspPi los ntawm https://github.com/annem/ADXL362_RaspPi (Yuav ua li cas rau ntawm Pi, siv wget? Kuv muaj teeb meem nrog qhov no … "tsis tuaj yeem daws qhov chaw nyob ' github.com '")
Kauj Ruam 9: Phyiscally Txuas ADXL362 Breakout rau Raspberry Pi GPIO
Xav paub ntau ntxiv tuaj …
Xav paub ntau ntxiv txog ADXL362 (lub zog qis heev 3-axis accelerometer) ntawm analog.com/ADXL362 Txuas 3v3, GND, SPI0 MOSI, SPI0 MISO, SPI0 SCLK, SPI0 CE0 N ntawm Raspberry Pi rau VDDand VIO, GND (2), MOSI, MISO, SCLK, thiab CSB ntawm ADXL362 Breakout board.
Kauj ruam 10: Sau thiab khiav ADXL362_RaspPi
lub davhlau ya nyob twg code: gcc -o ADXL362_RaspPi -I../bcm2835-1.5/src../bcm2835.c ADXL_RaspPi.c sudo./ADXL362_RaspPi Uas kuv muab tso rau hauv tsab ntawv hu ua compileADXL362.
Pom zoo:
THIAB LUB NEEJ !! (Sib tham sib tham rooj sib tham): 4 Kauj Ruam
THIAB LUB NEEJ !! (sib tham sib tham txog Thruth Table): Nyob zoo cov phooj ywg, Kuv vam tias koj txhua tus nyob hauv koj lub tsev zoo thiab xav tsis thoob dab tsi ntawm cov ntaub ntawv uas muaj ?? Nkag siab cov rooj vag logic yog qhov tseem ceeb heev rau ob leeg
Yuav Ua Li Cas Ua Ntej Ua Ntej Ua Ntej: 8 Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Ua Ntej Ua Ntej Ua Ntej Tsis Txaus Siab: BACKGROUND INFO: Kuv ib txwm ntxub lub suab nrov nrov ntawm txhua tus nas txij li thaum kuv tsis nyiam thab lwm tus neeg thaum kuv tab tom nyem rau hauv cov vis dis aus lossis yooj yim saib lub vev xaib. Vim li no, Kuv txiav txim siab hloov kho kuv thawj qhov kev ua si nas kom zoo rau
Qhov Sib Txawv Ntawm Lub Rooj Sib Tham Lub Rooj Sib Tham Lub Hwj Huam!: 6 Kauj Ruam (nrog Duab)
Qhov Sib Txawv Ntawm Lub Rooj Sib Tham Bench Power Supply!: Koj puas tau tsim koj qhov haujlwm tshiab thiab tuav rov qab los ntawm qhov koj tsis muaj kev tswj hwm koj li peev txheej? Zoo, qhov no yog qhov haujlwm rau koj! Hnub no kuv yuav qhia koj yuav ua li cas thiaj tsim tau lub rooj zaum hauv lub rooj zaum ua haujlwm tau zoo rau qhov pheej yig heev! Kuv tau ua qhov no tag nrho
Cov Neeg Siv Yooj Yim Sib Tham Sib Tham rau Kev Qhia thiab Kev Ntsuam Xyuas: 11 Kauj Ruam
Cov Neeg Siv Yooj Yim Sib Tham Sib Tham rau Kev Qhia thiab Kev Ntsuam Xyuas: Txoj haujlwm no tau tsim los ua ib feem ntawm chav kawm hauv tsev kawm qib siab, lub hom phiaj yog ua kom muaj kev sib tham sib tham los qhia thiab ntsuas qee yam ncauj lus. Rau nws peb tau siv Kev Ua Haujlwm ntawm PC rau lub interface thiab Arduino NANO rau lub khawm arcade thiab LEDs, yog li
Yuav Ua Li Cas Siv IRC (Internet Sib Tham Sib Tham): 5 Kauj Ruam
Yuav Ua Li Cas Siv IRC (Sib Tham Sib Tham Hauv Is Taws Nem): [Kho] Qhov no yog Cov Lus Qhia uas yog lub hauv paus rau cov uas tseem tsis tau nkag siab txog Kev Sib Tham Hauv Is Taws Nem, lossis IRC. Txoj haujlwm no tsis yog npaj los npog tag nrho cov peev txheej ntawm IRC thiab txhua tus neeg siv khoom lub peev xwm, tab sis yog lub hom phiaj kom yeej