Cov txheej txheem:

Bitcoin Ticker Nrog Duab: 8 Kauj Ruam
Bitcoin Ticker Nrog Duab: 8 Kauj Ruam

Video: Bitcoin Ticker Nrog Duab: 8 Kauj Ruam

Video: Bitcoin Ticker Nrog Duab: 8 Kauj Ruam
Video: Xav rov ntsib koj ib zaug dua. 8/8/2018 2024, Hlis ntuj nqeg
Anonim
Bitcoin Ticker Nrog Duab
Bitcoin Ticker Nrog Duab

Kuv tau ua qhov no raws qhov phiaj xwm rau tus nqi BTC tus cim, uas tau txais cov ntaub ntawv tus nqi los ntawm coinmarketcap.com thaum chiv thawj sau los ntawm Brian Lough. Nws siv ESP8266, uas yog Arduino lub rooj sib tham sib xws uas los nrog ua hauv WiFi. Raws li nws tau piav qhia, txoj haujlwm yuav ua haujlwm ntawm ib qho ESP8266 cov cuab yeej thiab cov cai yuav tsum yooj yim hloov pauv rau txhua lub vijtsam uas koj muaj.

Hloov kho Lub Kaum Hli 2019:

Kuv tau ntxiv qee cov ntaub ntawv ntau ntxiv ntawm kev ua haujlwm ntawm Adafruit Huzzah ESP8266 pawg thawj coj. Nws kuj tseem tsim nyog sau cia qhov tshiab tuaj nrog USB-C txuas. Hauv kuv cov duab kuv tab tom siv lub rooj tsav xwm laus dua uas muaj tus lej cim npe thiab cais pawg thawj coj saib xyuas koj ib ntus rau nws rau qhov program nws. Kuv kuj tau ntxiv lub tswb ceeb toom ceeb toom rau koj (tej zaum) mus rau qhov nrawm lossis poob qis hauv tus nqi txheeb ze rau tus nqi hloov pauv dhau 10 txog 15 feeb dhau los. Kuv tau pom tias qhov no yog qhov kuv tab tom siv lub cuab yeej rau, raws li kev ceeb toom ntxov ntawm qee yam mus.

Nyem rau qhov no kom qhib qhov txuas rau Brian Lough project.

Kuj pom nws Cov Lus Qhia ntawm no

Nyem rau qhov no qhib qhov txuas

Kuv siv Adafruit Feather HUZZAH nrog ESP8266.

Kuv pib nrog nws cov cai thiab tom qab ntawv sau qhov teeb meem kuv tus kheej nrog rau qee qhov chaws kom tig tus nqi daj-nce lossis liab tus nqi-poob LED rau lossis tawm. Koj yuav tsum ua raws nws cov lus qhia kom zoo zoo, tau txais txhua qhov tseeb Arduino tsev qiv ntawv los ua txoj haujlwm no.

  • Kuv kuj tau sim ua ntxiv cov ntsuas ntawm lub vijtsam qhia thaum twg qhov kev hloov pauv yuav thim rov qab rau lub sijhawm luv luv.
  • Cov cim taw qhia qhov taw qhia no siv sijhawm kom ruaj khov yog li tsis quav ntsej thawj ob peb nyeem. Yog tias tus nqi ruaj khov, txhua qhov me ntsis wobble nce thiab nqis tsim cov ntsiab lus cuam tshuam yog li qhov no yuav xav tau ua haujlwm ntau dua.
  • Lub ntsug ntsug pib kho qhov siab. Yog tias muaj lub twj tso kua mis tam sim lossis tso pov tseg hauv tus nqi xws li qhov nkhaus muaj kev phom sij ntawm kev tawm sab saum toj lossis hauv qab ntawm kab duab, kab ntawv yuav rov pib dua los ntawm sab laug nrog rov kho qhov ntsug.
  • Qhov laj thawj kuv tau ua qhov no yog li ntawd txawm tias thaum tus nqi ruaj khov, kev hloov pauv me me hauv tus nqi ib txwm pom raws li kev hloov pauv ntawm txoj kab nkhaus.
  • 2 tus lej kawg ntawm ob peb tus nqi yav dhau los tau qhia ntawm sab xis, tsis ntev los no nyob rau saum toj.
  • Qhov feem pua hloov x10 txij li nyeem ntawv dhau los, kwv yees kwv yees li 2 feeb ua ntej kuj tseem tso tawm sab xis yog li koj tuaj yeem pom qhov hloov pauv sai sai hauv tus nqi ntawm kev hloov pauv tus nqi.

Qhov:

Kuv siv Adafruit Feather HUZZAH nrog ESP8266

www.adafruit.com/product/2821

Ib qho piv txwv ntawm qhov tsim nyog OLED npo yog qhov no (saib rau I2C 128x64 OLED zaub)

www.ebay.com/p/0-96-in-I2c-IIC-Serial-128x…

Kuv txoj kab hluav taws xob yog raws nraim li tau piav qhia los ntawm Brian Lough nrog ntxiv ntawm ob lub LEDs. Txhua qhov ntawm no xav tau txuas rau hauv kab nrog 330 Ohm resistor txhawm rau txwv qhov tam sim no dhau mus rau 12mA lossis tsawg dua, vim qhov no yog qhov siab tshaj plaws ntawm tus pin ESP8266 yuav xa.

Kuv lub thawv ntawv yog 3D luam tawm thiab rub tawm tau los ntawm Thingiverse. Nws tau piav raws li Anemone Display Tentacle (NodeMCU v2 Display Case) los ntawm Marc Trems hauv Montreal. Nws xav tau qee qhov ua tiav ntawm lub vijtsam qhov siab kom haum rau kuv cov zaub thiab nws muaj rau rub tawm ntawm no.

Kauj Ruam 1: Txheeb Xyuas Qhov Pom ntawm Qhov Screen

Annotated Saib ntawm lub Vijtsam
Annotated Saib ntawm lub Vijtsam

Nov yog qhov pom zoo ntawm lub vijtsam uas qhia cov yam ntxwv no hauv kev nqis tes ua.

NCO NTSOOV Lub Kaum Hli 2019:

Kuv tau hloov cov ntxaij vab tshaus me ntsis txij li daim duab no tau yees (saib cov duab hauv nplooj ntawv npe).

2 tus lej kawg ntawm ob peb tus nqi yav dhau los tau qhia ntawm sab xis, tsis ntev los no nyob rau sab saum toj ntawm kab ntawv ntawm 4 qhov tseem ceeb.

Qhov feem pua hloov x10 txij li kev nyeem yav dhau los kwv yees li 2 feeb ua ntej kuj tseem tso tawm sab xis sab xis nrog D (Kev Sib Txawv) nyob rau hauv pem hauv ntej ntawm nws yog li koj tuaj yeem pom qhov hloov pauv sai sai.

Tus nqi sab xis nrog Av nyob rau hauv pem hauv ntej ntawm nws yog Av-erage ntawm ob peb qhov kev hloov pauv zaum kawg (x10) qhov tseem ceeb. Yog tias D tus nqi sib txawv ntawm tus nqi Av los ntawm ntau dua qhov txiaj ntsig ntawm 0.8 lossis -0.8, qhov no txhais tau tias kev hloov pauv sai tau tshwm sim sai sai. Qhov no yuav ua rau lub vijtsam ci, LED yuav nyem thiab ALERT teeb liab tshwm rau ntawm lub vijtsam. Qhov no qhia koj kom xyuam xim thiab ua lag luam lossis tsis yog li koj xav tau.

Kauj Ruam 2: Yuav Ua Li Cas Muab Cov Lus Teb Hauv Qhov Teeb Meem Sib txawv

Yuav Ua Li Cas Cov Lus Teb Hauv Qhov Teeb Meem Sib Txawv
Yuav Ua Li Cas Cov Lus Teb Hauv Qhov Teeb Meem Sib Txawv

Nov yog 4 cov duab coj los sib txawv.

Kuv tuaj yeem hloov pauv txoj cai los ua cov cim taw qhia qhov pom pom tsuas yog tshwm sim yog tias kev hloov pauv tus nqi tau txhawb nqa rau lub sijhawm ntev dua li tam sim no.

Kauj Ruam 3: OLED Screen

OLED Screen
OLED Screen

Cov no tau npaj txhij thiab tshaj tawm raws li I2C 126x64 OLED cov qauv teeb tsa.

Saib daim kab xev kab lus hauv kev qhia los ntawm Brian Lough:

Hauv kuv tus lej Kuv siv Adafruit OLED lub tsev qiv ntawv ntau dua li Brian Lough siv:

Kauj ruam 4: OLED Screen

OLED Screen
OLED Screen

Lub tsev qiv ntawv tuaj yeem pom, muaj rau rub tawm, nyob rau sab saum toj ntawm lub vijtsam ntawm cov npe hauv Arduino tshawb rau cov tsev qiv ntawv (qhib Tswj Kev Xaiv Tsev Qiv hauv Arduino).

Ob lub LEDs uas qhia yog tias tus nqi nce lossis poob yog txhua qhov txuas hauv kab nrog 330 Ohm resistor txhawm rau txwv qhov kev kos tam sim no ntawm txhua tus rau tsawg dua 12 mA.

Liab lossis "ntog" LED muaj tus pin nyob ib sab ntawm nws txoj kab nkhaus (+) sab txuas, ntawm 330 Ohm resistor, mus rau Pin 12 ntawm Adafruit Feather HUZZAH nrog ESP8266 thiab xaim txuas ib sab tiaj tiaj txuas nrog ib qho ntawm GND tus pin

Rau "tus nqi nce" LED, cov xov hlau zoo ib yam tab sis tus pin 14 tau siv ntawm Adafruit Feather HUZZAH nrog ESP8266.

Kauj ruam 5: Code

Code
Code

Tus lej Arduino tau txuas rau nplooj ntawv tom ntej.

Hauv tus lej no koj yuav tsum tau ntxig koj lub npe WiFi network thiab koj lub network tseem ceeb hauv cov chaw uas pom hauv daim duab no.

Kauj Ruam 6: Arduino Code

Cov cai tau txuas ntawm no txhawm rau upload rau koj lub cuab yeej

Kauj Ruam 7: Xav paub ntau ntxiv txog Chaw Thauj Khoom Code rau Feather Huzzah

Xav paub ntau ntxiv txog Chaw Thauj Khoom Code Rau Feather Huzzah
Xav paub ntau ntxiv txog Chaw Thauj Khoom Code Rau Feather Huzzah

Cov ntawv sau ntxiv ntawm qhov no:

Txhawm rau npaj lub rooj tsavxwm kom tau txais cov cai los ntawm lub khoos phis tawj sib txuas, koj yuav tsum nias ib lub pob ces, thaum tuav nws, nyem qhov thib ob. Nws tsis tshwm sim tau. Koj yuav tsum ua qhov no, txwv tsis pub txoj haujlwm yuav tsis thauj khoom kom raug.

Kauj Ruam 8: Nta Ntxiv Hauv Lub Kaum Hli 2019

Nta Ntxiv Ntxiv rau Lub Kaum Hli 2019
Nta Ntxiv Ntxiv rau Lub Kaum Hli 2019

Kuv tau pom tias cov cuab yeej no muaj txiaj ntsig zoo rau ntawm lub rooj lossis zoo sib xws thaum ua haujlwm ntawm lwm yam. Yog tias tus nqi BTC ruaj khov, txav mus thiab nqis tsuas yog tus nqi me me, raws li qhia los ntawm cov kab ncaj ncaj ntawm kab kab, kev nce lossis nqis ib ntus yog qhov ua rau koj lub qhov muag pom tias lub twj tso kua mis lossis cov khoom pov tseg hauv tus nqi pib.

Tam sim no kuv tau ntxiv cov cai los ntsuas tus nqi nruab nrab hloov pauv ntawm ob peb qhov kev nyeem dhau los, thiab tom qab ntawd qhia kev ceeb toom yog tias muaj qhov hloov pauv tam sim ntawd los ntawm tus nqi nruab nrab ntau dua 0.08, tus nqi kuv tau los ntawm kev sim thiab ua yuam kev. Kuv tuaj yeem kho qhov no ntxiv tom qab.

Thaum tus nqi dheev hloov pauv loj, piv rau qhov hloov pauv ntawm ob peb qhov kev nyeem yav dhau los, lub vijtsam yuav nyem dawb, LED yuav nyem thiab cov ntawv ALERT yuav tshwm ntawm lub vijtsam.

Nws nyob ntawm koj qhov kev txiav txim koj ua raws li qhov tshwm sim tab sis nws yuav tsawg kawg tej zaum ceeb toom koj qee yam tab tom yuav los lossis yuav tshwm sim.

Pom zoo: