Cov txheej txheem:

Programming Arduino Nrog Sphero RVR: 4 Cov Kauj Ruam
Programming Arduino Nrog Sphero RVR: 4 Cov Kauj Ruam

Video: Programming Arduino Nrog Sphero RVR: 4 Cov Kauj Ruam

Video: Programming Arduino Nrog Sphero RVR: 4 Cov Kauj Ruam
Video: Optimizing Arduino Code: no setup(), no loop() ⛔ 2024, Kaum ib hlis
Anonim
Programming Arduino Nrog Sphero RVR
Programming Arduino Nrog Sphero RVR

Xyoo tas los thaum Lub Kaum Hli, Sphero RVR tau tawm los. Qhov no yog neeg hlau zoo li tsis muaj lwm tus neeg hlau. Ua ntej tshaj plaws, koj tuaj yeem ua haujlwm nrog Micro: me ntsis, Raspberry PI, thiab Arduino. Koj tseem tuaj yeem ua kom nws ua ntau yam haujlwm sib txawv. Cov LEDs tuaj yeem hloov xim thiab. Thiab, nws lub roj teeb rov tau dua thiab tsis siv ib zaug siv roj teeb!

Rov qab mus rau Arduino, tib neeg tsis paub yuav pib qhov twg. Tias yog vim li cas kuv thiaj sau qhov no, Kuv tab tom qhia koj paub yuav ua li cas ua ke nrog Arduino. Cov txheej txheem no yooj yim dua li koj xav thiab yuav coj koj tsawg dua ib teev! Cia pib!

Khoom siv

1 Sphero RVR

1 Arduino

Kauj ruam 1: Rub tawm Software

Rub tawm Software
Rub tawm Software
Rub tawm Software
Rub tawm Software
Rub tawm Software
Rub tawm Software

Cov kauj ruam no yooj yim haum, txhua yam koj yuav tsum ua yog mus rau qhov txuas no. thiab rub tawm cov ntawv. Nco ntsoov, koj lub software yuav tsum yog Linux, Windows, lossis Apple.

Kauj ruam 2: Programming Arduino

Programming Arduino
Programming Arduino
Programming Arduino
Programming Arduino
Programming Arduino
Programming Arduino

Thaum koj tau qhib lub software thiab npaj txhij rau code, koj pib tawm los ntawm kev ntaus tus lej no

#suav nrog

tom ntej no, koj yuav tsum ntaus ntawv

rvr.configUART (& Serial);

yog li koj muaj kev sib txuas nrog Sphero

Kauj Ruam 3: Programming Sphero txuas ntxiv (Hu rov qab thiab Tswj)

Programming Sphero txuas ntxiv (Hu rov qab thiab Tswj)
Programming Sphero txuas ntxiv (Hu rov qab thiab Tswj)

Kev hu rov qab tso cai rau koj nug Sphero xa koj cov ntaub ntawv es tsis txhob xa koj mus rau Sphero. Piv txwv li, siv rvr.poll (); hauv lub voj ua haujlwm, koj yuav tau txais qee yam los ntawm Sphero. Yog tias koj tsis suav nrog, koj yuav tsis hnov dab tsi rov qab.

Kev tswj hwm ua rau nws yooj yim dua rau koj tham nrog RVR siv Arduino code los ntawm kev ua cov lus txib uas twb tau hais txog qee qhov lus txib kom koj tsis tas yuav khawb dhau tus lej Sphero Arduino SDK.

Tom qab ntawd, tus so yog nyob ntawm koj! Koj xav ua dab tsi nrog koj Sphero RVR?

Kauj ruam 4: Plugging Nws Hauv

Plugging Nws Hauv
Plugging Nws Hauv
Plugging Nws Hauv
Plugging Nws Hauv

Txhawm rau ua kom nws tiav, koj ntsaws rau hauv. Tom qab ntawd, khiav koj li Arduino's program thiab saib seb koj tau ua dab tsi!

Yog tias koj muaj teeb meem, mus rau nplooj ntawv Arduino thiab Sphero. Tej zaum lawv tau ua txoj haujlwm piav qhia zoo dua kuv. Qhov no tseem yog qhov uas kuv tau txais kuv qhov kev tshawb fawb.

Pom zoo: