Cov txheej txheem:

WiFi 7 Segment LED Moos: 3 Kauj Ruam (nrog Duab)
WiFi 7 Segment LED Moos: 3 Kauj Ruam (nrog Duab)

Video: WiFi 7 Segment LED Moos: 3 Kauj Ruam (nrog Duab)

Video: WiFi 7 Segment LED Moos: 3 Kauj Ruam (nrog Duab)
Video: Muaj tsis ntshai tuag 7/1/2018 2024, Kaum ib hlis
Anonim
WiFi 7 Segment LED Moos
WiFi 7 Segment LED Moos
WiFi 7 Segment LED Moos
WiFi 7 Segment LED Moos
WiFi 7 Segment LED Moos
WiFi 7 Segment LED Moos
WiFi 7 Segment LED Moos
WiFi 7 Segment LED Moos

Qhov project: WiFi 7 Segment LED Moos

Hnub tim: Kaum Ib Hlis - Kaum Ob Hlis 2019

Lub 7 Segment Clock siv ib qho Anode 5V muab los ntawm 22ohm resistors raws li Shift Register tswj. Qhov laj thawj tseem ceeb rau kev tsim lub moos no yog thawj zaug tau rov siv ob lub moos nyob ib sab nrog 4 X 7 Segment Displays thiab qhov laj thawj thib ob suav nrog Wemos R1 D2 pawg thawj coj txuas rau uas yog kev thov hauv Android. Daim Ntawv Thov Android siv WiFi kev sib txuas lus los xa thiab txais cov lus txib mus thiab los ntawm lub moos. Daim Ntawv Thov Android tuaj yeem "SET" lub sijhawm thiab hnub tim ntawm lub moos thiab "Tau" lub sijhawm tam sim no, hnub tim, kub, siab, thiab av noo.

Ib qho ntxiv, thiab kev pab los ntawm David ntawm Nixie Google Group uas ua siab zoo muab rau kuv nrog cov txheej txheem ntawm qhov tsim nyog 74HC595 SPI 16 hloov npe thiab 74HC245 Octal tri-xeev transceiver sau npe raws li Circuit Court los txhawb 8 X 7 ntu LEDs siv cov lej sib npaug txoj kev tso saib Ib lub rooj tsav xwm PCB yooj yim tau tsim los siv ob lub 74HC595 20 tus pin IC chips nyob ntawm 20 tus neeg nqa khoom thiab ob lub 74HC595 16 tus pin IC chips nyob ntawm 16 tus neeg nqa khoom. Kev tsim tawm ntawm ib sab ntawm Circuit tau siv los txhawb Anodes ntawm txhua ntawm 8 x 7 Segment LEDs thiab lwm sab ntawm Circuit tau siv los txhawb 7 ntu, ntawm 22ohm resistors hauv koob, ntxiv rau cov lej zauv.

Khoom siv

Cov Khoom Siv

1. WEMOS R1 D2 daim npav Arduino nrog rau ntawm board ESP8266 WiFi module

2. Lub Teeb Pom Kev Tiv Thaiv ntxiv rau 22ohm resistor

3. Ob tus ncej hloov, cov xov hlau xim, PCB poj niam ntsaws, heatshrink, PCB board, 3mm yas txhawb nqa

4. LED ntxiv rau 330ohm resistor

5. BME280 ntsuas kub

6. MP3-TF-16P player ntxiv rau 22ohm resistor

7. 4 Ohm 5W tus hais lus

8. 16 X 2 kab LCD screen siv IC2 kev sib txuas lus (xaiv tau, siv feem ntau rau kev sim)

9. RTC moos DS3231

10. 2 X DC Step Down 12V - 5V

11. 2 X 74HC245 IC Chip ntxiv rau 20 tus neeg nqa khoom

12. 2 X 74FC595 IC Chip ntxiv rau 16 tus neeg nqa khoom

13. 8 X 22ohm resistor

Kauj Ruam 1: Kev Tsim Kho

Kev tsim kho
Kev tsim kho
Kev tsim kho
Kev tsim kho
Kev tsim kho
Kev tsim kho

Cov ntawv txuas nrog Fritzing daim duab ntawm kev tsim lub moos qhia WEMOS daim npav, zaub LCD, MP3 player, BME280 sensor, ob kauj ruam-nqis DC cov khoom siv, RTC DS3231 moos, thiab thaum kawg Lub Teeb Pom Kev Tiv Thaiv. Daim duab Fritzing thib ob qhia txog Shift thiab Octal sau npe-raws Circuit thiab nws kev sib txuas nrog WEMOS. Peb daim ntawv txuas npog 7 Segments LED, 74HC245, thiab 74HC595 IC Chips.

Duab
Duab

Lub moos rooj tau tsim los ntawm mahogany nrog 8 lub thawv yooj yim tsim los puag ncig txhua ntawm 7 ntu LEDs. Txhua lub thawv txuas nrog rau tom ntej siv 15mm steel raj uas hla txawm hais tias txhua lub thawv thiab ntawm lub thawv hollow mahogany uas txuas cov kab hlau kab rov tav rau lub raj hlau ntsug uas txhawb nqa lub moos saib. Cov raj hlau tau kho rau lub npov hauv qab uas muaj cov khoom txhawb nqa lub moos. Cov xov hlau txuas rau txhua tus LED tau pub txawm tias txhua lub thawv thiab ntawm lub raj hlau nqes mus rau cov kab ke hauv qab no, ib txheej ntawm yim ntu ntu tswj cov xov hluav taws xob pub rau hauv ib qho kev qhia thiab txheej thib ob ntawm yim xov hlau, tswj anode, tau pub nyob rau hauv kev coj rov qab.

Duab
Duab
Duab
Duab

Cov duab ntau yam qhia qhov txheej txheem ntawm cov khoom siv yooj yim mus rau lub moos lub hauv paus pawg thawj coj saib. Kev siv daim phiaj faib khoom rau ob qho I2C kev sib txuas lus thiab 5V lub zog muaj qhov zoo ntawm tsuas yog xav tau ob tus pin ntawm WeMOS board thiab tso cai rau ob DC-DC nqis nqis 12V mus rau 5V khoom siv. Thawj qhov khoom siv los txhawb lub rooj tsavxwm, LCD, RTC, MP3 player thiab lwm yam.

Kauj ruam 2: SOFTWARE

SOFTWARE
SOFTWARE
SOFTWARE
SOFTWARE
SOFTWARE
SOFTWARE

Cov ntawv txuas nrog suav nrog ICO Arduino cov ntaub ntawv thiab Android App. Thawj cov ntaub ntawv ICO muaj cov cai uas tso cai rau WEMOS los tswj hwm BME280, RTC Moos, thiab LCD npo. Txoj haujlwm no tau muab sijhawm rau kuv los tsim ntawm thawj qhov haujlwm Wifi Robot. WEMOS D1 R2 Arduino software tau ua raws lub moos dhau los uas tau siv pob khoom sib txuas Wifi siv qhov yooj yim "GET" thiab "SET" tus tswv tsev hais kom ua ntej tau txais lub sijhawm tam sim no thiab thib ob teeb tsa lub sijhawm tam sim no thiab sijhawm, raws li tso tawm ntawm App., yog siv los hloov kho lub moos nyob deb. Cov ntaub ntawv ICO thib ob, "WifiAccesPoint" yog qhov kev sim yooj yim niaj hnub los tsim kom pom tias cov xa thiab xa cov hlua raug ua haujlwm raug.

NCO TSEG: Tam sim no kuv tsis tuaj yeem rub cov ntawv hauv qab no "app-release.apk". Kuv tab tom tos pab txhawb nqa los kho qhov teeb meem no

Nws yuav tsum tau sau tseg tias version 1.8.10 Arduino IDE tau siv thiab pawg thawj coj xaiv yog "LOLIN (WEMOS) D1 R2 & Mini". Cov tsev qiv ntawv tshwj xeeb hauv qab no tau rub tawm: Wire.h, LiquidCrystal_I2C.h, SoftwareSerial.h, DFRobotDFPlayerMini.h, SparkFunBME280.h, RTClib.h, ESP8266WiFi. H, WiFiClient.h, thiab ESP8266WebSErver.h Lub Wifi nkag mus tau tsim los ntawm WEMOS ESP8266 nti hu ua "WifiClock" thiab muaj tus lej "password". Nws muaj peev xwm hloov kho lub moos tsis siv qhov tshwj xeeb Android App.rather siv tus qauv lub vev xaib tus saib, nrog rau "Wificlock" nkag mus rau qhov chaw xaiv, thiab nkag mus rau https hais kom ua raws li hauv qab no:

Rau SET hais kom ua:

"https://192.168.4.1/SET?PARA1=HH-MM-SS&PARA2=DD-MM-YY&PARA3=VV&PARA4=Y&PARA5=Y"

Qhov twg lub sijhawm thiab hnub tau nkag los siv cov qauv txheej txheem thiab "VV" yog 0-30 suab nrov, thawj "Y" tom ntej PARA4 yog "Y" lossis "N" txhawm rau xaiv lub suab nrov los ua qhov kev xaiv thiab thib ob "Y" 'nyob ib sab ntawm PARA5 yog "Y" lossis "N" los xaiv qhov Kev Xaiv Hmo Ntuj uas kaw qhov rooj thaum lub sijhawm tsaus ntuj.

Rau GET hais kom ua:

"https://192.168.4.1/GET"

Qhov no xa rov qab cov ntaub ntawv los ntawm lub moos hauv cov qauv hauv qab no:

HH, MM, SS, DD, MM, 20, YY, HHH, HH, PPP, PP, CC, CC, CC, FF, FF, VV, Y, Y

Qhov twg "HHH, HH" yog qhov ntsuas cov av noo, "PPP, PP" yog qhov ntsuas siab, "CC, CC" yog qhov kub nyob hauv Centigrade, "FF, FF" yog qhov kub hauv Fahrenheit, "VV" yog lub suab nrov, "Y," yog lub tswb xav tau, thiab qhov thib ob "Y," Yog Hmo Hmo Ntuj xav tau.

Nws yuav tsum tau sau tseg tias Cov Ntsiav Tshuaj Cov Chaw Pabcuam Qhov Chaw yuav tsum tau qhib los yog txwv tsis pub lub WiFi scan khawm yuav tsis rov qab muaj cov tes hauj lwm uas suav nrog qhov tseeb WiFiClock network

Duab
Duab
Duab
Duab
Duab
Duab
Duab
Duab
Duab
Duab

Kauj Ruam 3: ZOO TSHAJ PLAWS

Qhov no tau yog qhov haujlwm txaus nyiam heev vim nws tau coj ua ke ob lub ntsiab lus tshiab, uas yog siv Wifi raws li txoj hauv kev hloov kho lub moos, tsis yog siv cov keyboard. Qhov thib ob siv Shift thiab Octal sau npe raws kev tswj hwm Circuit Court rau 7 ntu qhia. Kuv pom nws txaus siab heev kom rov siv tau cov cuab yeej qub uas tsis tau siv thiab coj nws rov qab los rau lub neej. xav tau los ntawm WeMOS ESP8266 nti thiab nws lub zog txwv. Lwm txoj hauv kev rau kev hloov pauv raws tus neeg tsav tsheb kuv tau siv yog ib qho siv MAX7219 IC zaub tsav tsheb nti uas tau tsim los muab 5V cov khoom siv rau 7 ntu raws cov lus qhia.

Kuv cov phiaj xwm tom ntej no tau los txog qhov no suav nrog cov khoom qub qub IN-4 Lavxias Nixie tubes thiab INS-1 Neon tubes. Kuv npaj siab yuav rov qab mus rau MAXIM ntau ntawm IC tsav tsheb nti thiab hlua ua ke plaub ntawm cov chips no txhawm rau tsav IN-4 thiab Neon raws cov lus qhia.

Pom zoo: