Cov txheej txheem:

Bitcoin Tracker Siv Raspberry Pi: 14 Kauj Ruam (nrog Duab)
Bitcoin Tracker Siv Raspberry Pi: 14 Kauj Ruam (nrog Duab)

Video: Bitcoin Tracker Siv Raspberry Pi: 14 Kauj Ruam (nrog Duab)

Video: Bitcoin Tracker Siv Raspberry Pi: 14 Kauj Ruam (nrog Duab)
Video: Штукатурка стен - самое полное видео! Переделка хрущевки от А до Я. #5 2024, Hlis ntuj nqeg
Anonim
Image
Image
Bitcoin Tracker Siv Raspberry Pi
Bitcoin Tracker Siv Raspberry Pi

Nco ntsoov Bitcoin?…. kev faib nyiaj txiag, lub hnub nyoog tshiab txiaj, uas tau pauv ib zaug ntawm $ 19K uas xav tias yuav hloov pauv kev them nqi thoob ntiaj teb. Zoo, nws hloov tawm tias muaj tsawg dua 3, 585, 825 Bitcoins tshuav rau kuv. Nyob ib ncig ntawm ib xyoos dhau los, Kuv tau hla cov lus tshaj tawm no ntawm r/bitcoin uas tham txog kev tsim Bitcoin Clock hla txoj kev los ntawm NYC Lub Sij Hawm Muaj Tseeb. Tab sis tsis txhob suav suav zoo li lub moos them nuj nqis, Bitcoin Clock yuav suav pes tsawg bitcoin tseem yuav tsum tau khawb. Qhov no ua rau kuv xav.

Qhia txog Bitcoin Bar, lub cev LED Dashboard uas qhia cov ntaub ntawv tseem ceeb ntawm Bitcoin xws li Tus Nqi, Tag Nrho Bitcoins sab laug rau kuv, Thaiv kom txog rau thaum tus nqi zog yog ib nrab, Hash tus nqi, thiab lwm yam.

Sau npe hauv YouTube: Jonty

Pab txhawb: Puas yog koj yog tus programmer, engineer lossis tus tsim qauv uas muaj lub tswv yim zoo rau tus yam ntxwv tshiab hauv Bitcoin Bar? Tej zaum koj muaj lub tswv yim zoo rau kev kho kab laum? Xav tias dawb los tuav cov cai los ntawm Github thiab tinker nrog nws. Bitcoin Bar: GitHub

Kauj Ruam 1: Qhov Yuav Tsum Tau

Yam Yuav Tsum Tau
Yam Yuav Tsum Tau
Yam Yuav Tsum Tau
Yam Yuav Tsum Tau
Yam Yuav Tsum Tau
Yam Yuav Tsum Tau
Yam Yuav Tsum Tau
Yam Yuav Tsum Tau

Cov Khoom Siv Hluav Taws Xob: Raspberry Pi 3 - AliExpressLED Matrix Zaub - AliExpressWhite LED 10mm - AliExpressResistor 100 -ohm - AliExpress

Cov Cuab Yeej: Soldering Iron Station - AliExpressSolder Hlau - AliExpress

Lwm Yam Khoom

  • 5 hli MDF & 5 hli Acrylic
  • Kua nplaum
  • Xim

Kauj Ruam 2: Kev Tsim Hluav Taws Xob

Tsim Hauv
Tsim Hauv

Serial Peripheral Interface (SPI) yog lub npav npav siv feem ntau siv los xa cov ntaub ntawv ntawm microcontrollers thiab cov khoom siv me me xws li cov lus qhia & cov cim. Nws siv cais cov moos thiab cov ntaub ntawv, nrog rau cov kab xaiv kab los xaiv lub cuab yeej uas koj xav tham nrog. LED Matrix Display tau txuas nrog Raspberry Pi's SPI pins.

Raspberry Pi 3B LED Matrix Zaub
5 V VCC
GND GND
GPIO 10 (MOSI) DIN
GPIO 8 (SPI CE0) CS
GPIO 11 (SPI CLK) CLK

Kauj ruam 3: Software

Kev vam khom: Web scraping

  1. Kev thov yog lub tsev qiv ntawv HTTP zoo nkauj thiab yooj yim rau Python. Thov Kev Txhim Kho & Cov Ntaub Ntawv.
  2. Cov kua zaub zoo nkauj 4 yog lub tsev qiv ntawv Python rau rub cov ntaub ntawv tawm ntawm HTML thiab XML cov ntaub ntawv. Zoo nkauj Soup Installation & Cov ntaub ntawv.

Python Library rau Max7219 LED Matrix Kev teeb tsa Los ntawm Richard Hull

Teeb & Kev teeb tsa: Thaum txhua qhov ua ntej tau ua tiav tau teeb tsa, rub tawm/clone qhov GitHub Repository. Txuas Cov Zaub rau Raspberry Pi raws li qhia hauv kab lus. Khiav lub program loj bcbar.py

Bitcoin Bar tuaj yeem tso tawm txog 19 qhov sib txawv ntawm cov ntaub ntawv ntawm lub sijhawm tiag tiag. Cov no tuaj yeem teeb tsa kom pom nyob rau hauv ib qho kev txiav txim lossis ib ntu. Txoj haujlwm tseem ceeb qhia tag nrho 19 cov ntaub ntawv tsis sib xws.

Cov ntaub ntawv tsis tuaj yeem tshwm ntawm tus kheej & lawv qhov kev txiav txim tuaj yeem hloov pauv los ntawm kev teeb tsa kab hauv qab no hauv txoj haujlwm tseem ceeb:

show_message (ntaus ntawv, faib , sau = "dawb", font = proportional (LCD_FONT), scroll_delay = 0.02)

Tus nqi ntawm kuv yuav txiav txim siab cov ntaub ntawv ntsuas ntsuas tau tshwm. Bitcoin Bar tuaj yeem tso saib cov ntaub ntawv ntawm lub sijhawm tiag tiag hauv qab no:

INSERT TABLE NROG PARAMETERS

Scrolling Speed & Static TextBy los kho tus nqi ntawm scroll_delay, qhov nrawm tuaj yeem hloov pauv. Piv txwv led_test.py siv cov ntawv ua kom pom cov ntawv zoo li qub.

Tus Nqi Txwv Cov ntaub ntawv tsis yog web scrapped los ntawm bitcoinblockhalf.com. Kuv tau txwv tus naj npawb ntawm kev mus ntsib lub vev xaib ib zaug ib teev kom lub vev xaib tsis muaj lub nra hnyav nrog cov tsheb tsis tsim nyog. Kuv siv lub vev xaib no txij li nws sau ob peb ntawm cov ntaub ntawv no tsis los ntawm ntau lwm yam API's & tuav lawv nruab nrab. Txheeb xyuas cov vev xaib cov chaw khaws khoom kom paub ntau ntxiv.

Khiav qhov program ntawm Startup/Boot

Kuv tau ua raws cov ntaub ntawv RasPi uas hloov kho rc.local cov ntaub ntawv txhawm rau txhawm rau sau Python tsab ntawv ntawm khau raj.

Pab txhawb: Puas yog koj yog tus programmer, engineer lossis tus tsim qauv uas muaj lub tswv yim zoo rau tus yam ntxwv tshiab hauv Bitcoin Bar? Tej zaum koj muaj lub tswv yim zoo rau kev kho kab laum? Xav tias dawb los tuav cov cai los ntawm Github thiab tinker nrog nws. Bitcoin Bar: GitHub

Kauj Ruam 4: Lub Rooj Sib Tham Txhua Yam

Los Ua Ke Neeg Kho Tshuab
Los Ua Ke Neeg Kho Tshuab
Los Ua Ke Neeg Kho Tshuab
Los Ua Ke Neeg Kho Tshuab
Los Ua Ke Neeg Kho Tshuab
Los Ua Ke Neeg Kho Tshuab

Bitcoin Bar's enclosure muaj lub thawv sib txuas uas yog laser txiav los ntawm 5mm MDF. Lub Vaj Huam Sib Luag Pem Hauv Ntej muaj ob qhov qhib: ib qho rau LED Zaub & lwm qhov rau Acrylic Diffuser. Qhov Back Vaj Huam Sib Luag muaj lub qhov rau lub zog siv hluav taws xob USB cable uas tau txuas rau hauv Raspberry Pi. Lub Vaj Huam Sib Luag Hauv qab muaj 4 qhov uas Raspberry Pi tau teeb tsa ib yam nkaus.

Koj tuaj yeem pom cov ntaub ntawv txiav laser (rau ob qho tib si MDF & Acrylic) hauv qab no lossis hauv qhov txuas: Bitcoin Tracker: Laser Txiav

Kauj ruam 5: Pleev xim rau

Xim lub qhov rooj
Xim lub qhov rooj
Xim lub qhov rooj
Xim lub qhov rooj
Xim lub qhov rooj
Xim lub qhov rooj

Pleev xim rau MDF thaiv kom tiv thaiv nws los ntawm kev cuam tshuam los ntawm cov av noo. Kuv siv cov xim acrylic los ua li ntawd.

Kuv xaiv los pleev xim nws zoo li lub txhab nyiaj liab liab.

Kauj Ruam 6: Kaw Acrylic Diffuser

Khaws lub Acrylic Diffuser
Khaws lub Acrylic Diffuser
Khaws lub Acrylic Diffuser
Khaws lub Acrylic Diffuser
Khaws lub Acrylic Diffuser
Khaws lub Acrylic Diffuser

Thaum cov xim tau qhuav lawm, koj tuaj yeem pib teeb tsa txoj haujlwm ua ke.

Khaws lub voj voos acrylic diffuser rau hauv nws lub qhov rau ntawm Pem Hauv Ntej Vaj Huam Sib Luag ntawm MDF Box.

Cov Laser Txiav cov ntaub ntawv tuaj yeem pom ntawm no: Bitcoin Tracker: Laser Txiav

Kauj Ruam 7: Khaws LED Matrix Zaub

Txhim kho LED Matrix Display
Txhim kho LED Matrix Display
Txhim kho LED Matrix Display
Txhim kho LED Matrix Display
Txhim kho LED Matrix Display
Txhim kho LED Matrix Display

Muab thiab lo rau LED matrix zaub rau hauv nws lub qhov rau ntawm Lub Vaj Huam Sib Luag Pem Hauv Ntej ntawm MDF Box. Nco ntsoov tias nws tau ua raws yaug nrog lub hauv ntej ntawm lub vaj huam sib luag.

Yog tias koj siv cov qauv sib txawv zaub, koj yuav tsum hloov pauv qhov tsim nyog rau qhov qhov ntev hauv cov ntaub ntawv txiav laser.

Kauj Ruam 8: Bitcoin Sticker

Bitcoin Sticker
Bitcoin Sticker
Bitcoin Sticker
Bitcoin Sticker
Bitcoin Sticker
Bitcoin Sticker

Txhawm rau ua kom lub ntsej muag ci ntsa iab Bitcoin logo, luam tawm Bitcoin logo mus rau ib daim ntawv nplaum nplaum.

Txiav lub logo ncig thiab lo nws mus rau acrylic diffuser ntawm Pem Hauv Ntej Vaj Huam Sib Luag ntawm MDF lub thawv.

Kauj Ruam 9: Tua lub LED

Solder lub LED
Solder lub LED
Solder lub LED
Solder lub LED

Ib lub 10 hli Dawb LED tau siv los teeb lub Bitcoin Logo los ntawm acrylic diffuser.

Kuv tau siv ob tus poj niam lub taub hau txuas rau LED kom nws tuaj yeem txuas tau yooj yim rau Raspberry Pi. Kuv ua kom ntseeg tau ntxiv qhov tiv thaiv nruab nrab ntawm LED's anode (+) thiab +3.3V ntawm Raspberry Pi raws li qhia hauv Circuit Schematic.

Kuv kaw qhov sib koom ua ke nrog ib qho me me ntawm heatshrink.

Kauj ruam 10: Mount Raspberry Pi

Mount Raspberry Pi
Mount Raspberry Pi
Mount Raspberry Pi
Mount Raspberry Pi
Mount Raspberry Pi
Mount Raspberry Pi

Kuv siv cov txiv ntoo & cov ntsia hlau txhawm rau txhawm rau Raspberry Pi 3 mus rau Hauv Qab Vaj Huam Sib Luag ntawm MDF Box. Lub vaj huam sib luag no muaj 4 qhov uas tau txiav laser rau hauv nws xws li lub micro-USB chaw nres nkoj ntawm Raspberry Pi 3 ua tau zoo nrog lub qhov txiav tawm hauv Lub Vaj Huam Sib Luag Rov Qab ntawm MDF lub thawv txhais tau tias rau USB lub zog hloov pauv lub xov tooj.

Kuv tseem yuav suav nrog Laser txiav cov ntaub ntawv rau Raspberry Pi Zero yav tom ntej.

Kauj Ruam 11: Txuas Cov Khoom Siv Hluav Taws Xob

Txuas Electronics
Txuas Electronics
Txuas Electronics
Txuas Electronics
Txuas Electronics
Txuas Electronics
Txuas Electronics
Txuas Electronics

Raws li qhia hauv Schematic, Kuv txuas 10mm LED rau Raspberry Pi thiab tseem txuas nrog LED Matrix Display rau SPI pins ntawm Raspberry Pi.

Kauj Ruam 12: Khaws lub LED

Teeb lub LED
Teeb lub LED
Teeb lub LED
Teeb lub LED

Thaum koj tau txuas tag nrho cov khoom siv hluav taws xob raws li cov txheej txheem. Muab 10mm LED tso rau hauv qhov chaw xws li thaum nws tig rau, lub teeb pom kev zoo rau acrylic diffuser tusyees.

Kuv daig ib daim duab me me hauv qab lub LED kom qaij nws xws li cov acrylic diffuser tau teeb pom kev zoo ib yam.

Kauj Ruam 13: Hwj Chim Nws

Fais Fab Nws
Fais Fab Nws

Thaum tag nrho cov khoom siv hluav taws xob tau txuas nrog & nyam rau hauv qhov chaw, xov xov USB Lub hwj chim adapter xaim hla lub qhov hauv Lub Vaj Huam Sib Luag Rov Qab & txuas nws mus rau Raspberry Pi.

Thaum koj qhib ON cov khoom siv, Bitcoin Bar yuav tsum cia li tso saib qhov tseeb Bitcoin hloov pauv thiab cov ntaub ntawv.

Kauj ruam 14:

Duab
Duab
Duab
Duab
Duab
Duab
Duab
Duab

Pab txhawb nqa ntau txoj haujlwm zoo li no los ntawm Kev Sau Npe & Ua Raws Kuv Hauv: YouTube: JontyGitHub: Jonty Qhia: Jonty

Yog tias koj muaj kev ua xyem xyav, lus nug lossis lus qhia rau txoj haujlwm no, tawm hauv lawv cov lus hauv qab no.

Pom zoo: