Cov txheej txheem:

O-R-A RGB Led Matrix Wall Clock thiab Ntau ** hloov tshiab Lub Xya Hli 2019 **: 6 Cov Kauj Ruam (nrog Duab)
O-R-A RGB Led Matrix Wall Clock thiab Ntau ** hloov tshiab Lub Xya Hli 2019 **: 6 Cov Kauj Ruam (nrog Duab)

Video: O-R-A RGB Led Matrix Wall Clock thiab Ntau ** hloov tshiab Lub Xya Hli 2019 **: 6 Cov Kauj Ruam (nrog Duab)

Video: O-R-A RGB Led Matrix Wall Clock thiab Ntau ** hloov tshiab Lub Xya Hli 2019 **: 6 Cov Kauj Ruam (nrog Duab)
Video: 20 MOMENTS YOU WOULDN'T BELIEVE IF NOT FILMED 2024, Kaum ib hlis
Anonim
Image
Image
O-R-A RGB Led Matrix Wall Clock thiab Ntau Ntxiv ** hloov tshiab Lub Xya Hli 2019 **
O-R-A RGB Led Matrix Wall Clock thiab Ntau Ntxiv ** hloov tshiab Lub Xya Hli 2019 **
O-R-A RGB Led Matrix Wall Clock thiab Ntau Ntxiv ** hloov tshiab Lub Xya Hli 2019 **
O-R-A RGB Led Matrix Wall Clock thiab Ntau Ntxiv ** hloov tshiab Lub Xya Hli 2019 **
O-R-A RGB Led Matrix Wall Clock thiab Ntau Ntxiv ** hloov tshiab Lub Xya Hli 2019 **
O-R-A RGB Led Matrix Wall Clock thiab Ntau Ntxiv ** hloov tshiab Lub Xya Hli 2019 **

Nyob zoo. Ntawm no kuv nrog txoj haujlwm tshiab hu ua O-R-A

Nws yog RGB LED Matrix phab ntsa moos uas tso saib:

  • teev: feeb
  • kub
  • av noo
  • icon huab cua tam sim no
  • Cov xwm txheej Google Calendar thiab 1h ceeb toom ceeb toom

ntawm lub sijhawm tshwj xeeb nws qhia:

  • Google Calendar hnub no thiab tag kis cov npe txheej xwm
  • huab cua huab cua
  • tawg xov xwm

Kev quav yeeb quav tshuaj:

  • hnub tim tam sim no
  • Khawv koob 8 pob
  • Chav ua noj timer

Rau ib qho haujlwm twg lub cuab yeej ua si lub suab sib txawv. Rau txhua yam huab cua zoo li muaj cov ntaub ntawv audio uas yuav tsum tau ua thaum lub luag haujlwm hu ua.

Lub luag haujlwm zoo li Google Daim Ntawv Teev Npe, Huab cua huab cua, RSS xov xwm tawg pib ntawm lub sijhawm xaiv tsa thaum lub cuab yeej nyob hauv "hom moos", cov no tseem tuaj yeem hu ncaj qha ua haujlwm hloov pauv. Lwm qhov ua haujlwm thaum lub sijhawm "moos hom" tso saib hnub/hli/xyoo tam sim no. Nws tuaj yeem ua haujlwm nias ENTER khawm. Nias CHANGE STATE khawm thiab tom qab ntawd ENTER khawm tsis pub dhau 3 vib nas this hauv "hom moos", cia koj nkag mus rau hauv cov ntawv qhia zaub mov xaiv. CHANGE STATE khawm yog teeb tsa los sab hauv cov ntawv qhia zaub mov, ENTER khawm yog kom paub meej qhov kev xaiv xaiv.

Txoj haujlwm no yog kev hloov pauv ntawm kuv yav dhau los LEGOLED thiab TEMPO. RGB coj matrix vaj huam sib luag muaj kev daws teeb meem 32x64 tam sim no, yog li nws muaj peev xwm tso tawm ntau lub ntsej muag duab ntse, tsau thiab rub cov ntawv tib lub sijhawm. Siv TEMPO kev ua haujlwm zoo lub cuab yeej qhib & tua tau yam tsis muaj khawm lossis lub sijhawm sab nraud. PIR tus qauv ntsuas pom muaj cov neeg nyob ntawd yog li qhib/tua cov zaub.

Kev kwv yees huab cua thiab daim ntawv qhia hnub tau sau txhua feeb uas muab los ntawm Google Calendar thiab Qhib Huab Cua Qhia.

Txoj haujlwm no tuaj yeem hloov kho tau los ntawm Raspberry PI B+, 2 module 16x64 rgb coj matrix thiab muab lub zog. Nws tuaj yeem nthuav dav, ib yam li kuv tau ua, ntxiv USB lub npav suab, hais lus, qhib/tawm lub zog hluav taws xob.

Kauj Ruam 1: Yam Koj Xav Tau

  • Raspberry Pi B+ (nrog wifi lossis dongle)
  • 2 x 16x64 RGB coj matrix lossis 2 x 32x32
  • generic thav duab (40x50 cm & 3 cm tob kwv yees)
  • frosted yas ntawv
  • qhov rai hnub ci zaj duab xis
  • PS 5 V 10A
  • cov kab
  • thermosetting txheej (*)
  • relay module (*)
  • ntxiv PS rau lub suab nrov (*)
  • 3W suab amplifier module (*)
  • hais lus (*)
  • USB daim npav suab (*)
  • 2 x microswitch (*)
  • PIB (*)
  • Attiny85 (*)
  • DS3231 (*)
  • Mosfet IRF540 (*)
  • Resistors: 3x1K, 2x10K, 1x2K (*)
  • davhlau ya nyob twg thaiv (*)
  • header strips poj niam (*)
  • header strips txiv neej (*)

(*) xaiv tau

Kauj Ruam 2: Teeb Raspberry Pi

Phau ntawv qhia no yog ua raws Raspbian Jessie Lite, Python 2.7 thiab RGB LED MATRIX lub tsev qiv ntawv los ntawm Hzeller Github tus neeg siv.

Ua ntej tshaj plaws hloov kho & txhim kho RPI

Nruab git

~ $ sudo apt-tau nruab git

Rub tawm RGB LED MATRIX lub tsev qiv ntawv los ntawm Github

~ $ git clone

~ $ cd rpi-rgb-coj-matrix

~ $ sudo ua

blacklist RPI sab hauv suab

~ $ miv << EOF | sudo tee /etc/modprobe.d/blacklist-rgb-matrix.conf

blacklist snd_bcm2835

EOF

~ $ sudo hloov tshiab -initramfs -u

Teeb tsa lub suab sab nraud sab nraud yog tias xav tau lub peev xwm:

~ $ sudo nano /usr/share/alsa/alsa.conf

hloov:

defaults.ctl.card 0

defaults.pcm.card 0

rau

defaults.ctl.card 1

defaults.pcm.card 1

ces reboot.

Tam sim no teeb tsa lub tsev qiv ntawv matrix

~ $ cd/tsev/pi/rpi-rgb-led-matrix

~ $ sudo apt-tau hloov tshiab && sudo apt-tau nruab python2.7-dev nab nab-hauv ncoo -y

~ $ ua build-python

~ $ sudo ua install-python

thiab nruab lwm lub tsev qiv ntawv xav tau:

~ $ sudo easy_install pip

~ $ sudo pip nruab

Luam cov qauv samplebase.py los ntawm ~/rpi-rgb-led-matrix/bindings/python/kuaj/mus rau phau ntawv teev npe hauv tsev

Tau txais API qhov tseem ceeb tso npe dawb rau Qhib Huab Cua Qhia

Nruab tam sim no OWM Python qhwv rau PYthon 2.7 (ua tsaug rau CSPARPAGithub tus neeg siv)

~ $ sudo pip nruab git+https://github.com/csarpa/[email protected]

Tau txais Google daim ntawv pov thawj raws li cov lus qhia hauv Google daim ntawv qhia hnub API

Rau lub suab ua si nruab Pygame

~ $ sudo apt-tau nruab sej-pygame

RSS txau xav tau Feedparser teeb tsa

~ $ sudo pip nruab feedparser

theej kuv tsab ntawv ORAeng_131.py (lus Askiv) lossis ORAita_131.py (italian version) mus rau tsev teev npe

tsim cov ntawv tais ceev tseg rau suab thiab duab:

mkdir lus

mkdir ua

rub tawm thiab theej tag nrho cov ntaub ntawv-p.webp

www.dropbox.com/sh/nemyfcj1a1i18ic/AAB1W7I6lg5EgqL1gJZPWVTxa?dl=0

ntxiv koj daim ntawv pov thawj OWM rau kab 69 (API_key)

teeb nroog rau huab cua huab cua (txheeb xyuas yog tias nws tau them los ntawm OWM thiab lub npe raug lees txais) ntawm kab 213, 215

obs = owm.weather_at_place ('Napoli, IT')

fc = owm.three_hours_forecast ('Napoli, IT')

********************************** Hloov tshiab 28/7/2019 ********** **************************

Google Calendar API tshiab tsim teeb meem. Kuv tau daws tshem qee qhov qauv:

~ $ sudo apt-tau tshem tawm --purge nab hab sej-setuptools

~ $ sudo apt-tau txais autoremove sej-pyasn1

sim tsab ntawv khiav

~ $ sudo nab hab sej ORAeng_150.py # lossis ORAita_150.py rau italian version

thawj zaug tsab ntawv yuav nug GCAL kev tso cai. Nyem qhov txuas mus rau google api daim ntawv pov thawj. Muab kev tso cai ces, yog qhov ib txwm ua tau zoo, koj yuav pom lub moos pib.

vim muaj kev siv RAM ntau dhau tom qab ob peb teev, kuv tau sau tsab ntawv uas yooj yim rov pib ua sej tsab ntawv thaum RAM siv mus dhau qib pib. Tom qab ntawv theej rau lub tsev npe cov ntawv sau npe memcheck renaming rau memcheck.sh thiab ntxiv rau crontab -e ua ke tsab ntawv tseem ceeb

*/5 * * * * bash /home/pi/memcheck.sh@reboot sudo python /home/pi/ORAeng_150.py

Kauj Ruam 3: Cov Ntawv Sau

Cov ntawv tseem ceeb yuav tsum tau hloov kho raws li koj xav tau. Piv txwv tias OWM thiab Goggle Daim ntawv pov thawj daim ntawv pov thawj tau teev tseg raws li lawv cov lus qhia hauv API, qhov ntsuas tseem ceeb tshaj plaws yog:

daim ntawv teev cov txheej xwm teev txhua txhua teev ntawm feeb 2, 32 (saib kab ntawv 65)

huab cua thiab huab cua kwv yees ua tiav txhua teev ntawm feeb 7, 37 (saib kab ntawv 66)

rhuav xov xwm ua tiav txhua teev ntawm feeb 11 (saib kab ntawv 67)

xov xwm tawg rss channel. Sab hauv tsab ntawv tau teeb tsa Qhia RSS, tab sis tuaj yeem hloov pauv. (saib kab ntawv 366)

Pom tseeb, tsab ntawv muab ua ntej rau cov xwm txheej tshwm sim lossis ceeb toom ceeb toom. Qee zaum moos tsis ua nws cov yam ntxwv kom tsis txhob hla kev ua haujlwm.

Attiny85 qhib/kaw lub sijhawm xav tau yuav tsum tau ua kom tiav daim duab kos Tempo_V1_9_1Mhz_bugfix.ino.

Qhov no tso cai rau qhib lub cuab yeej thaum 8 teev sawv ntxov thiab tua thaum 23. Saib kev qhia paub ntxiv.

Kauj ruam 4: Circuit Court

Qhov Circuit
Qhov Circuit
Qhov Circuit
Qhov Circuit
Qhov Circuit
Qhov Circuit

Lub Circuit Court muaj 3 ntu

- lub zog qhib/tua lub sijhawm ua haujlwm los ntawm DS3231 tus qauv, Attiny85 thiab Mosfet

- hloov rau phau ntawv tswj hwm lub moos nta

- ntu txuas qhov twg yog cabling rau RGB LED Matrix cov ntaub ntawv thiab lub zog, lub suab nrov thiab Raspberry Pi

Tsis tau hais txog qhov sib faib hluav taws xob tiv thaiv uas tso cai rau RPI nyeem HIGH/LOW 5V teeb liab los ntawm Attiny85

Cov hloov pauv tau txuas nrog RPI tus pin GND ncaj qha siv sab hauv sab hauv

Attiny85 timer los ntawm kuv qhov haujlwm yav dhau los hu ua TEMPO. Yeej, DS3231 xa LOW teeb liab mus rau Attiny85 cuam tshuam tus pin uas ua rau nws tsaug zog. Thaum sawv ntxov Attiny85 xa HIGH teeb liab mus rau Mosfet transistor, qhib lub zog siv hluav taws xob rau RPI, LED Matrix thiab lub tshuab ua suab nrov (yog tias tsis txuas nrog PS ntxiv los ntawm kev xa tawm, raws li kuv teeb tsa kawg).

Txhawm rau kaw RPI kuv tsab ntawv xav txog tias RPI mloog cov cim digital ntawm tus pin 14, thaum nws HIGH, hu ua kaw lus txib. Tom qab ntawd RPI ua qhov txheej txheem kaw raug, tom qab ib feeb, Attiny85 rov qab mus pw hom thiab Mosfet tau txais LOW teeb liab uas tua tag nrho lub cuab yeej. Cov txheej txheem no ntxhib tab sis siv tau.

PIR module yog xaiv tau thiab txuas ncaj qha rau RPI GPIO.

Kuv teeb tsa xav tau cov hauv qab no RPI GPIO pins txuas nrog:

15 to PEB

14 rau Attiny85 tus pin 3 los ntawm qhov faib hluav taws xob

21 rau relay module

2 hloov (ENTER BUTTON)

3 kom hloov (CHANGE STATE BUTTON)

Teeb meem:

- suab nrov vim yog LED Matrix lub zog muab, daws siv PS me me nkaus xwb rau lub suab nrov nrov. Ib qho kev xaiv tso cai tso cai qhib lub suab nrov tsuas yog thaum xav tau. Qhov no tuaj yeem ua rau lub suab nrov nrov thaum nws qhib/tua.

Lub tshuab hluav taws xob tau txuas nrog siv phaj tooj liab, 3D tshuab luam ntawv, tus cim thiab ferric chloride.

Kauj ruam 5: Sib dhos

Sib dhos
Sib dhos
Sib dhos
Sib dhos
Sib dhos
Sib dhos
Sib dhos
Sib dhos

Kuv tau hloov kho qhov dav dav 40x50cm thav duab rau txoj haujlwm no ua ke 3D cov khoom luam tawm thiab qee qhov kev xaiv ntxiv.

Lub iav tau thaiv los ntawm lub qhov rais zaj duab xis hnub ci thiab cov ntawv yas khov. Led matrix yuav tsum tau khaws cia txog 1cm rau iav kom tsis txhob pom qhov dawb hauv leds. Cov ntsia hlau me me yog qhov tsim nyog raws li M3 txiv ntoo thiab ntsia liaj qhov rooj. Obligatory yog cov cables thiab cov thermosetting sheath.

Led matrices raug ntsia ntawm lub vaj huam sib luag tom qab ntawm tus ncej.

Kauj ruam 6: Thiab Tam sim no?

Thiab Tam sim no?
Thiab Tam sim no?
Thiab Tam sim no?
Thiab Tam sim no?

Cov kauj ruam tom ntej yuav yog txhawm rau ntsuas qhov ntsuas kub, ua kom lub peev xwm bluetooth thiab, vim li cas thiaj tsis, lub xov tooj cua siv internet kom txog thaum muaj peev xwm tshaj Raspberry Pi.

Nyob zoo

Clocks Contest
Clocks Contest
Clocks Contest
Clocks Contest

Runner Up hauv Kev Sib Tw Clocks

Pom zoo: