Cov txheej txheem:

Digital Wall Calendar thiab Chaw Qhia Hauv Tsev: 24 Kauj Ruam (nrog Duab)
Digital Wall Calendar thiab Chaw Qhia Hauv Tsev: 24 Kauj Ruam (nrog Duab)

Video: Digital Wall Calendar thiab Chaw Qhia Hauv Tsev: 24 Kauj Ruam (nrog Duab)

Video: Digital Wall Calendar thiab Chaw Qhia Hauv Tsev: 24 Kauj Ruam (nrog Duab)
Video: Niam tais Npab Ntxhais tuag ua Dab 1/23/2020 2024, Hlis ntuj nqeg
Anonim
Digital Wall Calendar thiab Chaw Qhia Hauv Tsev
Digital Wall Calendar thiab Chaw Qhia Hauv Tsev
Digital Wall Calendar thiab Chaw Qhia Hauv Tsev
Digital Wall Calendar thiab Chaw Qhia Hauv Tsev
Digital Wall Calendar thiab Chaw Qhia Hauv Tsev
Digital Wall Calendar thiab Chaw Qhia Hauv Tsev

Hauv Cov Lus Qhia no Kuv yuav tig lub TV qub hauv TV rau hauv ntoo ntoo thav duab digital Phab Ntsa Mounted Calendar thiab Lub Tsev Qhia Ntawv Hauv Tsev siv los ntawm Raspberry Pi.

Lub hom phiaj yog kom muaj kev nkag tau mus rau cov ntaub ntawv cuam tshuam rau txhua tus tswv cuab ntawm tsev neeg, hloov daim ntawv phab ntsa daim ntawv zoo li qub thiab muab cov ntaub ntawv muaj txiaj ntsig zoo dua lub sijhawm tam sim ntawv daim ntawv tuaj yeem ua tau. Cov yam ntxwv nws suav nrog yog:

  • Ib daim ntawv qhia txhua hli ua ke nrog 6 tus neeg hauv tsev neeg nrog rau daim ntawv qhia hnub rau cov menyuam ncaws pob ncaws pob, tsev kawm ntawv thiab lwm lub koom haum uas peb koom nrog (11 tag nrho). (Google daim ntawv qhia hnub)
  • Huab cua hauv cheeb tsam. (forecast.io)
  • Daim ntawv qhia tsheb hauv zos (Google Maps)
  • Tso saib cov xwm txheej hauv tsev, xws li ntsuas kub, av noo, lub qhov rooj qhib lub qhov rooj qhib/kaw, teeb pom kev zoo rau/tawm, hauv qab daus xau sensor xwm txheej thiab ntau ntxiv. (Ntse Yam thiab Ntse Pobzeb)
  • Saib xyuas cov xwm txheej ntawm cov cuab yeej ntawm peb lub network hauv tsev xws li servers, IP lub koob yees duab, IP tshuab luam ntawv, routers, WiFi Access Points thiab lwm yam khoom siv Network. (Xymon)
  • Saib cov koob yees duab IP sab nraum zoov. (Qag)
  • Kev tswj hluav taws xob ntawm LCD los ntawm Raspberry Pi kom qhib thiab tua raws li lub sijhawm teem tseg.
  • Hnub & sijhawm.
  • Txawm tias me me "digital chalk board" rau txhua tus neeg hauv tsev neeg sau cov ntawv. (Google Doc)

(Kev tshoov siab los ntawm Cov Lus Qhia los ntawm Piney thiab Ozua)

Kauj ruam 1: Cov ntaub ntawv

Khoom siv
Khoom siv
Khoom siv
Khoom siv
Khoom siv
Khoom siv
Khoom siv
Khoom siv

Electronics

  • Raspberry Pi 2
  • Edimax USB Wifi adapter
  • TV tiaj tiaj TV, Kuv siv 22 "Samsung T220HD
  • 18 "HDMI cable
  • Txoj cai kaum HDMI adapter
  • Micro SD daim npav tsawg kawg 4Gb
  • Txo micro USB cable thiab lub hwj chim qaum
  • Wireless keyboard/nas (yeem)
  • 5 hli LED
  • 1 2N2222 transistor
  • 2 resistors (220ohm thiab 10k Ohm)
  • 940nm IR LED
  • me me prototyping PCB
  • Txiv neej rau poj niam jumper xov hlau
  • 22 gauge solid jumper wire thiab 20 gauge stranded wire
  • 40mm 5v PC kiv cua nrog USB A ntsaws

Kho vajtse

  • 5/4 "x 3-1/2" x 6 'tiav qib ntoo thuv
  • 3/8 "x 1-1/4" x 6 'ntoo thuv nres molding
  • 1-3/8 "x 36" Steel tiaj tiaj
  • Ntoo stain thiab polyurethane los yog xim
  • Hlau Fabkis txoj cleat
  • Ob 3/4 "& ib 1-1/2" yas grommets
  • Mounting screws & standoffs rau mount raspberry Pi
  • Ntoo nplaum & ntoo putty
  • Thaum tshav kub kub ntsws los yog daim kab xev hluav taws xob
  • Ob peb ntoo ntsia hlau, txhuam txhuam thiab ntawv txhuam

Cov cuab yeej

  • Miter pom
  • MIG welder
  • Soldering hlau & solder
  • Biscuit joiner ncuav qab zib
  • Pneumatic tiav nailer
  • Router
  • Laum
  • 3/4 "& 1-1/2" Qhov Pom
  • Random orbit sander
  • Kub kua nplaum phom
  • Ntau lub 'meter'
  • Asst. cov cuab yeej siv tes

Kauj ruam 2: Disassemble

Sib cais
Sib cais
Sib cais
Sib cais
Sib cais
Sib cais
Sib cais
Sib cais

Disassemble - Pib los ntawm kev tshem tawm 22 Samsung HD T220HD TV. Kev tshem tawm yog yooj yim yooj yim thiab tau sau tseg meej hauv cov kev pabcuam hauv qab no (pg. 8-12) yog li kuv yuav tsis theej tawm cov lus qhia ntawm no. Ceev faj tsis ua kom puas tsuaj LCD hauv tus txheej txheem thiab txuag tag nrho sab hauv. Cov yas tsev thiab sawv ntsug tuaj yeem muab pov tseg.

Kauj Ruam 3: Hloov Kho Lub Tshuab Hluav Taws Xob Tais

Hloov Kho Khoom Siv Hluav Taws Xob Tais
Hloov Kho Khoom Siv Hluav Taws Xob Tais
Hloov Kho Khoom Siv Hluav Taws Xob Tais
Hloov Kho Khoom Siv Hluav Taws Xob Tais
  1. Tshem Tshem Tawm - Nrog lub zog muab hluav taws xob thiab PCB tshem tawm los ntawm cov tais hlau, pib los ntawm kev tshem tawm ob txoj kev sib txuas nias tuav cov hlau txuas mus rau lub tais thiab tshem lub bracket.
  2. Ntxiv Tais Txhawb Nqa - Thaum lub bracket tawm ntawm txoj kev, nruab nrab cov hlau tiaj tus kab rov tav rau lub tais tsuas yog saum lub hwj chim nkag qhov ntsaws. Siv lub tshuab txuas MIG, kho nws qhov chaw. Qhov no yuav raug siv los txhawb lub tais hauv lub thav duab tom qab. Yog tias koj tsis muaj kev nkag tau rau MIG tus neeg siv hlau koj tuaj yeem laum qhov thiab kho qhov khoos phis tawj nrog cov txiv ntseej thiab ntsia liaj qhov rooj tab sis nco ntsoov tias koj muaj kev tshem tawm txaus ntawm lub taub hau ntawm tus ntsia liaj qhov rooj thiab lub zog xa khoom thaum nws rov teeb tsa kom tsis txhob muaj qhov luv luv. Lub tiaj tiaj yog txhob txwm tso tseg ntev rau lub sijhawm thiab yuav raug txiav kom haum rau hauv tus ncej tom qab.

Kauj Ruam 4: Tshem Tawm Lub Hwj Huam Fais Fab

Tshem lub hwj chim tawm
Tshem lub hwj chim tawm
Tshem lub hwj chim tawm
Tshem lub hwj chim tawm
Tshem lub hwj chim tawm
Tshem lub hwj chim tawm

Kauj Ruam 4-8 cuam tshuam nrog lub tshuab hluav taws xob tshiab thiab raug nyiag los ntawm lub Hoobkas

  1. Hloov Chaw Nkag Mus Rau Lub Hwj Chim - (Tsis teb los tau - Thaum xub thawj kuv tsis tau xav tias yuav tsum muaj qhov tob xav tau kom haum rau lub hwj chim qaum yam tsis muaj nws nthuav tawm sab nraum qab ntawm tus ncej thiab yog li ntawd ua rau nws tsis dai dej ntawm phab ntsa. Nws muab tawm tias muaj ntau qhov tob thiab cov kauj ruam no tsis tsim nyog. Kuv suav nrog nws vim nws pom hauv cov duab) CEEB TOOM: Tsuas yog ua raws cov kauj ruam no yog tias koj nyiam ua haujlwm nrog cov hluav taws xob muaj zog AC loj. Raws li qee tus neeg tawm tswv yim hais txog thaiv qhov tsis raug no tuaj yeem ua rau txaus ntshai. Cov xim ntawm koj cov xov hlau yuav txawv. Yog tias koj tsis paub meej nws yog qhov zoo tshaj plaws hla qhov kauj ruam no txij li kuv tau hais, nws tsis tas yuav tsim nyog.
  2. De-solder lub qhov hluav taws xob nkag los ntawm lub hwj huam hluav taws xob Circuit Court board.
  3. Txiav qhov kawg ntawm txoj hlua fais fab tuag thiab hle qhov kawg kom nthuav tawm cov xov hlau. Siv ntau lub ntsuas ntawm qhov txuas txuas mus ntsuas cov xov hlau nthuav tawm kom pom qhov twg muaj qhov txuas ntxiv mus rau hauv av prong ntawm lub ntsaws. Cov xaim no (xaim xaim hauv daim duab) yuav tau muab txuas rau qhov chaw nruab nrab ntawm lub zog txuas los ntawm lub zog ntsaws ntsaws raug tshem tawm.
  4. Muab lwm ob lub xov hlau txuas ntxiv los ntawm koj lub hwj huam qaum mus rau ob lub ntsiab lus txuas ntxiv.
  5. Txiav cov flange ntawm cov tais hlau nrog cov hlau kom tso cov hlau tawm ntawm ob sab ntawm lub tais raws li qhia hauv daim duab.

Kauj Ruam 5: Hloov Kho Lub Hwj Huam LED thiab IR Txais

Hloov Kho Lub Hwj Huam LED thiab IR Txais
Hloov Kho Lub Hwj Huam LED thiab IR Txais
Hloov Kho Lub Hwj Huam LED thiab IR Txais
Hloov Kho Lub Hwj Huam LED thiab IR Txais
  1. Hloov LED - Thawj lub zog LED yog lub xwmfab thiab dawb uas yog qhov zoo tab sis kuv xav siv 5mm LED txhawm rau tso cai yooj yim teeb tsa hauv lub qhov nyob hauv tus ncej. Txiav tus thawj LED los ntawm qhov kawg ntawm cov hlau lead. Sawb ob lub xov hlau thiab cov laug txuas txog 6 "ntawm cov xaim hluav taws xob txuas ntxiv qhov ntev ntawm txhua qhov. Tom qab ntawd muab lub 5mm LED tshiab tso rau qhov kawg ntawm cov xov hlau txuas ntxiv (tsis xav tau tus tiv thaiv), nco ntsoov qhov tseeb yog qhov tseeb. daim kab xev hluav taws xob los tiv thaiv cov pob qij txha txuas.
  2. Ncua IR Tus Txais - Tus txais IR tau muab muag rau PCB uas yuav ua rau teeb tsa nyuaj. De-solder nws los ntawm PCB thiab cov kab laug sab laug txuas rau nws. Tom qab ntawd muab cov xov hlau txuas rau PCB. Ib zaug ntxiv, siv cov cua sov los yog daim kab xev hluav taws xob los tiv thaiv cov hlua txuas.

Kauj Ruam 6: Tsim IR Transmitter

Tsim IR Transmitter
Tsim IR Transmitter
Tsim IR Transmitter
Tsim IR Transmitter
Tsim IR Transmitter
Tsim IR Transmitter

Lub transistor-powered IR transmitter yuav tsim nrog lub transistor, IR LED, jumper xov hlau, prototyping PCB thiab ob tus tiv thaiv uas tau teev tseg hauv cov khoom siv #2. Ib qho ntxiv, koj yuav xav tau lub khob cij los ua qauv rau koj tus IR transmitter. Xaim cov khoom siv raws li qhia hauv daim duab ntawm lub khob cij. Thaum koj zoo siab nrog koj daim ntawv hloov pauv nws mus rau qhov tsim qauv PCB thiab cov laug hauv qhov chaw. Siv ob txoj hlua hluav taws xob txuas mus txuas rau IR LED los ntawm PCB, tsis txhob siv IR LED ncaj qha mus rau PCB. Siv lwm 3 jumper xov hlau raws li koj txuas rau Pi.

Koj tuaj yeem tso lub voj voog rau sab tam sim no tab sis yog tias koj xav sim koj li IR transmitter koj xub xav tau Raspberry Pi ua haujlwm. Koj yuav tsum hla ua ntej mus rau kauj ruam 16-17. Cov kauj ruam no piav qhia yuav teeb tsa koj li PI li cas thiab yuav ua li cas txuas IR transmitter. Thaum ua tiav koj tuaj yeem rov qab mus rau theem no.

Txhawm rau ntsuas qhov kev xa xov hluav taws xob IR peb tuaj yeem ntsais LED nrog cov ntawv. Rub tawm tsab ntawv LEDblink thiab txav nws mus rau Pi lub tsev teev npe. Hloov * YOURPATH * hauv qab no nrog txoj hauv kev mus rau qhov ntawv tau rub tawm rau. Hauv hom davhlau ya nyob twg:

mv/*YOURPATH*/LEDblink/tsev/pi/

Tom qab ntawd ua kom nws ua tiav los ntawm kev khiav

chmod +x/tsev/pi/LEDblink

Khiav cov ntawv LEDblink

/tsev/pi/LEDblink

IR LED tsis yog lub teeb pom kev zoo ib txwm thiab tsis tso lub teeb pom kev tab sis koj tuaj yeem siv lub koob yees duab smartphone. kom pom nws ntsais muag. Taw lub koob yees duab ntawm IR LED thiab saib ntawm lub vijtsam. Yog tias Circuit Court ua haujlwm, koj yuav tsum pom IR LED ntsais muag.

Nov yog LED tsab ntawv ntsais teeb meem uas koj tsis tuaj yeem rub tawm

#!/usr/bin/nab hab sej

ntshuam RPi. GPIO li GPIO lub sijhawm ntshuam GPIO.setwarnings (Cuav) GPIO.setmode (GPIO. BCM) GPIO.setup (22, GPIO. OUT) thaum muaj tseeb: GPIO.output (22, Muaj tseeb) sijhawm.sleep (1) GPIO.output (22, Cuav) time.sleep (1)

Hloov kho los ntawm Raspberry Pi IR chaw taws teeb

LEDblink tsab ntawv

Kauj ruam 7: Fais fab Pi

Lub zog Pi
Lub zog Pi
Lub zog Pi
Lub zog Pi
Lub zog Pi
Lub zog Pi
Lub zog Pi
Lub zog Pi
  1. Npaj USB cable - Txiav qhov kawg tawm ntawm kev txi micro USB tawm ntawm micro USB kawg thiab kwv yees li 18 "ntawm qhov ntev. Saj cov xov hlau. USB cables yuav muaj 4 tus neeg ua haujlwm (feem ntau yog liab, ntsuab, dawb thiab dub) thiab daim thaiv npog. Peb yuav tsuas yog siv liab +5v thiab cov xov hlau hauv av dub. Cov xov hlau txuas ntxiv tuaj yeem txiav tawm ntawm txoj kev.
  2. Lub Hwj Chim Raspberry Pi - Nrhiav 9 txoj hlua sib txuas nruab nrab ntawm lub zog muab hluav taws xob thiab PCB, nws yuav muaj 1 lub xov tooj liab thiab 8 lub xim dub, Cov hlua no muab khoom siv tas li 5v (txawm tias thaum lub LCD tawm) mus rau PCB yog li peb tuaj yeem siv nws txhawb lub zog Raspberry Pi. Peb yuav suav cov xov hlau no 1-9 pib nrog xaim liab. Sib txuas los ntawm kev xaim cov xaim dub los ntawm USB cable rau xaim #4 thiab xaim liab los ntawm USB cable rau xaim #6. Siv cua sov los yog daim kab xev hluav taws xob los tiv thaiv cov pob qij txha txuas.

Kauj Ruam 8: Mount Pi thiab Xeem

Mount Pi thiab Xeem
Mount Pi thiab Xeem
Mount Pi thiab Xeem
Mount Pi thiab Xeem
  1. Mount Pi - Laum 4 qhov hauv lub tais kom nce Raspberry Pi. Siv cov ntsia hlau thiab sawv ntsug kom ruaj ntseg raws li qhia hauv duab. Saib xyuas tias koj muaj kev tshem tawm txaus ntawm lub hau ntswj thiab PCB ib zaug nws raug teeb tsa rov qab kom tsis txhob muaj kab hluav taws xob luv.
  2. Sib sau ua ke - Txhim kho lub hwj chim thiab PCB rov qab rau hauv lub tais ruaj ntseg nrog cov ntsia hlau qub. Khiav lub hwj chim tshiab thiab micro USB cables tawm ntawm sab ntawm lub tais. Yog tias koj xav ntsuas lub rooj zaum ntawm no txuas ntxiv txuas cov kab txuas ntxiv raws li tau piav qhia hauv Kauj Ruam #16, txwv tsis pub khaws lub LCD cais ntawm lub tais rau tam sim no.

Kauj Ruam 9: Tsim Ncej

Tsim Ncej
Tsim Ncej
Tsim Ncej
Tsim Ncej
Tsim Ncej
Tsim Ncej
Tsim Ncej
Tsim Ncej

Kauj Ruam 9-12 piav qhia yuav tsim lub thav duab ntoo tshiab rau txhua qhov khoom siv li cas. Yeej nws yog daim duab thav duab rau LCD.

  1. Tsim Ncej - Siv lub miter pom, txiav 5/4 "x 3-1/2" ntoo thuv rau hauv 4 daim nrog 45 ° txiav ntawm txhua qhov kawg los tsim ib lub duab plaub nyob ib puag ncig LCD. Qhov no yuav tsum haum snugly ib ncig ntawm LCD tab sis tsis yog li koj yuav tsum yuam LCD mus rau hauv tus thav duab.
  2. Koom Nrog Tus Kheej - Kos cov chaw nruab nrab ntawm txhua qhov kev txiav kawg. Teem koj cov khoom qab zib rau 45 ° thiab #10 ncuav qab zib, teeb qhov tob ntawm kev txiav kom nyob hauv nruab nrab ntawm qhov sib koom ua ke. Txiav tag nrho 8 biscuit qhov.
  3. Cov Cuab Yeej Cuam Tshuam - Ntxig cov ncuav qab zib rau hauv qhov qhib, tsis txhob lo rau, thiab ntsuas haum nrog LCD. Yog tias lub LCD haum haum hauv tus ncej, tshem nws thiab siv ntoo nplaum rau ntawm cov ncuav qab zib thiab 45 ° xaus kom koom nrog cov thav duab ua ke. Ua kom ntseeg tau tias lub thav duab yog plaub fab siv clamps thaum cov kua nplaum teeb tsa. So cov kua nplaum ntoo ntau dhau.

Nov yog lwm Cov Lus Qhia nrog cov lus qhia ntxiv rau kev tsim cov duab thav duab nrog cov ncuav ci ci los ntawm Canida

Kauj Ruam 10: Txiav Kab

Trim Ncej
Trim Ncej
Trim Ncej
Trim Ncej
  1. Kev Txhawb Nqa LCD - Tam sim no txiav qee cov ncuav qab zib kom tuav lub LCD hauv tus ncej tiv thaiv qhov tsis tuaj pwm uas yuav raug teeb tsa tom ntej. Teem lub khob noom cookie rau 90 °. Ntsuas qhov tuab ntawm LCD nrog lub ntsuas cua thiab teeb qhov tob ntawm cov koom nrog kom zoo ib yam. Cov LCD no muaj 1 sab uas tuab dua li lwm tus yog li txiav cov ncuav qab zib rau qhov nyias 3 sab ua ntej. 2 ncuav qab zib rau sab hauv ntawm sab luv ntawm tus ncej thiab 3 txhua qhov nyob rau sab ntev. Tom qab txiav cov 7 qhov, ntsuas sab tuab ntawm LCD thiab teeb qhov tob ntawm cov koom nrog tib yam. Txiav qhov kawg 3 biscuit qhov. Cov ncuav qab zib yuav tsum haum zoo, lawv tuav lub LCD nyob hauv qhov chaw yam tsis muaj kua nplaum.
  2. Trim - Txiav qhov txiav moulding rau hauv 4 daim nrog 45 ° txiav. Sab hauv sab (sab ntug) yuav hla dai sab hauv ntawm tus ncej thiab npog cov hlau bezel ntawm LCD. Siv lub LCD los ua phau ntawv qhia txhawm rau txiav txim siab qhov kho kom raug. Sab nrauv sab nrauv ntawm qhov tsis tuaj pwm yuav yog li 1/4 "los ntawm sab nrauv ntawm tus ncej, Nws tsim 1/4" qhia nyob ib puag ncig tag nrho cov thav duab. Kuv tau npaj ua ntej ntawm txoj kab hla hla mus rau lub ces kaum sab nrauv thiab tshem tawm qhov nthuav tawm tab sis kuv nyiam qhov zoo nrog 1/4 "qhia tawm yog li kuv tso nws raws li qhov muaj.

Kauj ruam 11: Txoj kev

Txoj kev
Txoj kev
Txoj kev
Txoj kev
Txoj kev
Txoj kev
  1. Qhib Fab Kis Cleat - Txiav sab sab ntawm Fab Kis Cleat kom nws yog 1/2 "nqaim dua tom qab qhov dav ntawm tus thav duab. Kos tus qauv qhia tawm ntawm cleat li 3" los ntawm sab saum toj ntawm txhua sab ntawm tus ncej. Teeb qhov tob ntawm koj lub router kom zoo ib yam li qhov tob ntawm Fab Kis cleat. Khiav tawm qhov chaw so nyob tom qab ntawm tus thav duab kom tus cleat yuav zaum yaug nrog tom qab ntawm tus ncej. Txiav sab phab ntsa ntawm cleat kom haum rau sab hauv dav ntawm tus ncej. Qhov no yuav ua kom lub thav duab nce mus rau phab ntsa.
  2. Cov Khoom Siv Hluav Taws Xob - Hauv qab ntawm tus ncej tsim kev so nrog lub router kom tuav lub tshuab hluav taws xob hauv tsev (IR PCB, lub Hoobkas hloov, lub zog LED) thiab IR transmitter PCB los ntawm Kauj Ruam #6. Nco ntsoov tias koj muaj qhov ntev txaus rau xaim kom ncav cuag lawv cov txuas ntawm ib sab ntawm lub tais. Laum ob 3/16 "qhov los ntawm hauv qab ntawm tus ncej mus rau hauv qhov chaw so. Cov qhov no yuav tuav 5mm LED thiab IR tus txais thiab tso cai rau lawv cov xov hlau rov qab mus rau lub sam xauv nees hauv lub hoobkas.
  3. Drill Ventilation Holes - Nrog rau 1-1/2 "qhov pom, tho ib lub qhov nyob rau sab saum toj ntawm tus ncej, tom qab ntawd laum ob 3/4" hauv qab ntawm tus ncej nrog 3/4 "qhov pom. Nco ntsoov kom tsis txhob muaj thaj chaw uas koj tau khiav tawm hauv cov kauj ruam dhau los.

Kauj Ruam 12: Tiav Ncej

Tiav Ncej
Tiav Ncej
  1. Kev Npaj Ua ntej - Sau tag nrho cov ntsia hlau qhov thiab pob qij txha nrog ntoo muab tso thiab tso kom teeb tom qab ntawm cov thav duab nrog koj lub ntsej muag tsis sib xws. Xuab zeb kom txog thaum du siv tsawg kawg 220 cov ntawv xuab zeb.
  2. Ua tiav - Tuav lub thav duab nrog koj nyiam ntxoov ntoo ntoo, tom qab ntawd siv 3 lub tsho polyurethane, txhuam ntawm txhua lub tsho loj. Los yog koj xav tau, pleev xim. Ua raws cov lus qhia ntawm cov tuam txhab rau lub sijhawm nruab nrab ntawm cov tsho loj.

Kauj Ruam 13: Sib sau ua ke

Sib sau ua ke
Sib sau ua ke
Sib sau ua ke
Sib sau ua ke
Sib sau ua ke
Sib sau ua ke

Tam sim no nws yog lub sijhawm los muab txhua yam ua ke.

  1. Pib los ntawm kev tso lub hwj chim LED rau hauv nws lub qhov, sab saum toj ntawm LED yuav tsum yaug nrog lub hauv ntej ntawm tus thav duab. Tom ntej ntxiv IR tus txais nws yuav raug nyab xeeb rau sab nraum qab ntawm lwm qhov vim nws cov duab plaub fab. Tom qab ntawd tso tus IR transmitter ua hauv Kauj Ruam #6 tom ntej ntawm tus txais IR yog li nws lub hom phiaj ncaj qha ntawm nws ib sab. Kub kua nplaum nyob rau hauv qhov chaw.
  2. Muab cov khoom siv hluav taws xob tso rau hauv tsev (IR PCB, hloov chaw hauv lub Hoobkas, hloov lub zog) mus rau thaj chaw hla ntawm tus ncej los ntawm Kauj Ruam #11 thiab qhia cov xov hlau kom lawv yuav tawm ntawm txoj kev. Nco ntsoov tias koj muaj sijhawm ntev txaus rau lub koomhaum ua haujlwm kom mus txog nws qhov txuas ntawm ib sab ntawm lub tais ib zaug ntsia. Kub kua nplaum nyob rau hauv qhov chaw.
  3. Txhim kho IR tus xa xov PCB tsim ua hauv kauj ruam #6 hauv thaj chaw uas raug xa mus thiab kub kua nplaum rau hauv qhov chaw lossis ruaj ntseg nrog cov ntsia hlau rau tus ncej.
  4. Nruab peb lub grommets nyob rau hauv lub qhov cua thiab ruaj ntseg nrog me ntsis kub kub.

Kauj Ruam 14: Nruab LCD thiab Tais

Nruab LCD thiab Tais
Nruab LCD thiab Tais
Nruab LCD thiab Tais
Nruab LCD thiab Tais
  1. Muab lub LCD tso rau hauv tus ncej thiab ruaj ntseg nrog #10 ncuav qab zib. Lawv yuav tsum ua kom zoo thiab tuav lub LCD yam tsis siv ntoo kua nplaum.
  2. Tom ntej tso lub tais nrog lub welded hlau tiaj tus txhawb nqa hla sab nraum qab ntawm tus ncej. Kos qhov dav ntawm txhua qhov kawg ntawm cov hlau tiaj tiaj. Khoov cov hlau tiaj tiaj hauv lub vise rau 90 ° ntawm cov cim. Txiav tawm cov hlau tiaj tiaj tshaj li 1 "dhau los khoov ntawm txhua qhov kawg lossis txaus kom nws tsis txuas ntxiv mus tom qab ntawm tus ncej thiab ruaj ntseg nrog cov ntoo ntoo.

Kauj Ruam 15: Ntxuam, Fab Kis Cleat thiab Hais Lus

Ntxuam, Fab Kis Cleat thiab Hais Lus
Ntxuam, Fab Kis Cleat thiab Hais Lus
Ntxuam, Fab Kis Cleat thiab Hais Lus
Ntxuam, Fab Kis Cleat thiab Hais Lus
Ntxuam, Fab Kis Cleat thiab Hais Lus
Ntxuam, Fab Kis Cleat thiab Hais Lus
Ntxuam, Fab Kis Cleat thiab Hais Lus
Ntxuam, Fab Kis Cleat thiab Hais Lus
  1. Nruab 40mm kiv cua sab hauv 1-1/2 "qhov cua qhov nrog cov ntsia hlau kom nws rub tawm huab cua los ntawm sab hauv lub thav duab thiab tso rau sab nraud.
  2. Txhim kho Fab Kis Cleat hauv qhov chaw so tsim hauv Kauj Ruam #11 nrog cov ntsia hlau muab ua kom ntseeg tau tias nws yuav nyob qib nrog rau sab saum toj ntawm tus ncej.
  3. Ruaj ntseg ob tus neeg hais lus raug tshem tawm hauv kev tshem tawm mus rau ob sab ntawm lub nraub qaum ntawm tus ncej nrog ntoo ntsia hlau. Tawm qhov ntev txaus kom xaim tuaj yeem ncav cuag lub Hoobkas txuas.

Kauj ruam 16: Txuas

Txuas
Txuas
Txuas
Txuas
Txuas
Txuas
  1. Nruab WiFi adapter (thiab xaiv tau cov keyboard hloov pauv tau) rau hauv Raspberry PI USB qhov qhib.
  2. Txuas LVDS cable thiab ob lub LCD inverter fais fab cable los ntawm LCD rau tais.
  3. Txuas lub Hoobkas hloov hlua thiab hais lus rau cov txuas ntawm lub tais.
  4. Txuas HDMI cable ntawm Raspberry Pi thiab HDMI chaw nres nkoj ntawm lub tais siv lub kaum sab xis sab xis ntawm lub tais kawg.
  5. Txuas micro USB fais fab cable los ntawm Kauj Ruam #7 rau Raspberry Pi.
  6. Txuas IR transmitter jumpers. Txuas tus 3.3v liab jumper rau tus pin #1 ntawm tus Pi, txuas cov txiv kab ntxwv GPIO22 teeb liab jumper rau tus pin #15 thiab jumper av xim av rau tus pin #39.
  7. Txuas lub 40mm kiv cua USB cable rau hauv USB chaw nres nkoj nyob tom qab ntawm lub tais.

Kauj Ruam 17: Nruab Raspbian thiab Teeb Yooj Yim

Nruab Raspbian thiab Pib Teeb
Nruab Raspbian thiab Pib Teeb
Nruab Raspbian thiab Pib Teeb
Nruab Raspbian thiab Pib Teeb
Nruab Raspbian thiab Pib Teeb
Nruab Raspbian thiab Pib Teeb
Nruab Raspbian thiab Pib Teeb
Nruab Raspbian thiab Pib Teeb

Cov lus qhia no xav tias Raspbian GNU/Linux 8 (jessie) tau teeb tsa.

  1. Ua raws cov lus qhia ntawm Raspberry Pi lub vev xaib txhawm rau npaj koj daim npav Micro SD nrog NOOBS uas yog tus tswj kev teeb tsa kev ua haujlwm rau Raspberry Pi thiab tom qab ntawd ntxig daim npav Micro SD hauv Raspberry Pi.
  2. Fais fab ntawm koj cov ntaub ntawv xov xwm thiab koj Pi yuav khau raj rau NOOBS. Ua raws li cov lus qhia ntawm lub vijtsam teeb tsa rau nruab Raspbian.
  3. Thaum qhov kev teeb tsa tiav koj yuav tsum tau nkag rau hauv koj lub desktop. Yog tias tsis yog, tus neeg siv lub neej ntawd yog pi thiab tus password tsis raug yog raspberry. Kuv pom zoo hloov tus password tsis raug nrog rau qee qhov kev teeb tsa yooj yim siv Raspberry Pi Kev teeb tsa GUI hauv Ntawv Qhia> Nyiam
  4. Ib zaug hauv Raspberry Pi Configuration GUI nyob rau hauv System tab, nyem rau ntawm Expand Filesystem. Qhov no yuav siv sijhawm li ob peb feeb xwb. Qhov laj thawj rau kev nthuav tawm cov ntaub ntawv system yog ua kom txhua qhov chaw muaj nyob ntawm daim npav SD muaj rau siv, hauv kev mob siab ua kom Raspbian me me txaus kom haum rau qhov sib txawv ntawm daim npav SD nws tau siv los tsuas yog siv txog 4GB. Tsis tas li, nyem rau ntawm Change Password khawm kom hloov tus password tsis raug. Muab koj cov ntaub ntawv xov tooj cua lub npe hostname uas koj xaiv, xaiv Boot To Desktop thiab Auto login.
  5. Thaum tseem nyob hauv Raspberry Pi Configuration GUI xaiv Cov Localization tab thiab teeb tsa koj thaj chaw, Lub Sijhawm thiab Keyboard nyiam. GUI tau sau tseg ntxiv ntawm no.
  6. Teeb tsa Edimax WiFi adapter ntawm cov lus qhia teeb tsa ntawm nplooj ntawv no.
  7. Thaum WiFi ua haujlwm qhib lub davhlau ya nyob twg thiab hloov kho qhov chaw cia khoom. Ntaus cov lus txib hauv qab no.
  8. sudo apt-tau hloov tshiab
  9. Tom ntej no hloov kho txhua pob khoom.

    sudo apt-tau hloov tshiab

  10. Tam sim no cia hloov kho Raspberry Pi's firmware.

    sudo rpi-hloov tshiab

  11. Rov pib dua.

    sudo rov pib dua

Kauj Ruam 18: Nruab Pob Software

Nruab Software Pob
Nruab Software Pob

Tam sim no peb yuav teeb tsa pob khoom ntxiv uas yuav xav tau rau cov ntaub ntawv xov xwm. Cov no yuav raug teeb tsa hauv cov kauj ruam tom ntej. Qhib lub davhlau ya nyob twg qhov rai thiab ntaus cov lus txib hauv qab no.

  1. Nruab Chromium browser.

    wget -qO - https://bintray.com/user/downloadSubjectPublicKey?username=bintray | sudo apt -key ntxiv -

    ncha "deb https://dl.bintray.com/kusti8/chromium-rpi jessie main" | sudo tee -a /etc/apt/sources.list sudo apt-tau hloov tshiab sudo apt-tau nruab chromium-browser

  2. Nruab Apache webserver.

    sudo apt-tau nruab apache2

  3. Nruab Unclutter kom zais tus pointer thaum tsis siv.

    sudo apt-tau nruab unclutter

  4. Nruab x11-xserver-utils

    sudo apt-tau nruab x11-xserver-utils

  5. Nruab Xdotool.

    sudo apt-tau nruab xdotool

  6. Nruab ib lub Linux Infrared Remote Control pob.

    sudo apt-tau nruab lirc

Kauj Ruam 19: Tig Zaub

Kuv nyiam cov ntawv sau vi, yog tias koj nyiam nano tsuas yog hloov nano rau vi hauv cov theem hauv qab no.

Txij li thaum cov ntaub ntawv xov xwm yuav raug dai ntawm kab rov tav tsis yog kab rov tav peb yuav xav tau tig cov zaub. Hauv cov davhlau ya nyob twg ntaus cov lus txib:

sudo vi /boot /config.txt

Ntxiv kab hauv qab no rau cov ntaub ntawv config.txt.

ntxiv display_rotate = 1 90

Kauj ruam 20: Teeb Chromium

Chromium tau teeb tsa hauv Kauj Ruam #18 tam sim no teeb tsa Chromium rau pib pib. Hauv lub davhlau ya nyob twg hloov cov ntaub ntawv /home/pi/.config/lxsession/LXDE-pi/autostart

vi /home/pi/.config/lxsession/LXDE-pi/autostart

ces ntxiv kab

@chromium-browser -start-fullscreen -disable-session-crashed-bubble -disable-infobars localhost Tam sim no peb tsim tsab ntawv los kho Chromiu

vi /home/pi/refresh.sh

Ntxiv cov kab hauv qab no rau hauv cov ntawv

#!/bin/tsoo

export DISPLAY = ": 0" WID = $ (xdotool search --onlyvisible --class chromium | taub hau -1) xdotool windowactivate $ {WID} xdotool key ctrl+F5

Ua kom tsab ntawv ua tiav

sudo chmod +x /home/pi/refresh.sh thiab ntxiv rau cron kom khiav txhua 15 feeb

sudo crontab -e ntxiv kab no rau cronta

*/15 * * * * /home/pi/refresh.sh

Kauj ruam 21: Teeb Unclutter thiab Disable Screen Blanking

Unclutter thiab X11-xserver-utils tau teeb tsa hauv Kauj Ruam #18. Unclutter yuav zais tus pointer thaum tsis siv. Hauv lub davhlau ya nyob twg hloov cov ntaub ntawv /home/pi/.config/lxsession/LXDE-pi/autostart Peb tseem tuaj yeem ntxiv xset lus txib kom xiam lub zog txuag hom

vi /home/pi/.config/lxsession/LXDE-pi/autostart

ces ntxiv kab

@unclutter -display: 0 -nevents -grab

@xset s off @xset -dpms @xset s noblank

Txhawm rau xiam qhov screen blanking nrog lub neej ntawd LXDE, kho cov ntaub ntawv:/etc/xdg/lxsession/LXDE/autostart.

vi/etc/xdg/lxsession/LXDE/autostart

Tawm tswv yim tawm @xscreensaver hais kom ua (ntxiv # ntawm kev thov ntawm kab)

#@xscreensaver -tsis -txaws

Txhawm rau sim xset teeb tsa koj tuaj yeem khiav xset q tom qab rov pib dua koj yuav tsum pom cov zis hauv qab no

nyiam qhov tsis pom kev: tsis pub tso tawm: yestimeout: 0 lub voj voog: 600 DPMS Xiam Oob Qhab

Kauj Ruam 22: Teeb Linux Infrared Remote Control

Peb teeb tsa LIRC hauv Kauj Ruam #18. Cia nws ua haujlwm kom peb Pi tuaj yeem xa IR lub zog rau thiab tawm cov lus txib rau LCD.

sudo vi /boot /config.txt

ntxiv cov hauv qab no rau cov ntaub ntawv config.txt

dtoverlay = lirc-rpi, gpio_out_pin = 22

tom qab ntawv kho cov ntaub ntawv kho vajtse.conf

sudo vi /etc/lirc/hardware.conf

ntxiv cov hauv qab no

LIRCD_ARGS = "-nkag mus"

LOAD_MODULES = qhov tseeb DRIVER = "default" DEVICE = "/dev/lirc0" MODULES = "lirc_rpi" LIRCD_CONF = "" LIRCMD_CONF = ""

Nrhiav koj lub chaw teeb tsa cov ntawv teeb tsa los ntawm cov npe ntawm cov nyob deb hauv LIRC lub vev xaib ntawm https://lirc.sourceforge.net/remotes/ Rub tawm cov ntawv teeb tsa thiab khaws nws li /etc/lirc/lircd.conf. Hauv kuv qhov xwm txheej kuv siv Samsung AA59-00382A teeb tsa cov ntaub ntawv ntawm no

cp AA59-00382A.lircd.conf /etc/lirc/lircd.conf

Tom qab ntawd koj yuav tsum tuaj yeem sim LIRC nrog lub zog no rau/tawm cov lus txib

/usr/bin/irsend SEND_ONCE Samsung_AA59-00382A KEY_POWER

Yog tias koj nyiam koj tuaj yeem teeb tsa lub sijhawm kom qhib thiab kaw koj lub LCD siv cron. Kho kom raug crontab thiab ntxiv lub sijhawm koj xaiv. Hauv kuv qhov piv txwv cov ntaub ntawv xov xwm muaj zog txhua hnub thaum 8:00 teev sawv ntxov, tom qab ntawv kaw thaum 10:00 teev sawv ntxov hnub 1-5 (hnub ua haujlwm hnub), lub zog rov qab los ntawm 3:00 teev tsaus ntuj (15:00) nyob rau hnub 1-5 (hnub ua haujlwm) thiab tom qab ntawv txiav tawm txhua hnub thaum 1:00 teev sawv ntxov.

sudo crontab -e

0 8 * * */usr/bin/irsend SEND_ONCE Samsung_AA59-00382A KEY_POWER>/dev/null 2> & 1

0 10 * * 1-5/usr/bin/irsend SEND_ONCE Samsung_AA59-00382A KEY_POWER>/dev/null 2> & 1 0 15 * * 1-5/usr/bin/irsend SEND_ONCE Samsung_AA59-00382A KEY_POWER>/dev/null 2 > & 1 0 1 * * */usr/bin/irsend SEND_ONCE Samsung_AA59-00382A KEY_POWER>/dev/null 2> & 1

Kauj Ruam 23: Tsim Koj Lub Vev Xaib

Tsim Koj Lub Vev Xaib
Tsim Koj Lub Vev Xaib

Txij ntawm no mus koj yuav tsum muaj cov ntaub ntawv xov xwm ua haujlwm uas qhia txog lub neej ntawd Apache "Nws ua haujlwm!" nplooj ntawv web. Tam sim no peb yuav tsum tsim koj li nplooj ntawv web page. Koj tuaj yeem tsim qhov no raws li koj xav ua kom yooj yim lossis nyuaj raws li koj nyiam. Kuv tau suav nrog ob lub vev xaib piv txwv, ib qho yog nplooj ntawv kuv siv nrog URLs raug tshem tawm thiab lwm qhov yog daim ntawv qhia hnub nyoog piv txwv xwb. Nrog ib qho twg koj yuav tsum nkag mus rau koj tus kheej URLs. Tom qab ntawd hloov npe cov ntaub ntawv rau index.html thiab tso rau hauv/var/www/html/

Txij li muaj ntau txoj hauv kev uas koj tuaj yeem tsim nplooj ntawv no thiab txhua tus neeg siv rooj plaub yuav sib txawv Kuv yuav tsis piav qhia tag nrho cov ntaub ntawv html ntawm no. Muaj ntau ntau Cov Lus Qhia Zoo thiab cov lus qhia hauv lub vev xaib nthuav qhia yuav ua li cas tsim cov nplooj ntawv web thiab ntau ntxiv txog yuav ua li cas txhawm rau txhawm rau cov ntsiab lus koj nyiam.

piv txwv cov ntaub ntawv

piv txwv daim ntawv qhia hnub tsuas yog cov ntaub ntawv

Kauj Ruam 24: Dai thiab Txaus Siab

Dai thiab Txaus Siab!
Dai thiab Txaus Siab!
Dai thiab Txaus Siab!
Dai thiab Txaus Siab!
Dai thiab Txaus Siab!
Dai thiab Txaus Siab!
Dai thiab Txaus Siab!
Dai thiab Txaus Siab!

Mount lwm qhov ib nrab ntawm koj cov lus Fabkis txoj ntawm koj phab ntsa, ua kom ntseeg tau tias nws yog qib, thiab dai koj cov ntaub ntawv xov xwm. Plug rau hauv thiab txaus siab rau!

Kev Sib Tw Microcontroller 2017
Kev Sib Tw Microcontroller 2017
Kev Sib Tw Microcontroller 2017
Kev Sib Tw Microcontroller 2017

Qhov khoom plig loj hauv Microcontroller Contest 2017

Pom zoo: