Cov txheej txheem:

INTEGRATED GOOGLE MAPS: 4 Kauj Ruam
INTEGRATED GOOGLE MAPS: 4 Kauj Ruam

Video: INTEGRATED GOOGLE MAPS: 4 Kauj Ruam

Video: INTEGRATED GOOGLE MAPS: 4 Kauj Ruam
Video: How To Create Google Maps API KEY For Free ( Easy Steps By Steps Instructions) 4K 2024, Hlis ntuj nqeg
Anonim
INTEGRATED GOOGLE MAPS
INTEGRATED GOOGLE MAPS

Hauv txoj haujlwm no peb tab tom yuav siv lub cuab yeej uas hloov qhov taw qhia los ntawm Google Maps mus rau hauv qhov kev nkag siab zoo kom txo qis hwo peb tuaj yeem siv kev sib xyaw ua ke ntawm peb lub cev.

Peb yuav ua qhov no los ntawm kev txuas peb pawg Arduino nrog peb lub xov tooj ntawm tes siv lub Bluetooth module. Nrog peb lub xov tooj peb tuaj yeem xa lub teeb liab peb xav tau rau peb Arduino pawg thawj coj uas yuav qhib nrog cov qauv sib txawv ntawm cov npib buzzer nyob ntawm qhov kev qhia.

Txog tam sim no qhov taw qhia yuav los ntawm Bluetooth app thiab tsis yog qhov tseeb Google Maps vim tias peb qhov kev paub ntawm kev ua haujlwm tsis mus deb, txawm li cas los xij txoj haujlwm no yog txhua yam qhia pom tias peb tuaj yeem siv qhov no yog peb muaj cov cuab yeej.

Yuav muaj ntau qhov taw qhia rau qhov no, tig sab xis lossis sab laug (qhib txoj cai lossis sab laug buzzer), mus ncaj (qhib ob zaug ib zaug), txoj kev tsis raug (qhib ob lub buzzers ob zaug), kawg ntawm txoj kev (qhib 3 zaug ob lub buzzers) thiab tig tig mus rau sab xis sab xis (ua kom lub zog qis dua lub suab nrov sab laug lossis sab xis),

Kauj Ruam 1: Tau Koj Cov Khoom

Nov yog cov npe ntawm cov khoom koj yuav xav rov tsim txoj haujlwm.

-Arduino Lilypad.

-Bluetooth module HM-10

-Cov xov hlau

Npib buzzer (x2)

-Phone (nyiam dua Android)

-Welder

-Tin kab

Kauj ruam 2: Txuas Txhua Yam

Txuas Txhua Yam!
Txuas Txhua Yam!

Kauj Ruam 3: Cia Ua Txoj Cai

Cia Peb Ua Txoj Cai!
Cia Peb Ua Txoj Cai!
Cia Peb Ua Txoj Cai!
Cia Peb Ua Txoj Cai!
Cia Peb Ua Txoj Cai!
Cia Peb Ua Txoj Cai!

#suav nrog

SoftwareSerial HM10 (10, 11); // RX = 10, TX = 11

char appData;

Txoj hlua hauvData = "";

void teeb tsa () {

Serial.begin (19200);

Serial.println ("HM10 tau pib ntawm 9600");

HM10.begin (9600); // teeb tsa HM10 cov lej ntawm 9600 baud tus nqi

pinMode (6, NTAWV);

pinMode (5, NTAWV); }

void voj () {

Txoj hlua xeem;

HM10. mloog (); // mloog HM10 chaw nres nkoj

thaum (HM10.available ()> 0) {// yog HM10 xa ib yam dab tsi ces nyeem

appData = HM10.read ();

inData = Txoj hlua (appData); // txuag cov ntaub ntawv hauv txoj hlua

}

yog (Serial.available ()) {// Nyeem cov neeg siv tswv yim yog tias muaj.

ncua (10);

HM10.write (Serial.read ());

}

yog (inData.equals ("1")) {// yog tus lej xa los ntawm lub xov tooj sib npaug 1 ces qhib lub suab buzzer ntawm lub zog puv 200ms

ncua (10);

Serial.println ("DRETA");

analogWrite (6, 255);

ncua (200);

analogWrite (6, 0);

}

yog (inData.equals ("2")) {// yog tus lej xa los ntawm lub xov tooj sib npaug 2 ces qhib lub suab nrov sab laug ntawm lub zog tag nrho rau 200ms

Serial.println ("ESQUERRE");

analogWrite (5, 255);

ncua (200);

analogWrite (5, 0);

}

yog (inData.equals ("3")) {// yog tus lej xa los ntawm lub xov tooj sib npaug 3 ces qhib ob lub buzzers rau 200 ms Serial.println ("RECTE");

analogWrite (5, 255);

analogWrite (6, 255);

ncua (200);

analogWrite (5, 0);

analogWrite (6, 0);

}

yog (inData.equals ("4")) {// yog tus lej xa los ntawm lub xov tooj sib npaug 4 ces qhib kev cuam tshuam ob qho tib si buzzers 2 zaug

Serial.println ("tsis tseeb");

analogWrite (5, 255);

analogWrite (6, 255);

ncua (100);

analogWrite (5, 0);

analogWrite (6, 0);

ncua (100);

analogWrite (5, 255);

analogWrite (6, 255);

ncua (100);

analogWrite (5, 0);

analogWrite (6, 0); }

yog (inData.equals ("5")) {// yog tus lej xa los ntawm lub xov tooj sib npaug 4 ces qhib kev cuam tshuam ob qho tib si buzzers 3 zaug

Serial.println ("FINAL");

analogWrite (5, 180);

analogWrite (6, 180);

ncua (100);

analogWrite (5, 0);

analogWrite (6, 0);

ncua (100);

analogWrite (5, 180);

analogWrite (6, 180);

ncua (100);

analogWrite (5, 0);

analogWrite (6, 0);

ncua (100);

analogWrite (5, 180);

analogWrite (6, 180);

ncua (100);

analogWrite (5, 0);

analogWrite (6, 0);

} yog (inData.equals ("6")) {// yog tus lej xa los ntawm lub xov tooj sib npaug 6 qhib txoj cai buzzer tsis tsawg dua ib nrab ntawm lub zog

ncua (10);

Serial.println ("DRETA");

analogWrite (6, 100);

ncua (200);

analogWrite (6, 0);

}

}

Kauj Ruam 4: Tso Txhua Yam Rau Qhov Chaw

Muab txhua yam tso rau qhov chaw!
Muab txhua yam tso rau qhov chaw!
Muab txhua yam tso rau qhov chaw!
Muab txhua yam tso rau qhov chaw!
Muab txhua yam tso rau qhov chaw!
Muab txhua yam tso rau qhov chaw!

Tau lub tsho tshaj sab nrog lub hnab tshos thiab tso lub suab nrov nrov ntawm txhua lub xub pwg. Cov kab hluav taws xob yuav mus txog txawm tias lub tsho t-shirt thiab hla lub qhov uas ua rau ntawm lub hnab tshos, Muaj koj yuav tso lub rooj tsav xwm arduino nrog txhua yam txuas nrog. Txhawm rau nqa tau tsuas yog txuas lub arduino nrog lub roj teeb thiab tso nws rau hauv lub hnab tshos pem hauv ntej ib yam.

Yog tias koj xav tau koj tseem tuaj yeem siv tib yam ntawm qee cov hnab looj tes, qee qhov ntawm lub cev uas yooj yim kom paub qhov txawv ntawm sab laug/sab xis.

Yog tias koj muaj Arduino Lilypad nws dhau los ua ntau dua.

Pom zoo: