Cov txheej txheem:

SMS Saib -- Dot Matrix Zaub -- MAX7219 -- - SIM800L: 8 Kauj Ruam (nrog Duab)
SMS Saib -- Dot Matrix Zaub -- MAX7219 -- - SIM800L: 8 Kauj Ruam (nrog Duab)

Video: SMS Saib -- Dot Matrix Zaub -- MAX7219 -- - SIM800L: 8 Kauj Ruam (nrog Duab)

Video: SMS Saib -- Dot Matrix Zaub -- MAX7219 -- - SIM800L: 8 Kauj Ruam (nrog Duab)
Video: Dot matrix printers aren't dead!! 2024, Hlis ntuj nqeg
Anonim
SMS Saib || Dot Matrix Zaub || MAX7219 || | SIM 800L
SMS Saib || Dot Matrix Zaub || MAX7219 || | SIM 800L

Hauv cov vis dis aus no, koj yuav kawm paub siv GSM module, dot matrix zaub thiab yuav ua li cas tso saib cov ntawv ntxig rau ntawm nws. Tom qab ntawd peb yuav sib koom ua ke los tso saib cov lus tau txais ntau dua GSM SIM mus rau cov cim teev hauv teev. Nws yog qhov yooj yim haum thiab koj tuaj yeem tsim nws rau koj lub tsev kawm lossis phiaj xwm phiaj xwm.

Yog li tsis tas yuav nkim sijhawm ntxiv, cia nkag mus rau hauv.

Kauj ruam 1: Saib Video

Image
Image

Cov vis dis aus qhia txhua tus thiab txhua kauj ruam hauv kev nthuav dav thiab yuav pab koj kom nkag siab zoo ntawm txoj haujlwm. Yog li, saib nws ua ntej kom nkag siab txhua kauj ruam tiag tiag.

Kauj ruam 2: Tau Koj Qhov

GSM Module: Ib Qhov Me Me lossis Ib Qhov Loj?
GSM Module: Ib Qhov Me Me lossis Ib Qhov Loj?

Arduino: Is Nrias teb - https://amzn.to/2HXPEvWUS - https://amzn.to/2F4UwxsUK -

GSM Module: Is Nrias teb: Ib qho me dua - https://amzn.to/2oyJTg2, Loj dua - https://amzn.to/2oyJTg2US: Ib qho me dua - https://amzn.to/2F1vNy6, Loj dua - http:/ /amzn.to/2F1vNy6UK: Ib qho me dua - https://amzn.to/2oAjApT, Ib qho loj dua -

Dot Matrix Display: India - https://amzn.to/2HWZcqHUS - https://amzn.to/2HWZcqHUK -

Kauj Ruam 3: GSM Module: Ib Qhov Me Me lossis Ib Qhov Loj?

GSM Module: Ib Qhov Me Me lossis Ib Qhov Loj?
GSM Module: Ib Qhov Me Me lossis Ib Qhov Loj?

Hauv qib no kuv yuav tham txog qhov sib txawv loj hauv cov qauv, uas yuav pab koj xaiv ib qho.

Thawj yam ua ntej, ib qho me me yog qhov sib zog heev thaum loj dua ib qho xav tau chaw loj dua.

Ib qho me me tsis muaj RS232 rau TTL hloov pauv thaum loj dua muaj DB9 lub qhov (socket) thiab MAX232 IC uas ua haujlwm, tab sis siv nws nrog Arduino, peb yuav tsis xav tau nws.

Qhov me me xav tau qhov ntsuas hluav taws xob nyob nruab nrab ntawm 3.7 thiab 4.4 Volts uas tuaj yeem mob me ntsis thiab nws tseem xav tau micro SIM. Qhov loj dua tau tsim tsa hauv kev tswj hwm hluav taws xob uas siv 12 Volts thiab hloov nws mus rau qhov ua haujlwm voltage thiab nws muaj qhov rau qhov loj me me SIM.

Lub kav hlau txais xov luv ntawm cov qauv me me tau tsim teeb meem rau kuv qee zaum thaum lub kav hlau txais xov ntawm cov qauv loj yog qhov zoo ntawm nws txoj haujlwm. Txawm hais tias ob leeg ua haujlwm zoo ib yam, Kuv yuav siv qhov loj dua hauv txoj haujlwm no.

Tam sim no koj tau xaiv koj li GSM module, cia mus tom ntej thiab txheeb xyuas nws.

Kauj Ruam 4: Xeem GSM Module

Xeem GSM Module
Xeem GSM Module

Txuas TX rau tus pin digital 8, RX rau tus pin digital 7 thiab thaj chaw ib puag ncig.

Tshaj tawm cov duab kos hauv cov kauj ruam no rau Arduino. Thov 12 volts rau GSM module. Koj yuav pom tias lub network LED ntsais muag nrawm, thaum nws ntsais muag ib pliag, nws txuas nrog lub network. Tom qab ntawd qhib cov ntawv saib thiab nias "s" rau xa xov lossis nias "r" kom tau txais cov lus. Koj tuaj yeem hloov tus lej xov tooj thiab cov lus xa mus rau hauv Send Send function.

Yog tias qhov no ua haujlwm tau zoo, txav mus rau theem tom ntej.

Kauj Ruam 5: Kuaj Dot Matrix Zaub

Kuaj Dot Matrix Zaub
Kuaj Dot Matrix Zaub
Kuaj Dot Matrix Zaub
Kuaj Dot Matrix Zaub
Kuaj Dot Matrix Zaub
Kuaj Dot Matrix Zaub

Tam sim no los tshuaj xyuas Dot Matrix Display, ntxiv MD Parola thiab MD MAX72XX cov tsev qiv ntawv rau Arduino tsev qiv ntawv.

Tab sis ua ntej siv nws, mus rau Arduino cov tsev qiv ntawv qhib, qhib MD_MAX_72XX lub tsev qiv ntawv ntawv, tom qab ntawd mus rau docs thiab qhib ib qho HMTL cov ntawv, tom qab txiav txim siab hom Dot Matrix Display koj muaj (xa cov vis dis aus kom nkag siab kom raug). Kuv yog FC_16. Tom qab qhov no, mus rau "src" nplaub tshev thiab qhib MD_MAX72XX.h cov ntaub ntawv. Hloov kho cov ntaub ntawv header raws li tus qauv koj muaj thiab tom qab ntawd khaws nws.

Tam sim no koj tuaj yeem tshawb xyuas koj tus qauv. Txuas tus nti xaiv tus pin rau tus pin 10, cov ntaub ntawv hauv tus pin rau tus pin 11, thiab tus pin tus pin rau tus lej 13, thiab siv lub zog. Qhib cov ntawv xeem los ntawm cov piv txwv ntawm lub tsev qiv ntawv thiab xa nws. Dot matrix yuav tsum tso saib qee tus qauv ua raws los ntawm lawv lub npe, uas tseem tuaj yeem pom ntawm lub koos pij tawj.

Koj yuav xav muab qee yam tso rau saum matrix uas tsaus me ntsis tab sis yog pob tshab, vim nws nyuaj nyeem nws ncaj qha. Sim daim ntawv liab xim acrylic rau qhov ua tau zoo tshaj plaws.

Kauj Ruam 6: Ua ke Lawv

Muab Lawv
Muab Lawv
Muab Lawv
Muab Lawv
Muab Lawv
Muab Lawv
Muab Lawv
Muab Lawv

Tam sim no peb yuav ntxiv coj mus rau tus pin 12 thiab xa cov duab kos no. Nco ntsoov nco ntsoov tias thaum rub tawm daim duab kos tus lej 0 thiab 1 yuav tsum tsis txuas nrog txhua yam. Tom qab cov duab kos tau txuas txuas RX tus pin ntawm GSM module rau TX tus pin ntawm Arduino thiab TX tus pin ntawm GSM module rau RX tus pin ntawm Arduino.

Qhib serial saib. Kuv tau xa cov lus hauv hom ntawv "#A. Check*", thiab koj yuav pom tias lub teeb ntsais coj thiab SMS tau tshwm rau hauv cov cim teev teev teev. Koj tseem tuaj yeem tshawb xyuas cov lus hauv kab ntawv saib. Ib zaug ntxiv, kuv tau xa lwm cov lus thiab cov lus pom tau hloov pauv.

Lub hom phiaj ntawm cov lus kuj tseem tuaj yeem hloov pauv hauv qhov haujlwm nws tus kheej. Nrhiav "#A." thiab Asterik (*) hauv qhov program thiab hloov nws mus rau qhov koj xav tau.

Kauj Ruam 7: Ua haujlwm ntawm "memset"

Muaj nuj nqi ntawm
Muaj nuj nqi ntawm

Tej zaum koj yuav pom tias hauv txoj haujlwm muaj cov haujlwm hu ua memset.

Yog tias koj xav tsis thoob nws yog dab tsi, tom qab ntawd cia kuv qhia koj nws yog rau lub hom phiaj tshwj xeeb heev uas tau piav qhia hauv daim duab txuas nrog.

Koj tseem tuaj yeem xa cov vis dis aus kom nkag siab zoo.

Kauj ruam 8: Ua tau

Qhov ntawd yog txhua yam rau qhov kev qhia no. Kuv vam tias koj nyiam nws.