Cov txheej txheem:

Zaj yeeb yaj kiab tsis zoo saib thiab hloov pauv: 8 Kauj Ruam (nrog Duab)
Zaj yeeb yaj kiab tsis zoo saib thiab hloov pauv: 8 Kauj Ruam (nrog Duab)

Video: Zaj yeeb yaj kiab tsis zoo saib thiab hloov pauv: 8 Kauj Ruam (nrog Duab)

Video: Zaj yeeb yaj kiab tsis zoo saib thiab hloov pauv: 8 Kauj Ruam (nrog Duab)
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Kaum ib hlis
Anonim
Zaj yeeb yaj kiab tsis zoo saib thiab hloov pauv
Zaj yeeb yaj kiab tsis zoo saib thiab hloov pauv
Zaj yeeb yaj kiab tsis zoo saib thiab hloov pauv
Zaj yeeb yaj kiab tsis zoo saib thiab hloov pauv
Zaj yeeb yaj kiab tsis zoo saib thiab hloov pauv
Zaj yeeb yaj kiab tsis zoo saib thiab hloov pauv

Kuv pom qhov xav tau tam sim kom tuaj yeem pom sai thiab kaw cov yeeb yaj kiab qub tsis zoo. Kuv muaj ntau pua txhawm rau txheeb xyuas…

Kuv lees paub tias muaj ntau yam apps rau kuv lub xov tooj ntse tab sis kuv tsis tuaj yeem tau txais cov txiaj ntsig txaus siab yog li qhov no yog qhov kuv tuaj nrog …

Kuv xav kom tuaj yeem pom lawv hauv lub sijhawm tiag tiag raws li cov duab tiag. Kuv tuaj yeem txheeb xyuas tus kheej los ntawm qhov tsis zoo thiab sau tsuas yog cov uas kuv xav tau.

Kuv tau ua lub thawv nyoos rau 3D luam ntawv rau lub tsev hluav taws xob.

Kuv kuj siv kuv lub TV LCD los saib cov duab

Khoom siv

30mm arcade nyees khawm

Raspberry PI 3B tus nqi zoo dua li Amazon (thaum sau ntawv)

RPi Lub Koob Yees Duab

Dawb LEDs

Connector - Kuv siv qhov kuv muaj. Muaj cov kev xaiv zoo dua

Tus pin txuas

Screen kuv siv rau kev sim

#4 ntswj

2-56 ntsia hlau

Dej Ntshiab Acrylic Adhesive

Kauj Ruam 1: Lub Koob Yees Duab Adapter

Lub Koob Yees Duab Adapter
Lub Koob Yees Duab Adapter
Lub Koob Yees Duab Adapter
Lub Koob Yees Duab Adapter
Lub Koob Yees Duab Adapter
Lub Koob Yees Duab Adapter

Kuv tau xaiv los tsim lub koob yees duab txuas nrog uas ua haujlwm nrog Raspberry Pi lub koob yees duab module kom cais tawm txhua qhov tsis zoo rau saib sai.

Kuv pib los ntawm kev ntsuas ntau yam ntawm cov yeeb yaj kiab tsis zoo nrog rau qhov kwv yees focal ntev.

Tom qab ntawd kuv ua tus qauv yooj yim uas yuav tsum luam tawm los ntawm Cov yas dub. Lub focal ntev kuv siv yog 44mm.

Qhov ntsuas tseem ceeb yog qhov loj me ntawm qhov tsis zoo thiab qhov tso rau lub koob yees duab.

Lub koob yees duab Pi tau teeb tsa rau ntawm lub rooj tsav xwm hauv Circuit Court nrog ua npuas dej. Tsis zoo tagnrho. Kuv yuav tsum tau ua qee qhov shims los ntawm daim npav npaj los kho qhov no. Cov duab tsis zoo ib lub duab plaub lwm yam.

Kuv siv ABS uas thaum luam tawm ntawm kuv lub tshuab muaj lub tiaj tiaj mus rau ib nrab tiaj tiaj uas yuav txo qhov kev xav uas nyeg tuaj yeem cuam tshuam tsis zoo rau kev luam ntawv zoo.

Kauj Ruam 2: Teeb Vaj Huam Sib Luag

Lub Vaj Huam Sib Luag Teeb
Lub Vaj Huam Sib Luag Teeb
Lub Vaj Huam Sib Luag Teeb
Lub Vaj Huam Sib Luag Teeb
Lub Vaj Huam Sib Luag Teeb
Lub Vaj Huam Sib Luag Teeb
Lub Vaj Huam Sib Luag Teeb
Lub Vaj Huam Sib Luag Teeb

Kuv tau sim ua lub vaj huam sib luag ntawm cov ntawv luam tawm tab sis qhov no ua tau tsis zoo

Tom qab ntawd kuv siv 6mm daim Lexan nrog LEDs txuas rau ntawm ntug kom ua lub teeb pom kev zoo.

Lub vaj huam sib luag teeb yog qhov tseem ceeb rau kev yees duab zoo.

Nws yuav tsum muaj teeb pom kev zoo yam tsis muaj qhov kub.

TSEEM CEEB: Qhov ua tsis tiav ntawm Lexan yuav cuam tshuam thiab pom lub teeb. Cov khawb los ntawm cov xuab zeb sib tsoo yog qhov zoo li ua tau rau qhov ci txawm tias.

Lub vaj huam sib luag yog qhov me me kom haum rau hauv qab ntawm qhov pom tsis zoo, 50mm ib sab. Mounting qhov yog cim rau kev nyab xeeb haum rau hauv qab ntawm tus saib, 3.5mm los ntawm cov ntug. Lub qhov yog drilled nrog cov kauj ruam me ntsis los tiv thaiv cov yas tawg.

Cov qhov yog qhov loj me rau #4 cov ntsia hlau

Nws yuav tsum muaj sab kom deb ntawm cov zaj duab xis khov. Qhov tsis zoo nyob rau saum npoo yuav cuam tshuam lub teeb kom tsim tau lub teeb pom kev zoo ib yam.

Kuv siv cov lej ntau ntxiv ntawm cov ntawv xuab zeb rau ntawm qhov du kom tau txais qhov txias. Nws yog ib qho tseem ceeb o tsis muaj khawb ntawm cov ntoo hauv qhov chaw zoo li qhov no yuav qhia tias yog khawb lossis cim rau ntawm daim duab xav tau.

Kuv tau maj mam dhau los ntawm 150 cov pob zeb mus rau 800 pob zeb.

Kuv tsis muaj lub kaus mom sab saum toj LEDs yog li kuv tau ua kuv tus kheej los ntawm kov lub dome saum npoo mus rau txoj siv tawv. nws yog ib qho tseem ceeb kom tsis txhob nthuav tawm sab hauv, Kuv tso tsawg kawg 1 hli ntawm acrylic npog sab saum toj.

Cov no tau sib npaug ntawm ntug ntawm Lexan thiab ib qho dej ntawm nyias cov kua nplaum acrylic tau siv los ua raws cov ntu ua ke. Cov nyiaj tau los ncaj ncees tam sim thiab cov nplaum ua rau qhov ua tsis tiav kom lub LED zoo li yog ib feem ntawm Lexan.

Kuv siv 6 ib sab.

Kuv soldered lawv hauv 2 kab sib chaws ntawm 6 txog rau 100 Ohm tam sim no txwv kev tawm tsam ntawm qhov zoo ces qhov no muaj xaim mus rau qhov txuas uas txuas rau Pin2 (+5V) ntawm GPIO nthuav dav ntawm Raspberry Pi board

Qhov tsis zoo muaj xaim uas mus ncaj qha rau hauv av ntawm Pin6 ntawm GPIO kev nthuav dav.

Kauj Ruam 3: Cov Khawm Xaiv

Xaiv khawm
Xaiv khawm
Xaiv khawm
Xaiv khawm
Xaiv khawm
Xaiv khawm
Xaiv khawm
Xaiv khawm

Tsuas muaj 2 txoj haujlwm xav tau los ntawm lub cuab yeej no.

Thawj yog tso cai rau tus neeg teb xov tooj saib thiab sau cov duab.

Qhov thib ob yog txoj hauv kev kom tawm ntawm txoj haujlwm thaum ua tiav.

Kuv xaiv siv lub pob ntsuab rau sau thiab khawm liab rau kev tawm mus.

Cov tswv yim zoo Kuv tau xaiv siv GPIO 23 thiab 24. Qhov no yog xaim ntawm lub taub hau taub hau 14, 16, 18, thiab 20. Cov xov hlau tau coded rau tus tes hloov qhov.

Kuv muaj cov pawg ntawm lub pob khawm tshuav los ntawm cov neeg siv khoom tsim yog li kuv siv ib qho los ua qhov ntsuas ntsuas.

Kuv luam cov ntaub ntawv tsis raug uas tsis muaj kev txiav tawm rau lub koob yees duab yog li kuv yuav tsum ua kuv tus kheej. Kuv tau suav nrog cov ntaub ntawv tsim nyog hauv cov theem hauv qab no.

Kauj Ruam 4: Cov Ntaub Ntawv Tiv Thaiv

Case Tiv Thaiv
Case Tiv Thaiv
Case Tiv Thaiv
Case Tiv Thaiv
Case Tiv Thaiv
Case Tiv Thaiv
Case Tiv Thaiv
Case Tiv Thaiv

Kuv ua qauv no rau kev ua haujlwm dhau daim ntawv. Cov kab ntawv yooj yim thiab luam tawm tau yooj yim ntawm cov tshuab feem ntau.

Cov ntaub ntawv tau luam tawm nrog sab hauv sab hauv tab sis nws tseem muaj kev xav zoo. Lub tuab muab kev ruaj ntseg thiab qhov loj yog siv tau yooj yim.

Qhov zoo tshaj plaws kuv yuav tau teeb tsa lub kaum sab xis saib kab rov tav, Kuv muaj cov cuab yeej txwv uas tiv thaiv qhov no.

Kauj Ruam 5: Txoj Cai Yooj Yim rau Xeem

Txoj Cai Yooj Yim rau Xeem
Txoj Cai Yooj Yim rau Xeem
Txoj Cai Yooj Yim rau Xeem
Txoj Cai Yooj Yim rau Xeem
Txoj Cai Yooj Yim rau Xeem
Txoj Cai Yooj Yim rau Xeem

Kuv ua piv txwv txoj cai los ntawm RaspberryPi.org kom tau txais txoj haujlwm no.

"Los ntawm lub neej ntawd, kev daws teeb meem duab tau teeb tsa rau qhov kev daws teeb meem ntawm koj lub saib. Qhov siab tshaj plaws yog 2592 × 1944 rau cov duab tseem"

Qhov no tau siv los nrhiav qhov ntev focal zoo ntawm lub koob yees duab. Kuv siv lub qhov ntswg los kho lub lens ntawm tus qauv. Lub lens loj yuav zoo tagnrho tab sis kuv tsis tuaj yeem nqa ib lub sijhawm.

Sab saum toj ntawm lub tsev tsom xam yog qhov loj me rau Raspberry Pi V2 lub koob yees duab. nws tau tuav nrog 4 - 2/56 cov ntsia hlau.

Cov cai hauv qab no yog qhov kuv siv rau kev sim…

los ntawm picamera ntshuam PiCamera los ntawm lub sijhawm ntshuam pw

lub koob yees duab = PiCamera ()

camera.start_preview ()

camera.awb_mode = 'pib'

camera.image_effect = 'tsis zoo'

tsaug zog (150)

camera.capture ('/tsev/pi/Desktop/negative.jpg')

camera.stop_preview ()

Kauj Ruam 6: Txoj Cai Txoj Cai

Txoj Cai Txoj Cai
Txoj Cai Txoj Cai
Txoj Cai Txoj Cai
Txoj Cai Txoj Cai
Txoj Cai Txoj Cai
Txoj Cai Txoj Cai

Ua ntej qhib lub davhlau ya nyob twg qhov rai thiab ua cov npe tshiab, ntaus "mkdir hloov pauv"

Qhib tus nab nab IDE

Sau cov cai hauv qab no:

los ntawm picamera

ntshuam PiCamera los ntawm lub sijhawm ntshuam pw

los ntawm gpiozero ntshuam khawm

khawm = Khawm (23)

khawm 1 = Khawm (24)

lub koob yees duab = PiCamera ()

camera.awb_mode = 'pib'

camera.image_effect = 'tsis zoo'

camera.start_preview ()

duab = 1

thaum Muaj Tseeb:

sim:

yog tias button1.is_pressed:

camera.stop_preview ()

so

yog tias button.is_pressed:

camera.capture ('/tsev/pi/hloov pauv/Hloov % 03d.jpg' % duab)

duab += 1

tshwj tsis yog

Keyboard cuam tshuam:

camera.stop_preview ()

so

Kauj ruam 7:

Duab
Duab
Duab
Duab
Duab
Duab

Khiav cov cai hauv IDE

Lub pob ntsuab yuav coj tus duab tseem tsis zoo thiab khaws cia rau hauv lub cim xeeb.

Cov duab tau txais kev cawmdim hauv phau ntawv hloov pauv.

Kuv txav lawv mus rau USB tsav tom qab ntawd mus rau kuv lub khoos phis tawj rau kev ua hauv photoshop.

Lub pob liab liab tawm ntawm txoj haujlwm. Cov khoom siv keyboard tseem yuav ua nws.

Kauj Ruam 8: Kho qhov program

Kuv tau hloov kho qhov program kom txuag tau cov duab zoo dua

los ntawm picamera

ntshuam PiCamera los ntawm lub sijhawm ntshuam pw los ntawm gpiozero

ntshuam khawm ntshuam hnub tim

lub sij hawm ntshuam

#date code rau txuag cov duab hnub = datetime.datetime.now (). strftime ("%d_%H_%M_%S")

# ntsuab khawm

khawm = Khawm (23)

# khawm liab

khawm 1 = Khawm (24)

lub koob yees duab = PiCamera ()

# lub koob yees duab hloov kho thiab saib ntawm tus saib

camera.resolution = (2592, 1944)

camera.awb_mode = 'pib'

camera.image_effect = 'tsis zoo'

# tso saib duab los saib xyuas

camera.start_preview ()

# duab txuag nce ntxiv

duab = 1

thaum Muaj Tseeb:

sim:

# khawm tawm liab

yog tias button1.is_pressed:

#kaw lub koob yees duab

camera.stop_preview ()

so

# ntsuab khawm ntes

yog tias button.is_pressed:

# tseg qhov chaw duab thiab ua qauv

camera.capture ('/tsev/pi/hloov pauv/hloov dua siab tshiab' + hnub tim + ' % 03d.jpg' % duab)

# duab txuag nce ntxiv

duab += 1

# keyboard program tawm

tshwj tsis yog KeyboardInterrupt:

#kaw lub koob yees duab

camera.stop_preview ()

so

Raspberry Pi Kev Sib Tw 2020
Raspberry Pi Kev Sib Tw 2020
Raspberry Pi Kev Sib Tw 2020
Raspberry Pi Kev Sib Tw 2020

Khiav Tawm Hauv Kev Sib Tw Raspberry Pi 2020

Pom zoo: