Cov txheej txheem:

Kub, Txheeb Ze Vaum, Huab Cua Siab Logger Siv Raspberry Pi thiab TE Kev Sib Txuas MS8607-02BA01: 22 Cov Kauj Ruam (nrog Duab)
Kub, Txheeb Ze Vaum, Huab Cua Siab Logger Siv Raspberry Pi thiab TE Kev Sib Txuas MS8607-02BA01: 22 Cov Kauj Ruam (nrog Duab)

Video: Kub, Txheeb Ze Vaum, Huab Cua Siab Logger Siv Raspberry Pi thiab TE Kev Sib Txuas MS8607-02BA01: 22 Cov Kauj Ruam (nrog Duab)

Video: Kub, Txheeb Ze Vaum, Huab Cua Siab Logger Siv Raspberry Pi thiab TE Kev Sib Txuas MS8607-02BA01: 22 Cov Kauj Ruam (nrog Duab)
Video: Musicians talk about Buckethead 2024, Hlis ntuj nqeg
Anonim
Kub, Txheeb Ze Vaum, Huab Cua Siab Logger Siv Raspberry Pi thiab TE Kev Sib Txuas MS8607-02BA01
Kub, Txheeb Ze Vaum, Huab Cua Siab Logger Siv Raspberry Pi thiab TE Kev Sib Txuas MS8607-02BA01

Taw qhia:

Hauv qhov haujlwm no kuv yuav qhia koj yuav tsim teeb tsa li cas los ntawm kev nkag mus rau qhov ntsuas cua sov thiab huab cua siab. Txoj haujlwm no yog ua raws li Raspberry Pi 3 Model B thiab TE Kev Sib Txuas ib puag ncig sensor nti MS8607-02BA01, cov nti no yog qhov me me tiag tiag yog li kuv xav kom koj tau txais nws hauv daim ntawv txheeb xyuas, sim siv tes laug nws tsis pom zoo, Kuv tau txais nws qhov kev ntsuas board DPP901G000 ntawm Amazon rau $ 17. Qhov kev zov me nyuam uas ua txoj haujlwm no yog nyob ntawm github thiab tau sau ua sej 3.

Kuv yuav sim ntau npaum li kuv tuaj yeem muab tag nrho cov ntsiab lus tsis txaus ntseeg yog li leej twg nrog kev paub hauv computer yooj yim tuaj yeem ua tiav txoj haujlwm no.

Qhov chaw thiab Cov ntaub ntawv:

www.te.com/commerce/DocumentDelivery/DDECon…

www.te.com/commerce/DocumentDelivery/DDECon…

en.wikipedia.org/wiki/Raspberry_Pi

github.com/anirudh-ramesh/MS8607-02BA01/bl…

Qhov Chaw thiab Cov Cuab Yeej Xav Tau:

-Raspberry Pi 3 Qauv B thiab khoom siv ntxiv: rooj plaub, nas, keyboard, saib lossis TV, daim npav microSD thiab lwm yam.

-MS8607-02BA01 tshuaj xyuas lub Rooj Tswjhwm Saib, DPP901G000 lossis sib npaug, yuav xa mus rau nws hauv seem ntawm cov lus qhia no raws li Lub Rooj Tswjhwm Saib Sensor.

- Plaub lub xov tooj hluav taws xob txuas mus txuas rau Raspberry Pi mus rau lub ntsuas phoo sensor

-Computer teeb tsa Raspberry Pi, Kuv siv lub khoos phis tawj khiav Ubuntu, Windows PC yuav ua haujlwm nrog qee qhov kev hloov pauv rau cov lus qhia.

Kauj ruam 1: Teeb Kho Vajtse

Kho vajtse teeb
Kho vajtse teeb
Kho vajtse teeb
Kho vajtse teeb

-Kev txuas Raspberry Pi mus rau Sensor Board raws li tau piav qhia hauv lub rooj thiab daim duab saum toj no

Kauj ruam 2: Rub Raspbian

Download tau Raspbian
Download tau Raspbian

-Download Raspbian SD daim duab los ntawm

-Xaiv mus rau koj cov ntawv rub tawm thiab unzip Raspbian SD daim duab siv siv cov lus txib unzip.

Kauj Ruam 3: Txheeb Xyuas Micro SD Device

Txheeb xyuas Micro SD Device
Txheeb xyuas Micro SD Device

-Muab daim npav MicroSD tso rau hauv Micro SD daim npav nyeem ntawv/sau ntawv uas txuas nrog lub PC, -Kev txheeb xyuas lub npe micro SD daim npav ntaus ntawv hauv koj lub PC siv "sudo fdisk -l" hais kom ua raws li hauv qab no, ceeb toom tias SD daim npav ntaus ntawv tau txheeb xyuas los ntawm qhov loj me thiab lub npe khoom siv, hauv qhov xwm txheej tshwj xeeb no SD card ntaus ntawv lub npe yog "/dev /mmcblk0”, ntawm koj lub computer nws tuaj yeem sib txawv. Yog tias koj muaj lub khoos phis tawj Windows siv Win32 Disk Imager rau qib no.

Kauj Ruam 4: Luam theej duab Raspbian rau hauv MicroSd Card

Luam theej duab Raspbian rau hauv MicroSd Card
Luam theej duab Raspbian rau hauv MicroSd Card
Luam theej duab Raspbian rau hauv MicroSd Card
Luam theej duab Raspbian rau hauv MicroSd Card

-Burn Raspbian rau hauv daim npav MicroSD siv qhov hais kom ua:

dd yog = SDcard_image_file_name ntawm = SD_Card_Device_Name xwm txheej = kev vam meej.

Tos kom daim ntawv theej tiav, qhov no yuav siv ob peb feeb.

Kauj Ruam 5: Tuaj Caum Thawj Zaug

Ciaj Sia Rau Thawj Zaug
Ciaj Sia Rau Thawj Zaug

-Tshem tawm micro SD ntawm lub PC thiab tso rau hauv Raspberry, siv lub zog, Raspberry Pi yuav tsum tau khau raj.

- Ntawm Raspberry Pi nthuav tawm SD, los ntawm kev qhib kab hais kom ua dav hlau, tom qab ntawv ntaus ntawv "sudo raspi-config", xaiv Nthuav Tawm Cov Ntaub Ntawv kom ua tau zoo ntawm tag nrho qhov chaw muaj nyob hauv daim npav SD. Reboot thaum nug kom rov pib dua.

Kauj Ruam 6: Hloov Kho Cov Ntawv Teev Npe

Hloov Kho Pob Khoom Sau
Hloov Kho Pob Khoom Sau

-Txuas Raspberry Pi rau Wifi lossis txuas nws siv ethernet cable los ntawm koj lub tsev router.

-Ntawm kab hais kom ua hauv Raspberry Pi khiav "sudo apt-tau hloov tshiab" txhawm rau hloov kho pob khoom npe.

Kauj Ruam 7: Pab kom VNC, SSH thiab I2C

Pab kom VNC, SSH thiab I2C
Pab kom VNC, SSH thiab I2C

Ntawm Raspberry Pi Desktop cov ntawv qhia zaub mov tseem ceeb, nyem rau Preference ces xaiv Raspberry Pi Configuration utility. Hauv Interfaces tab, pab kom SSH, VNC, thiab I2C.

Kauj Ruam 8: Hloov Raspberry Pi Password

Hloov Raspberry Pi Password
Hloov Raspberry Pi Password

-Tam sim no yog lub sijhawm zoo los hloov Raspberry Pi lo lus zais.

Kauj Ruam 9: Nruab I2c-cov cuab yeej

Nruab I2c-cov cuab yeej
Nruab I2c-cov cuab yeej

Ntawm kab hais kom ua nruab I2C cov cuab yeej siv cov lus txib sudo apt-get install i2c-tools

Kauj ruam 10: Txheeb xyuas I2C Kev Sib Txuas Lus

Txheeb xyuas I2C Kev Sib Txuas Lus
Txheeb xyuas I2C Kev Sib Txuas Lus

- Txheeb xyuas tias Raspberry Pi tuaj yeem sib txuas lus nrog Sensor Board hla I2C siv qhov hais kom ua "i2cdetect -y 1", Lub Rooj Tswjhwm Saib Sensor yeej muaj ob lub I2C pab kiag li lawm, ntaus ntawv qhov chaw 0x76 yog rau ntsuas siab thiab ntsuas kub, ntaus ntawv chaw nyob 0x40 yog rau ntsuas cov txheeb ze txheeb ze. Vim tias pom ob qho tib si.

Kauj ruam 11: Txheeb xyuas Python Version

Txheeb xyuas Python Version
Txheeb xyuas Python Version

Txoj haujlwm uas peb yuav khiav los nyeem cov ntaub ntawv ntsuas xav tau yam tsawg kawg Python version 3.2 kom khiav, cov laus dua yuav tsis ua haujlwm zoo.

Linux siv lub cim txuas (saib cov cim sib txuas ntawm linux OS online kom nkag siab qhov kuv tab tom tham txog) txhawm rau taw qhia tus nab npawb txhais lus txhais lus twg uas yuav siv los khiav cov ntawv nab nab. Siv qhov hais kom ua "ls/usr/bin/python -l" kom pom cov lus taw qhia rau, hauv qhov xwm txheej tshwj xeeb no nws tau taw qhia rau nab nab 2.7 uas yuav tsis ua haujlwm rau peb.

Kauj Ruam 12: Txheeb Xyuas Muaj Python Versions

Txheeb Xyuas Muaj Python Versions
Txheeb Xyuas Muaj Python Versions

Siv qhov hais kom ua "ls/usr/bin/nab hab sej*" kom pom txhua qhov muaj cov nab npawb ntawm koj li Raspberry Pi.

Kauj Ruam 13: Hloov Kho Python Symbolic Link

Hloov kho Python Symbolic Link
Hloov kho Python Symbolic Link

Nws zoo nkaus li peb muaj version python3.5, cia peb txuas nws lub cim rau/usr/bin/python

Kauj Ruam 14: Rub tawm THP Logger Source Code

Rub tawm THP Logger Source Code
Rub tawm THP Logger Source Code

-Download THP Logger qhov chaws los ntawm Github

Kauj ruam 15: Unzip Source Code Zip File

Unzip Source Code Zip File
Unzip Source Code Zip File

-Unzip qhov chaws tus lej zip file.

Kauj ruam 16: Khiav lub THP Logger

Khiav lub THP Logger
Khiav lub THP Logger

-Kev siv kab hais kom ua davhlau ya nyob twg hloov cov npe ua haujlwm tam sim no siv "cd ~/Download/THP_Logger-master"

-Qhia THP Logger app siv qhov hais kom ua "nab hab sej main.py"

Kauj Ruam 17: Pib Ntsuas THP

Pib Ntsuas THP
Pib Ntsuas THP

- Pab kom txiav cav, xaiv lub sijhawm tsim nyog rau qhov koj xav tau, cia nws khiav.

Kauj Ruam 18: Tau Txais Cov Ntaub Ntawv SFTP

Tau Txais Cov Ntaub Ntawv Hla SFTP
Tau Txais Cov Ntaub Ntawv Hla SFTP

-Kuv tsis tau sim nws tawm tsam cov cuab yeej ntsuas ntsuas tab sis qhov ntsuas qhia tau zoo ib yam nrog kuv lub ntsuas cua sov. Kuv kuj pom qhov poob ntawm cov av noo thaum kuv qhib lub qhov rooj vim tias nws khov sab nraum thiab cov av noo sab nraud yog qhov tsawg dua hauv.

-Txhua cov ntaub ntawv hla hauv csv hom los ntawm Raspberry Pi rau koj lub PC hla SSH, siv koj qhov kev nyiam SFTP tus thov kev pabcuam, rau Windows koj tuaj yeem siv WinSCP, Kuv siv bareFTP rau kuv lub tshuab linux.

Kauj Ruam 19: Saib Cov Ntaub Ntawv

Saib ntawm Cov Ntaub Ntawv
Saib ntawm Cov Ntaub Ntawv

-Qhib cov ntaub ntawv csv uas tau siv Microsoft Excel lossis OpenOffice Calc, siv cov ntaub ntawv los tsim cov duab los saib cov kev hloov pauv ib puag ncig ib hnub lossis ib hnub.

Kauj Ruam 20: Ua Cov Ntaub Ntawv

Ua Cov Ntaub Ntawv
Ua Cov Ntaub Ntawv
Ua Cov Ntaub Ntawv
Ua Cov Ntaub Ntawv
Ua Cov Ntaub Ntawv
Ua Cov Ntaub Ntawv

Lub app tsis tsim ntau cov ntaub ntawv piv txwv li yog tias koj khiav lub app dhau 24 teev nrog kev ncua sijhawm ntawm 60 vib nas this, qhov loj ntawm cov ntaub ntawv cov ntaub ntawv yog li 50 KiB

Saum toj no yog kab ntawv kuv tsim nrog LibreOffice Calc program siv cov ntaub ntawv tsim tawm ntau dua 70000 vib nas this (19 teev), ib qho kev ntsuas ntsuas txhua 60 vib nas this.

Kauj Ruam 21: Chav Rau Kev Txhim Kho

Chav Rau Kev Txhim Kho
Chav Rau Kev Txhim Kho

Xav tias dawb los txhim kho ntawm txoj haujlwm no, ob peb lub tswv yim:

1-Tshaj tawm cov ntaub ntawv rau hauv internet server xws li

2-Muaj cov ntaub ntawv ua tiav thiab nthuav tawm los ntawm koj tus kheej lub web server tuav ntawm Raspberry Pi

3-Muaj qhov haujlwm tsis muaj lub taub hau thaum pib thiab tau txais cov ntaub ntawv tas mus li thiab ceeb toom koj yog tias muaj qee yam xwm txheej tau ntsib thiab lwm yam.

4-Txuas ntxiv kev ua haujlwm ntawm lub kaw lus los ntawm kev ntxiv cov ntsuas thiab tus ua haujlwm ntawm I2C npav, lossis tsheb npav SPI.

5-Txuag cov ntaub ntawv mus rau USB flash drive tsis txhob siv daim npav SD, muaj lub program npe cov ntaub ntawv cov ntaub ntawv raws hnub/sijhawm.

Pom zoo: