Cov txheej txheem:

ROOMBA Tsav los ntawm ARDUINO YUN Via Wifi App los ntawm STEFANO DALL'OLIO: 4 Kauj Ruam (nrog Duab)
ROOMBA Tsav los ntawm ARDUINO YUN Via Wifi App los ntawm STEFANO DALL'OLIO: 4 Kauj Ruam (nrog Duab)

Video: ROOMBA Tsav los ntawm ARDUINO YUN Via Wifi App los ntawm STEFANO DALL'OLIO: 4 Kauj Ruam (nrog Duab)

Video: ROOMBA Tsav los ntawm ARDUINO YUN Via Wifi App los ntawm STEFANO DALL'OLIO: 4 Kauj Ruam (nrog Duab)
Video: Teb los ntawm zaj koj dim kuv ces koj lawm tshav ntuj nrig 10/29/2019 2024, Kaum ib hlis
Anonim
ROOMBA Tsav los ntawm ARDUINO YUN Via Wifi App los ntawm STEFANO DALL'OLIO
ROOMBA Tsav los ntawm ARDUINO YUN Via Wifi App los ntawm STEFANO DALL'OLIO
ROOMBA Tsav los ntawm ARDUINO YUN Via Wifi App los ntawm STEFANO DALL'OLIO
ROOMBA Tsav los ntawm ARDUINO YUN Via Wifi App los ntawm STEFANO DALL'OLIO

Nrog phau ntawv qhia no kuv qhia cov cai txhawm rau txuas ARDUINO YUN rau Roomba txhawm rau tsav Roomba ntawm Wifi.

Cov cai thiab app tau ua tiav thiab tsim los ntawm kuv tus kheej Stefano Dall'Olio.

Kuv Roomba yog Roomba 620 tab sis koj tuaj yeem siv tib tus lej rau lwm tus qauv Roomba.

Arduino YUN tau siv los ntawm USB lub txhab nyiaj yooj yim.

Cov lus txib raug xa mus rau Arduino YUN siv BLYNK android app.

Koj tuaj yeem tsav Roomba siv lub joystick app lossis ua kom nrawm thiab lub kaum ntse ntse thiab thawb lub zog tsav.

Txwv tsis pub dhau ntawm app koj tuaj yeem hloov-ntawm lub cav, txheeb xyuas cov xwm txheej ntsuas, pib ntxuav lossis txheej txheem txheej txheem, …

Lub app tseem tau txais rov qab cov cim ntsuas pom los ntawm Roomba.

Nws kuj tseem tuaj yeem yuam ROOMBA teem sijhawm ntawm app ntawm Roomba 620 txawm tias nws tsis tau muab lub sijhawm teem sijhawm khawm.

Kuv kuj tau ntxiv qhov muaj peev xwm nkag mus rau lub ntsuas cua hauv cov ntaub ntawv khaws tseg ntawm microSD tso rau hauv Arduino YUN.

Kauj ruam 1: Teeb ARDUINO YUN

Nruab SimpleTimer lub tsev qiv ntawv rau Arduino unzipping cov ntawv txuas rau:

C: / Program Files (x86) Arduino / libraries / SimpleTimer

Rov pib dua Arduino software.

Thauj cov duab kos txuas rau Arduino YUN. Thov nco ntsoov cov cai tso cai yuav tsum raug hloov tom qab BLYNK app yuav tsim. Tshaj li qhov kos duab yuav tsum tau muab tso dua rau Arduino YUN. Cov kauj ruam no yog piav qhia tom qab.

Kauj Ruam 2: Txuas ARDUINO YUN rau ROOMBA

Txuas ARDUINO YUN rau ROOMBA
Txuas ARDUINO YUN rau ROOMBA
Txuas ARDUINO YUN rau ROOMBA
Txuas ARDUINO YUN rau ROOMBA
Txuas ARDUINO YUN rau ROOMBA
Txuas ARDUINO YUN rau ROOMBA

Nrhiav tus nas qub thiab txiav cov xaim. Txuas tsuas yog 3 xov hlau raws li qhia hauv Arduino daim duab. Xa mus rau Roomba pins zoo li hauv daim duab txuas.

Arduino YUN PIN 2 rau Roomba tus pin 5

Arduino YUN PIN 10 rau Roomba tus pin 4

Arduino YUN PIN 11 rau Roomba tus pin 3

Tshem tawm ntawm koj lub ROOMBA 620 lub hau yas (kuv lub npog yas dawb) tsuas yog rub tawm. Koj yuav pom tus txuas raws li daim duab txuas.

Fais fab Arduino YUN nrog lub txhab nyiaj yooj yim.

Kauj Ruam 3: Tsim BLYNK App los Tsav Arduino YUN

Tsim BLYNK App los Tsav Arduino YUN
Tsim BLYNK App los Tsav Arduino YUN
Tsim BLYNK App los Tsav Arduino YUN
Tsim BLYNK App los Tsav Arduino YUN
Tsim BLYNK App los Tsav Arduino YUN
Tsim BLYNK App los Tsav Arduino YUN
Tsim BLYNK App los Tsav Arduino YUN
Tsim BLYNK App los Tsav Arduino YUN

Rub tawm Android BLYNK app thiab tsim lub interface tshiab.

Kuv xa qhov sib koom QRCODE ntawm kuv qhov kev sib tham uas koj tuaj yeem siv tsis txhob tsim lub interface tshiab.

Hloov pauv hauv Arduino kos duab AUTH CODE khaws los ntawm BLYNK interface thiab xa dua daim duab kos rau koj Arduino YUN. Hauv qab no qhov AUTH CODE yuav tsum raug hloov pauv:

// Koj yuav tsum tau txais Auth Token hauv Blynk App.// Mus rau Qhov Project Settings (txiv ntoo cim).

char auth = "e70879f362a34d9fb213475a4389fcef";

Yog tias Auth.code tsis raug, BLYNK app tsis tuaj yeem txuas rau Arduino YUN thiab xa cov lus txib.

Kauj Ruam 4: Tsav Roomba

1) Txuas Arduino YUN mus rau Roomba

2) Lub zog ntawm Arduino YUN [tom qab ob peb vib nas this Roomba ntsuab khawm dhau los ua liab]

3) Qhib thiab pib Android BLYNK interface

Txaus siab rau koj Roomba uas tau tsav los ntawm Arduino YUN.

Nyob rau hauv rooj plaub cov lus txib xa los ntawm Arduino YUN mus rau Roomba tau cuam tshuam nrog Roomba tsis raug, tej zaum qhov baudrate ntawm Roomba tsis raug. Txhawm rau teeb tsa lub corret baudrate yooj yim thaum ua haujlwm ntawm Roomba, tuav lub Huv/Fais Fab khawm. Tom qab kwv yees li 10 vib nas this, Roomba ua suab paj nruag ntawm cov suab qis. Roomba yuav sib txuas lus ntawm 19200 baud kom txog thaum lub hwj chim raug kaw, lub roj teeb raug tshem tawm thiab rov ua dua, lub roj teeb hluav taws xob poob qis dua qhov tsawg kawg nkaus uas xav tau rau kev ua haujlwm, lossis tus nqi baud tau hloov pauv meej los ntawm txoj kev ntawm OI.

Pom zoo: