Cov txheej txheem:

SMS Qhov Rooj Ruaj Ntseg Siv GboardPro (GSM Cum Arduino Mega): 4 Cov Kauj Ruam
SMS Qhov Rooj Ruaj Ntseg Siv GboardPro (GSM Cum Arduino Mega): 4 Cov Kauj Ruam

Video: SMS Qhov Rooj Ruaj Ntseg Siv GboardPro (GSM Cum Arduino Mega): 4 Cov Kauj Ruam

Video: SMS Qhov Rooj Ruaj Ntseg Siv GboardPro (GSM Cum Arduino Mega): 4 Cov Kauj Ruam
Video: ua neej tiam no tsis cia siab lawm ( zoo xyooj ) C.V 2024, Hlis ntuj nqeg
Anonim
Image
Image
Kev Txuas Hluav Taws Xob
Kev Txuas Hluav Taws Xob

Qhov no yog qhov yooj yim tseem muaj txiaj ntsig zoo hauv tsev ceeb toom ceeb toom DIY project. Kuv ua qhov haujlwm no vim yog Tub Sab Nyiag hauv kuv lub chaw haujlwm.

Khoom siv

Yuav tsum tau kho vajtse:

  • Gboard Pro SIM900 GSM / GPRS ATMega2560
  • MC-38 Wired Sib Nqus Hloov sensor
  • Kev tiv thaiv (1K & 330 ohm)
  • Coj
  • 12V DC Fais Adapter
  • SIM daim npav txhawb nqa Quad-band 850/900/1800/1900 Mhz (hauv txoj haujlwm 2G SIM siv)

Yuav tsum tau Software:

Arduino IDE Cov

Kauj Ruam 1: Kev Sib Txuas Hauv Circuit

Kev Txuas Hluav Taws Xob
Kev Txuas Hluav Taws Xob
Kev Txuas Hluav Taws Xob
Kev Txuas Hluav Taws Xob

Lub tswv yim ua haujlwm ntawm Circuit Court yog qhov yooj yim:

rooj plaub 1: Thaum cov hlau nplaum nyob ze rau ib leeg, lub Circuit Court ua raws li qhov hloov pauv. Yog li, tus pin tswj tau txais kev xav 0 (LOW)

rooj plaub 2: Thaum cov hlau nplaum sib cais, lub Circuit Court ua haujlwm qhib. Yog li, tus pin tswj tau txais kev xav 1 (HIGH)

Kauj Ruam 2: Txhim Kho Arduino IDE thiab GboardPro Library

Image
Image
Txhim kho Arduino IDE thiab GboardPro Library
Txhim kho Arduino IDE thiab GboardPro Library

Ua raws li Arduino txoj haujlwm txuas hauv qab no txhawm rau txhim kho Arduino IDE ntawm koj li OS:

Ntawm Windows ->

Ntawm Linux ->

Ntawm Mac ->

Rau Windows thiab Mac, nws zoo nkauj ncaj nraim rau nruab, tsis muaj teeb meem loj ntsib thaum txhim kho. Tab sis Linux cov neeg siv tshwj xeeb tshaj yog pib pom qee qhov teeb meem hais txog Arduino kev teeb tsa uas feem ntau cuam tshuam txog teeb meem yuam kev xa khoom yuam kev ("avrdude: ser_open (): qhib tsis tau ntaus ntawv") thaum thawj zaug teeb tsa. Yog li, kuv kaw qhov vis dis aus uas koj tuaj yeem ua raws li tau hais los saum no.

Rub tawm cov tsev qiv ntawv cov ntaub ntawv hauv qab no. Luam thiab luam rau Arduino -> cov tsev qiv ntawv qiv raws li tau hais los saum no. Tam sim no, qhib Arduino IDE thiab koj tuaj yeem tshawb xyuas cov qauv piv txwv rau GSM GboardPro.

Xav paub ntau ntxiv txog Gboard Pro muaj nyob rau ->

Kauj ruam 3: Programming

Programming
Programming
Programming
Programming

Rau kev xa cov cai, peb xav tau USB rau hloov pauv. Kuv tau siv kev sib txuas cp2102 uas tau qhia hauv cov duab saum toj no.

Tus pin txuas:

CP2102 Gboard Pro

GND GND

RXD RXD tau

TXD TXD

DTR DR

kuj, txuas 12V lub zog hloov pauv mus rau GboardPro pawg thawj coj rau lub zog.

Yog tias koj siv tib CP2102 ces nruab tus tsav tsheb los ntawm qhov txuas:

Tam sim no, xaiv qhov tsim nyog Arduino mega board los ntawm cov cuab yeej -> cov laug cam nrog qhov chaw nres nkoj haum raws li qhia hauv duab saum toj no.

Ua qhov kev hloov pauv tsim nyog hais hauv cov cai cuam tshuam nrog koj tus lej.

char naj npawb = "+91xxxxxxxxxx"; // Qhov chaw naj npawb

Luam daim ntawv hauv qab no hauv koj li IDE, suav sau thiab ntaus upload. Code yog qhov yooj yim piav qhia tus kheej nrog cov lus pom. Tseem, yog tias muaj kev tsis ntseeg, tawm tswv yim hauv qab no.

Kauj Ruam 4: Ntim thiab Txhim Kho

Ntim thiab Kev Txhim Kho
Ntim thiab Kev Txhim Kho
Ntim thiab Kev Txhim Kho
Ntim thiab Kev Txhim Kho
Ntim thiab Kev Txhim Kho
Ntim thiab Kev Txhim Kho

Siv lub thawv tsim nyog los ntim cov txheej txheem raws li pom thiab teeb tsa ntawm lub qhov rooj ntawm koj lub tsev lossis chaw ua haujlwm.

Qhov ntawd yog nws, Tsaug !!

Pom zoo: