Cov txheej txheem:

Raspberry Pi Zombie Carnival Costume: 6 Kauj Ruam
Raspberry Pi Zombie Carnival Costume: 6 Kauj Ruam

Video: Raspberry Pi Zombie Carnival Costume: 6 Kauj Ruam

Video: Raspberry Pi Zombie Carnival Costume: 6 Kauj Ruam
Video: Bonnie and Circus Baby dancing to SugarCrash! (Bemax Remix) FULL [no copyright music] 2024, Kaum ib hlis
Anonim
Raspberry Pi Zombie Carnival Costume
Raspberry Pi Zombie Carnival Costume
Raspberry Pi Zombie Carnival Costume
Raspberry Pi Zombie Carnival Costume

Koj puas tau hnov zoo li koj muaj npauj npaim hauv koj lub plab? Hnub kawg carnival kuv xav li ntawd….

Zoo li Kev Taug Kev Tuag tuag, Kuv xav ua qhov kev cai sib npaug rau cov koob.

Kuv tau taug kev ncig lub nroog, sim nrhiav tsis pom zombie. Dheev, kuv pom Rick, kuv pib khiav mus rau nws tab sis Rick tua kuv ntawm lub plab … Nws xav tias kuv yog zombie.. thiab hmoov tsis zoo, kuv yuav dhau los ua ib tus.

Yog tias koj xav dhau los ua zombie, saib kuv cov kauj ruam los ua qhov raug mob tiag tiag uas tib neeg tuaj yeem pom dhau los ntawm koj.

Khoom siv

Ntawm no, koj tuaj yeem pom txhua yam khoom tsim nyog los ua koj tus kheej cov khaub ncaws ntawm lub plab. Koj yuav ua rau muaj kev tshoov siab rau koj cov phooj ywg !!

Cov khoom xyaw

Cov khoom siv hluav taws xob

  • HDMI cable:
  • Rapberry Pi qauv B+:
  • Pi lub koob yees duab:
  • 7 "touchscreen:
  • 5v cov ntaub ntawv tswj hwm:
  • Polymer lithium ion roj teeb:

Ua

  • Látex:
  • Ua:

Cheebtsam ntxiv

  • GoPro Chest Mount Harness:
  • Bison phom:

KEV KAWM NTAWV

Koj tsis xav tau kev ua haujlwm siab, tsim lossis txuj ci hluav taws xob. Koj tsuas yog yuav tsum ua raws cov theem no thiab muaj lub siab ntev thiab muaj tswv yim los ua qhov txhab nyob ib ncig ntawm lub vijtsam.

Kauj ruam 1: Taw qhia

Taw qhia
Taw qhia
Taw qhia
Taw qhia

Ntawm no, koj tuaj yeem pom txhua yam khoom tsim nyog los ua koj tus kheej cov khaub ncaws ntawm lub plab. Koj yuav ua rau muaj kev txaus siab rau koj cov phooj ywg !!

Kauj ruam 2: Kho vajtse

Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse

Hais txog kho vajtse, peb yuav xav tau 2 lub cuab yeej:

Lub vijtsam pem hauv ntej uas peb ua txhua yam uas lub koob yees duab kaw. Cov zaub no muaj kev tswj hwm qhov uas peb tuaj yeem txuas HDMI cable ncaj qha. Raspberry Pi tau muab tso rau tom qab ntawm T-shirt thiab lub koob yees duab tau muab tso rau saum toj. Txhawm rau muab 2 tus qauv, peb yuav siv lub roj teeb lithium, uas yuav ua kom lub zog siv zog los ntawm kev hloov hluav taws xob mus rau 5 volts.

Kauj ruam 3: Software

Software
Software
Software
Software

Txoj haujlwm yog yooj yim heev, thiab koj tuaj yeem tau txais nws los ntawm cov piv txwv uas koj tuaj yeem pom hauv lub vev xaib:

picamera.readthedocs.org/en/release-1.8/ind…

Ntawm no, koj muaj yuav ua li cas siv lub koob yees duab siv nab hab sej

Ua ntej, koj yuav tsum teeb tsa lub tsev qiv ntawv:

$ sudo aptget nruab pythonpicamera

*Yog tias koj muaj raspberry hloov tshiab, koj tuaj yeem dhia cov kauj ruam no, tab sis tsuas yog thaum..

Qhov kev zov me nyuam yog:

lub sij hawm ntshuam

ntshuam picamera

nrog picamera. PiCamera () raws li lub koob yees duab:

camera.resolution = (1920, 1080)

camera.hflip = Tseeb

camera.vflip = Tseeb

sim:

tshwj tsis yog KeyboardInterrupt:

thaum Muaj Tseeb:

camera.start_preview ()

sijhawm.sleep (100)

camera.stop_preview ()

dhau

Cov lus txib 'camera.hflip' thiab 'camera.vflip' yog tig lub koob yees duab, nyob ntawm koj tso nws, cov lus txib no yuav tsis tsim nyog. Peb yuav tsum sau qhov hais kom ua 'time.sleep' thiab 'camera.stop_preview' vim tias lub koob yees duab zoo li tsoo tsis tau nws.

Txhawm rau tsim tsab ntawv los ntawm lub davhlau ya nyob twg koj yuav tsum nyob ntawm pi nplaub tshev (kom nyob ntawd, koj yuav tsum siv cov lus txib cd). Peb siv cov lus txib sudo nano camera.py, peb sau qhov program, txuag nws nrog Ctrl+X thiab lees txais nws.

Txhawm rau khau raj kom pib, peb yuav tsum tsim cov ntaub ntawv autorun, para ello creamos una carpeta y nos metemos en ella con:

mkdir/cov

cd./ib

Peb tsim cov ntaub ntawv sudo nano script_auto_run thiab sau:

#!/bin/tsoo

# Tsab ntawv los pib peb daim ntawv thov

ncha "Ua tsab ntawv autorun …"

sudo nab hab sej /home/pi/camera.py &

Peb khaws cov ntawv thiab ua kom tiav nrog:

sudo chmod 755 script_auto_run

Thaum nws ua tiav, koj yuav tsum sau:

$ cd/etc/xdg/lxsession/LXDE

$ sudo nano autostart pib

Nqes mus txog kab kawg thiab sau:

Thiab qhov ntawd yog txhua tus neeg !!;)

Kauj ruam 4: Ua

Ua
Ua
Ua
Ua
Ua
Ua

Peb tuaj yeem siv cov tshuaj pleev rau ntawm daim ntawv tso rau ib puag ncig ntawm lub vijtsam ua piv txwv tias yog rab phom phom. Thaum qhuav tas, peb yuav tsum siv cov xim pleev xim los ua kom tag nrho thaj chaw. Tom qab, koj yuav tsum siv xim liab thiab dub los kho lub qhov txhab sab hauv.

Peb tseem yuav siv lub tsho T-shirt dawb. Peb txiav 2 qhov, ib qho loj dua pem hauv ntej ntawm T-shirt (me me dua lub vijtsam) thiab lwm qhov tom qab tso lub koob yees duab. Tom qab ntawd, koj tuaj yeem pleev xim lub T-shirt nrog xim liab zoo li koj tab tom yuav los ntshav. Txog qhov kov zaum kawg, peb yuav siv rab phom ua si.

Kauj Ruam 5: Rooj Sib Tham Kawg

Los Ua Ke Kawg
Los Ua Ke Kawg
Los Ua Ke Kawg
Los Ua Ke Kawg
Los Ua Ke Kawg
Los Ua Ke Kawg

Peb yuav tau siv GoPro hlua los tuav lub vijtsam pem hauv ntej thiab lub koob yees duab tom qab txuas nrog rau raspberry Pi.

Peb tseem yuav siv HDMI cable txuas cov duab rau ob qho khoom siv thiab txuas lub zog xa hluav taws xob mus rau ob qho qauv.

Kauj Ruam 6: Duab Duab

Duab Duab
Duab Duab
Duab Duab
Duab Duab
Duab Duab
Duab Duab
Duab Duab
Duab Duab

Ntawm no koj tuaj yeem pom qee cov duab ntxiv.

Thaum kawg, koj tsuas yog yuav tsum teeb tsa tag nrho cov kab ke. Koj yuav tsum tso lub tsho rau saum lub vijtsam thiab siv qee cov ntshav ntawm qhov txhab.

Kuv vam tias koj nyiam kuv cov khaub ncaws thiab koj yuav yog qhov zoo tshaj plaws ntawm kev tsaus ntuj hauv Xus!

Pom zoo: