Cov txheej txheem:

Intuitive Maze Solving Robot: 3 Kauj Ruam
Intuitive Maze Solving Robot: 3 Kauj Ruam

Video: Intuitive Maze Solving Robot: 3 Kauj Ruam

Video: Intuitive Maze Solving Robot: 3 Kauj Ruam
Video: Amazing arduino project 2024, Lub Xya hli ntuj
Anonim
Intuitive Maze Solving Robot
Intuitive Maze Solving Robot
Intuitive Maze Solving Robot
Intuitive Maze Solving Robot
Intuitive Maze Solving Robot
Intuitive Maze Solving Robot

Hauv Cov Lus Qhia no koj yuav kawm paub yuav ua li cas tshawb nrhiav neeg hlau uas daws cov tib neeg kos mazes.

Thaum cov neeg hlau feem ntau daws thawj hom kev kos mazes (koj yuav tsum ua raws kab, lawv yog txoj hauv kev), tib neeg ib txwm nyiam kos ob hom mazes. Cov no nyuaj dua thiab tuaj tos kom pom tus neeg hlau, tab sis tsis yooj yim sua!

Kauj Ruam 1: Kauj Ruam 1: Maze Solving

Kauj Ruam 1: Maze Solving
Kauj Ruam 1: Maze Solving

Kuv tau txiav txim siab ntau txoj kev tshawb nrhiav tshawb nrhiav, tab sis txoj kev siv feem ntau yog ib qho yooj yim rau txoj haujlwm thaum nws tseem daws yuav luag txhua qhov tshawb nrhiav!

Hauv txoj kev no peb qhia tus neeg hlau rau:

  • Lem sab xis thaum nws tuaj yeem ua tau
  • Yog tsis yog, tsav tsheb mus tom ntej yog qhov ua tau
  • Qhib sab laug raws li kev daws teeb meem zaum kawg thiab
  • Tig rov qab yog tias nws khiav mus rau qhov kawg

Hauv daim duab koj pom lub maze tab tom daws qhov no. Hom no feem ntau hu ua Wall Follower. As tsuav yog lub hom phiaj yog tawm hauv phab ntsa sab nrauv, Tus Phab Ntsa Follower yuav pom nws.

Kauj Ruam 2: Kauj Ruam 2: Xeem Tshooj

Kauj Ruam 2: Xeem Tshooj
Kauj Ruam 2: Xeem Tshooj

Rau tus neeg hlau no peb xav tau:

  • 1 × Arduino Uno
  • 1 × 4 AA roj teeb tuav
  • 3 × TCRT5000 sensors (QTR-1A)
  • 2 × 6V DC Motors
  • 13 × txiv neej-poj niam breadboard xaim
  • 10 × poj niam-poj niam breadboard xaim
  • Pin header nrog tsawg kawg 29 tus pin
  • Cov cuab yeej siv cuab yeej

Tsis tas li, rub tawm thiab teeb tsa Arduino IDE txhawm rau txhim kho ntawm koj Arduino, thiab xyuas kom tseeb tias koj Arduino tuaj nrog USB cable hom A/B txuas rau koj lub computer.

Kauj Ruam 3: Kauj Ruam 3: Nyeem Los Ntawm Lub Sensor

Kauj Ruam 3: Nyeem Los Ntawm Lub Sensor
Kauj Ruam 3: Nyeem Los Ntawm Lub Sensor
Kauj Ruam 3: Nyeem Los Ntawm Lub Sensor
Kauj Ruam 3: Nyeem Los Ntawm Lub Sensor

TCRT5000 cov ntsuas tau tsim los ntawm lub teeb taws coj (lub ntsej muag xiav) thiab tus txais (lub ntsej muag dub).

Thaum cov coj tawm lub teeb infrared mus rau qhov dawb nws yuav tau txais kev cuam tshuam rau tus txais thiab nws yuav rov qab tus nqi qis (40 ~ 60 hauv kuv kis) Thaum cov coj tawm lub teeb mus rau qhov dub nws yuav nqus thiab nws yuav rov qab tus nqi siab (700 ~ 1010 hauv kuv rooj plaub)

Cov duab thib ob qhia txog cov txheej txheem uas qhia yuav ua li cas txuas lub sensor mus rau Arduino. Tuav lub sensor kom koj tuaj yeem pom cov coj thiab tus txais thiab tus pin tau taw qhia rau cov phiaj xwm kom ntseeg tau tias koj txuas cov pins raug.

Tam sim no peb tsuas yog xav txuas Arduino rau peb lub khoos phis tawj, tso cov cai hauv qab no hauv Arduino IDE thiab sau nws:

// Hloov A0 mus rau qhov chaw nres nkoj twg koj txuas nrog lub sensor rau#txhais FRONT_SENSOR A0void pib () {Serial.begin (9600); } void loop () {int frontValue = analogRead (FRONT_SENSOR); Serial.println (frontValue);}

Tam sim no yog tias koj txav lub ntsuas kom ze ze rau ntawm cov xim dawb thiab dub koj yuav tsum pom qhov txiaj ntsig hloov pauv raws li hauv cov ntawv saib.

Pom zoo: