Cov txheej txheem:

Ua ntej* SPI ntawm Pi: Sib Tham Nrog SPI 3-axis Accelerometer Siv Raspberry Pi: 10 Kauj Ruam
Ua ntej* SPI ntawm Pi: Sib Tham Nrog SPI 3-axis Accelerometer Siv Raspberry Pi: 10 Kauj Ruam

Video: Ua ntej* SPI ntawm Pi: Sib Tham Nrog SPI 3-axis Accelerometer Siv Raspberry Pi: 10 Kauj Ruam

Video: Ua ntej* SPI ntawm Pi: Sib Tham Nrog SPI 3-axis Accelerometer Siv Raspberry Pi: 10 Kauj Ruam
Video: Адвокат Франческо Катания: смотрит одно из своих прямых выступлений Сцены из повседневной жизни от ‎ 2024, Kaum ib hlis
Anonim
* Ua ntej* SPI ntawm Pi: Sib Tham Nrog SPI 3-axis Accelerometer Siv Raspberry Pi
* Ua ntej* SPI ntawm Pi: Sib Tham Nrog SPI 3-axis Accelerometer Siv Raspberry Pi

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

Txuas Raspberry Pi mus rau TV/Saib, thiab Khiav Los Ntawm Kev Pib Pib
Txuas Raspberry Pi mus 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

Yeem: Ua Haujlwm Pi Headless
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

Yeem - Teeb VNC
Yeem - 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

Phyiscally Txuas ADXL362 Breakout rau Raspberry Pi GPIO
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

Sau thiab Khiav ADXL362_RaspPi
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: