Cov txheej txheem:

PiLapse - Raspberry Pi Timelapse [V0.2]: 7 Cov Kauj Ruam (nrog Duab)
PiLapse - Raspberry Pi Timelapse [V0.2]: 7 Cov Kauj Ruam (nrog Duab)

Video: PiLapse - Raspberry Pi Timelapse [V0.2]: 7 Cov Kauj Ruam (nrog Duab)

Video: PiLapse - Raspberry Pi Timelapse [V0.2]: 7 Cov Kauj Ruam (nrog Duab)
Video: PiLapse 1 - Raspberry Pi Timelapse, attempt 1 2024, Kaum ib hlis
Anonim
PiLapse - Raspberry Pi Timelapse [V0.2]
PiLapse - Raspberry Pi Timelapse [V0.2]

Hloov koj li Raspberry Pi hauv lub tshuab Timelapse!

Daim ntawv qhia tag nrho muaj nyob ntawm no:

Hauv phau ntawv qhia no kuv siv:

  • RPi version 2 (tab sis kuv xav tias nws ua haujlwm ntawm txhua RPi version)
  • USB WIFI DONGLE
  • Hom davhlau ya nyob twg
  • Khawm hom

Kauj Ruam 1: Cov Kauj Ruam Preliminal

Cov kauj ruam ua ntej
Cov kauj ruam ua ntej

Koj tsuas xav tau pob no ntawm Raspbian Jessie:

sudo apt-tau nruab libav-cuab yeej

Ua ntej peb yuav tsum txuas RasPi Lub Koob Yees Duab kom raug (thawj daim duab).

Khiav cov lus txib no ntawm lub davhlau ya nyob twg:

vcgencmd get_camera

Txhawb nqa thiab Tshawb nrhiav yuav tsum yog 1, lossis tsab ntawv tsis ua haujlwm.

Yog Kev Txhawb Nqa yog 0, khiav cov lus txib no ntawm davhlau ya nyob twg sudo raspi-teeb tsa thiab qhib lub koob yees duab.

Yog Pom tias yog 0, lub koob yees duab tsis txuas nrog Raspi.

Kauj ruam 2: Kev Sib Txuas Internet

Kev Sib Txuas Internet
Kev Sib Txuas Internet
Kev Sib Txuas Internet
Kev Sib Txuas Internet
Kev Sib Txuas Internet
Kev Sib Txuas Internet
Kev Sib Txuas Internet
Kev Sib Txuas Internet

Koj tuaj yeem txiav txim siab yuav txuas koj li raspberry pi hauv internet li cas:

  1. Cable
  2. USB WIFI DONGLE

IP zoo li qub

Vim li cas kuv thiaj yuav tsum tau kho IP zoo li qub?

Txhua lub sijhawm koj txuas lub cuab yeej ntawm koj lub network, tus router muab nws tus IP tshiab.

Txij li koj xav tau txuas ntawm qee qhov RPi IP, rau kev pib lub sijhawm ncua sijhawm tshiab nyob deb, tam sim no koj yog tus IP raug.

Kuv nco qab koj li cas koj tuaj yeem txuas ntawm koj li RPi los ntawm SSH hais kom ua: ssh pi@IP_ADDRESS

Pib los ntawm kev kho cov ntaub ntawv dhcpcd.conf

sudo nano /etc/dhcpcd.conf

Yog tias koj siv Cable:

eth0 ua

zoo li qub ip_address = 192.168.0.static routers = 192.168.0.1 zoo li qub domain_name_servers = 192.168.0.1

Yog tias koj siv WiFi Dongle:

wb wl0

zoo li qub ip_address = 192.168.0.static routers = 192.168.0.1 zoo li qub domain_name_servers = 192.168.0.1

Tam sim no siv "sudo raspi-teeb tsa" txhawm rau txuas WiFi Dongle ntawm koj li WiFi txuas. (3 ° thiab 4 ° duab)

Tam sim no txhua lub sijhawm koj yuav txuas lossis rov pib dua RPi, RPi yuav txuas ntawm tib tus IP chaw nyob: ssh [email protected]

Kauj ruam 3: Nruab & Khiav

Nruab & Khiav
Nruab & Khiav

Rub tawm tsab ntawv sau los ntawm GitHub lossis khiav cov lus txib no:

git clonehttps://github.com/DaveCalaway/PiLapseInstall

Lub nplaub tshev "PiLapse" YUAV TSUM nyob ntawm "/home/pi/" thiab koj tuaj yeem teeb tsa tsab ntawv los ntawm kev hais kom ua:

python3 Install.py

Tsab ntawv yuav pib muaj kev ywj pheej txhua lub sijhawm RPi khau raj.

Kauj Ruam 4: Hom Kev Ua Haujlwm: Hom Terminal

Hom Kev Ua Haujlwm: Hom Terminal
Hom Kev Ua Haujlwm: Hom Terminal

Nws yog lub sijhawm los nkag siab li cas Tsab Ntawv tau txais cov ntaub ntawv rau lub sijhawm ncua sijhawm.

Nws muaj txiaj ntsig zoo siv nrog SSH los ntawm lub khoos phis tawj deb.

Hauv PiLapse lub nplaub tshev, khiav:

python3 PiLapse_terminal.py

thiab ua raws li phau ntawv qhia ntawm tus saib.

Thaum tsab ntawv yuav ua tiav kom ntes cov duab, yuav tsim lub sijhawm ua yeeb yaj kiab video.

Txhua yam duab thiab lub sijhawm ncua sijhawm nyob hauv daim nplaub tshev hu nrog lub npe tso rau thaum lub sijhawm "PiLapse_terminal.py" ua tiav.

Kauj Ruam 5: Hom Ua Haujlwm: Khawm Hom

Hom Kev Ua Haujlwm: Khawm Hom
Hom Kev Ua Haujlwm: Khawm Hom
Hom Kev Ua Haujlwm: Khawm Hom
Hom Kev Ua Haujlwm: Khawm Hom

Daemon version pab koj tswj TimeLapse nrog khawm sab nraud.

Daemon khiav tsis tu ncua.

Kev txhaj tshuaj Ib leeg los ntawm nias lub pob ib zaug.

Sijhawm Lapse

Qhib tau los tuav lub pob rau 3 lossis ntau dua vib nas this.

Nws siv 1 daim duab txhua 10 thib ob los ntawm lub neej ntawd. Nias lub pob dua kom xaus lub sijhawm lapse.

Koj tuaj yeem hloov lub sijhawm tsis raug no los ntawm kev qhib PiLapse.py cov ntaub ntawv thiab hloov kho VARIABLES -> freq_button.

Nws tsim cov ntawv tais ceev tseg hu ua "xyoo-hli-hnub sijhawm".

Yog tias koj xav siv RGB coj, xyuas seb nws puas yog Anode lossis Cathode ntau!

Yog tias nws yog Anode ib txwm muaj, cov cai zoo, tab sis yog tias koj muaj Cathode ntau, qhib PiLapse.py cov ntaub ntawv thiab hloov kho Anode = 0 hauv VARIABLES.

Kauj ruam 6: DropBox Upload

Rub tawm DropBox
Rub tawm DropBox

Koj tuaj yeem tso koj cov duab thiab ncua sijhawm ncaj qha rau DropBox. Khiav tus comand no tsuas yog thawj zaug:

cd/tsev/pi/PiLapse/

curl "https://raw.githubusercontent.com/andreafabrizi/Dropbox-Uploader/master/dropbox_uploader.sh" -o dropbox_uploader.sh

chmod +x dropbox_uploader.sh

Tam sim no khiav:

./dropbox_uploader.sh

thiab ua raws li phau ntawv qhia.

Koj tuaj yeem hloov kho qhov sib txawv piv rau DropBox Upload los ntawm phau ntawv qhia no:

Kauj Ruam 7: Raspberry Pi Lub Koob Yees Duab Stand

Raspberry Pi Lub Koob Yees Duab Stand
Raspberry Pi Lub Koob Yees Duab Stand

Rau kuv qhov haujlwm kuv xav tau sawv ntsug rau Lub Koob Yees Duab Raspberry.

Txij li thaum kuv xav tawm tag nrho txoj haujlwm qhib, kuv tau saib rau qhov qhib qhov 3D luam tawm txoj haujlwm.

Hauv kuv lub tswv yim qhov no yog kev daws teeb meem zoo rau qhov pib:

Pom zoo: