Cov txheej txheem:

Ntse Daim iav los ntawm Raspberry Pi: 5 Kauj Ruam (nrog Duab)
Ntse Daim iav los ntawm Raspberry Pi: 5 Kauj Ruam (nrog Duab)

Video: Ntse Daim iav los ntawm Raspberry Pi: 5 Kauj Ruam (nrog Duab)

Video: Ntse Daim iav los ntawm Raspberry Pi: 5 Kauj Ruam (nrog Duab)
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Kaum ib hlis
Anonim
Ntse Daim iav los ntawm Raspberry Pi
Ntse Daim iav los ntawm Raspberry Pi
Ntse Daim iav los ntawm Raspberry Pi
Ntse Daim iav los ntawm Raspberry Pi

Yog li muaj qhov tsis siv raspberry pi 1B hauv lub tub rau khoom thiab saib tsis siv. Qhov ntawd yog qhov laj thawj txaus los tsim Daim iav Ntse.

Daim iav yuav tsum qhia lub sijhawm, hnub tim thiab huab cua qhia nrog rau xwm txheej xwm txheej txog kev hloov lub tsev ntse thiab cov nkauj tam sim no tab tom ua si.

Kauj Ruam 1: Yam Koj Xav Tau

Txhawm rau tsim daim iav ntse koj xav tau cov khoom hauv qab no

  • Raspberry Pi WIFI dongle (tshwj tsis yog Raspberry Pi 3, qhov no tau suav nrog WIFI)
  • Saib xyuas (kuv siv BenQ 24 '')
  • Duab thav duab (tau txais ib qho los ntawm https://wunsch-bilderrahmen.de hauv tebchaws Yelemes)
  • Ib-txoj kev daim iav (tau txais ib los ntawm https://www.myspiegel.de/ hauv tebchaws Yelemes), tab sis koj tseem tuaj yeem siv daim iav pom-iav acrylic
  • Ntoo slats kom nthuav cov duab thav duab kom nws tuaj yeem muaj tus saib
  • Lub kaum sab xis los tuav tus saib hauv tus ncej
  • Cov kab xev dub kom tsis txhob iav ncaj qha mus rau hlau
  • Ntoo nplaum thiab ntoo ntsaws rau nplaum daim duab thav duab thiab ntoo ciam teb ua ke
  • Hlau los yog qaum rau mount ntxiv rau cov ntsia hlau thauj tog rau nkoj
  • Cov kab hluav taws xob
  • Bar tuav
  • Laum tshuab

Yog tias koj xav tau lub teeb pom kev tom qab los ntawm cov coj coj, koj xav tau cov hauv qab no

  • Coj-sawb nrog tus tswj, saib txoj haujlwm no RC-tswj-LED-strip
  • 433 MHz tus xa ntawv

Muaj cov npe uas suav nrog tus nqi tseem ceeb ntawm txoj haujlwm.

  • Daim duab-thav duab-28 € ~ 29.3 $
  • Ib txoj kev tsom iav-73 € ~ 76.6 $
  • BenQ GL2450 - 100 € ~ 104.9 $
  • Raspberry Pi 3 - 37 € ~ 38.8 €
  • Ntoo slats (twb tau txiav rau hauv txoj cai ntev) - 15 € ~ 15.7 $
  • LED sawb 6"

Qhov no suav txog 259 € ~ 272 $ piv txwv tias koj muaj txhua yam khoom me me xws li cov cuab yeej, cov kua nplaum ntoo, ntsia hlau thiab lwm yam.. Tab sis raws li kuv tau hais los lawm, vim li cas thiaj tsim lub iav yog lub tsis siv saib, raspi thiab coj-strip yog li kuv nqis peev 116 € ~ 122 $ los muab txoj haujlwm tshiab rau lawv.

Kauj Ruam 2: Npaj Saib Xyuas Vaj Huam Sib Luag

Thawj kauj ruam ua yog tshem lub bezel los ntawm lub vaj huam sib luag saib. Qhov ntawd yog qhov tsim nyog kom tau txais qhov loj me ntawm lub vaj huam sib luag saib. Koj yuav xav tau qhov loj kom tau daim duab thav duab, daim iav ib sab thiab cov ntoo ntoo hauv qhov loj me.

Muaj twb tau piav qhia ntau npaum li cas tshem lub bezel. Ua tibzoo saib qhov txiaj ntsig tshawb fawb no kom paub ntau ntxiv

Tom ntej no kuv muab daim kab xev dub tso rau ntawm cov hlau ciam teb ntawm lub vaj huam sib luag saib. Thawj qhov laj thawj yog kom zam cov hlau ncaj qha mus rau iav tom qab thaum kuv tso lub monitor rau ntawm daim iav. Qhov laj thawj thib ob yog kom tsis txhob xav txog cov hlau, yog li kuv xaiv cov xim dub uas yuav tsum nqus cov teeb pom kev.

Kauj Ruam 3: Tsim Tus Qauv

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

Thaum peb paub qhov loj me ntawm lub vaj huam sib luag saib peb tuaj yeem xaj cov duab thav duab, daim iav ib sab thiab cov ntoo ntoo. Kuv xaj daim duab thav duab thiab daim iav ib txoj hauv kev sib haum ua ke kom daim iav tuav los ntawm daim duab thav duab. Txawm li cas los xij, qhov tseem ceeb yuav tsum tau kho yog li kuv tau tsim ciam teb nyob tom qab ntawm daim duab duab uas yuav tsum muaj tus saib.

Kuv txuas cov ntoo ntoo los ntawm cov kua nplaum ntoo, ntsaws ntoo thiab ntsia hlau kom txuag tau. Thawj daim duab qhia ob lub qhov rau ntsaws ntoo hauv daim duab. Ceev faj tsis txhob tho qhov los ntawm daim duab, uas yuav zoo li tsis zoo. Daim duab thib ob qhia txog lub qhov rau cov ntsia hlau, ib zaug ntxiv, ceev faj tsis txhob ntswj ntsia hlau los ntawm daim duab.

Tus ciam teb tseem xav tau lub qhov rau cov xov hluav taws xob txuas ntxiv nrog rau lub qhov rau coj sawb, yog tias koj xav siv ib qho.

Kauj Ruam 4: Muab Daim Phiaj Ua Ke

Muab tej daim ua ke
Muab tej daim ua ke
Muab tej daim ua ke
Muab tej daim ua ke
Muab tej daim ua ke
Muab tej daim ua ke

Thaum thav duab tiav, peb tuaj yeem tso khoom ua ke. Daim iav raug kho los ntawm tus saib. Txhawm rau kho tus saib mus rau tus ntoo ntoo kuv ntxiv ob lub kaum sab xis ntawm peb sab, ua rau kaum lub kaum ntse ntse. Plaub sab dub ntawm lub vaj huam sib luag saib tau npog nrog lub rooj tsav xwm hauv Circuit Court, yog li kuv hla qhov no.

Lub thawv hlau hauv nruab nrab muaj cov khoom siv hluav taws xob rau lub vaj huam sib luag saib xyuas thiab tau tsim los ntawm lub bezel ntawm tus saib. Tam sim no yam tsis muaj lub bezel kuv ntxiv cov kab xev xim av los kho lub thawv no ntawm tus saib. Kuv txuas txoj hlua ntsuab ntawm sab laug thiab sab xis ntoo los ntawm cov ntsia hlau, qhov no yuav xav tau txhawm rau txhawm rau daim iav ntawm phab ntsa.

Kuv tso raspberry pi nyob rau hauv kaum sab laug hauv qab thiab cov coj coj-sawb nyob rau hauv qab txoj cai. GPIOs ntawm raspi txuas nrog 433 MHz tus xa mus teeb xim ntawm cov coj-sawb. Tab sis tus neeg xa khoom tuaj yeem muaj qee qhov ua haujlwm tau zoo dua piv txwv, tswj qee qhov tsis muaj qhov ntsaws.

Kauj ruam 5: Nruab Software

Nruab Software
Nruab Software

Lub software ntawm daim iav ntse yog ua tiav raws li html, javascript thiab css. Txhua yam koj xav tau yog browser. Rau raspberry pi kuv pom zoo kom siv midori. Cov peev txheej tau teeb tsa hauv gitpub repo. Nov yog lub dashboard me me heev uas tsuas yog qhia lub sijhawm, huab cua, nkauj thiab hloov pauv. Lub sijhawm los ntawm lub sijhawm ntawm lub computer. Txhawm rau qhia cov ntaub ntawv huab cua kuv siv https://api.openweathermap.org. Suab paj nruag thiab hloov pauv cov ntaub ntawv los ntawm kuv lub tsev ntse hauv tsev raws li qhov rov qab githup: https://github.com/dabastynator/RemoteControlSystem. Qhov kev daws teeb meem hauv tsev ntse no txhais tau ntau chav nyob uas tuaj yeem tswj tau, piv txwv li media-server lossis wireless socket hauv kev teeb tsa-xml thiab ua rau txhua qhov muaj los ntawm lub web api so.

Txhawm rau teeb tsa raspberry pi koj yuav tsum clone github repo:

git clone [email protected]: dabastynator/SmartMirror.git

Thiab kho cov ntaub ntawv ~/SmartMirror/smart_config.js los teeb tsa tus lej openweatherapi thiab cov chaw taws teeb-tswj-kev ruaj ntseg token:

var mSecurity = 'token =';

var mOpenWeatherKey = '';

Tam sim no raspberry pi yuav tsum qhia lub midori browser ntawm kev pib thiab tseem zais tus cursor nas ntawm qhov tsis ua haujlwm los ntawm kev tsis sib dhos. Yog li ntxiv cov kab hauv qab no ntawm ~/.bashrc:

loj 20s

# Nkaum nas ntawm qhov tsis ua haujlwm

unclutter -display: 0 -nevents -grab &

log = "/tsev/pi/magic_mirror.log"

daim iav = "file: ///home/pi/SmartMirror/smart_mirror.html"

xa tawm DISPLAY =: 0

midori -e Fullscreen -a $ daim iav >> $ log &

Tom ntej no kuv tshem lub vijtsam uas tsis muaj qhov nyob ntawm 6 min ntawm qhov tsis ua haujlwm piav qhia ntawm nplooj ntawv no: https://www.etcwiki.org/wiki/Disable_screensaver_and_screen_blanking_Raspberry_Pi. Yog li hloov cov ntaub ntawv/etc/kbd/teeb tsa thiab hloov cov kab no:

BLANK_TIME = 0

BLANK_DPMS = tawm

POWERDOWN_TIME = 0

Thiab ntxiv kab ntawv ntxiv rau hauv cov ntawv/etc/xdg/lxsession/LXDE-pi/autostart.

@xset s noblank

@xset tawm

@xset -dpms

Txhawm rau tig lub vijtsam los ntawm 90 ° Kuv ntxiv cov kab hauv qab no rau hauv /boot/config.txt.

# Tig lub vijtsam rau hauv hom qauv

display_rotate = 1

Qhov ntawd yog nws. Kuv qhov kev paub tam sim no yog txhawm rau siv tus saib xyuas tiag tiag zoo dua li siv lub lcd saib. Qhov ntawd yuav tsum tsim kom muaj lub teeb pom kev tsawg dua ntawm thaj chaw dub, siv hluav taws xob tsawg dua thiab yuav tsum sib dua thiab ua kom nyias nyias. Kuv daim iav hnyav 10 kg.

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

Khiav Tawm Hauv Kev Sib Tw Microcontroller 2017

Pom zoo: