|
|
mindstorms:lab:nxtlab-basics [2017/07/17 10:08] |
mindstorms:lab:nxtlab-basics [2019/06/27 15:50] (current) |
| ====== Exercise ====== |
| Goal: simple control algorithm. |
| |
| Accessories: |
| * LEGO set |
| * instruction //QuickStart// |
| * software LEGO MINDSTORMS NXT |
| |
| Output: Report |
| |
| ===== Description ===== |
| What to do: |
| - build a simple mobile robot, and simultaneously |
| - design a simple control algorithm |
| - test the robot and the algorithm, |
| - evaluate and draw conclusions -> Report |
| Team organization: |
| * robot builder: 1,2 persons, |
| * algorithm development: 1,2 persons. |
| __Caution !__: |
| * use only blocks that you need |
| * do not take out too much blocks in the same time |
| * put all unused blocks [[https://ai.ia.agh.edu.pl/wiki/pl:mindstorms:lab:wyposazenie#rozlozenie_klockow_w_przegrodach|back in proper compartments]] |
| |
| ===== Robot building ===== |
| (Builing team) |
| * Build a simple mobile robot i.e. according to //QuickStart//, your invention here is welcomed. |
| * Connect desired sensors on the front or side of the robot (i.e. sonar) |
| |
| ===== Algorithm development ===== |
| (Control team) |
| * program simple control algorithms (1-2) |
| * use 1 or 2 sensors |
| * save project files |
| |
| ===== Proposed Algorithms: ===== |
| |
| ==== Patrol ==== |
| * robot drives on its (given) way (square, circle, triangle) |
| * repeats this way N times |
| * robot stops after finding an obstacle (touch or distance sensor) |
| * plays beep signal |
| * backs up |
| |
| ==== Avoidance ==== |
| * robot drives straight |
| * after reaching an obstacle (use sonar) it tries to avoid it |
| * plays beep signal |
| * make a right turn |
| |
| ==== Tracking ==== |
| * robot follows up a light source |
| |
| ===== Additional Control ===== |
| * control the robot by voice signal (e.g. clapping) or touch |
| * example: one clap - start, two claps - stop |
| |
| ===== Integration ===== |
| |
| Test the algorithm on the constructed robot. |
| Please, remember that after uploading program to the robot you can disconnect USB wire and let it go on the desk or floor. |
| |
| ===== Finish ===== |
| * Disassemble the robot, and put all elements in the proper [[https://ai.ia.agh.edu.pl/wiki/pl:mindstorms:lab:wyposazenie#rozlozenie_klockow_w_przegrodach|compartments in the box]] |
| |
| __CAUTION__: do it slowly and carefully - damage is much easer during disassembly then while assembling. |
| |
| |
| ===== Report ===== |
| |
| Prepare a short report describing what you have accomplished during this exercise: |
| * what was the purpose of the robot, |
| * what sensors did you use and why, |
| * include a photo of your robot, |
| * include a screenshot of your program, |
| * describe problems and difficulties you had. |
| \\ |
| ---- |
| |
| ★ Lab instructions translated/enhanced by [[http://home.agh.edu.pl/wojnicki|Igor Wojnicki, PhD]] (2010). |