<< return to Pixycam.com

User Tools

Site Tools


wiki:v2:lego_line_following_demo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
wiki:v2:lego_line_following_demo [2019/01/31 01:00]
pixycam
wiki:v2:lego_line_following_demo [2019/01/31 01:42]
pixycam
Line 17: Line 17:
   - Attach Pixy2 and plug into port 1 as shown. ​ Note how Pixy2 is pointed down (It's going to be tracking lines on the ground!)\\   - Attach Pixy2 and plug into port 1 as shown. ​ Note how Pixy2 is pointed down (It's going to be tracking lines on the ground!)\\
 {{wiki:​v1:​img_5351_result.jpg?​400}} {{wiki:​v1:​img_5351_result.jpg?​400}}
 +  - Here's what the finished robot should look like.\\ 
 +{{wiki:​v1:​img_5345_result.jpg?​400}}
  
 ==== Cables (IMPORTANT!) ==== ==== Cables (IMPORTANT!) ====
Line 31: Line 32:
 {{wiki:​img:​3e3b64f2ff052ac58280fa2315eff9d803714e6e.png}}\\ {{wiki:​img:​3e3b64f2ff052ac58280fa2315eff9d803714e6e.png}}\\
    
-  - Browse to the location where you unzipped the "LEGO blocks and examples"​ file (which you can download [[https://​pixycam.com/​downloads-pixy2/​|on this page]]), and then to the **examples** directory and select "​line\_follow.ev3"​ and click on **Open**+  - Browse to the location where you unzipped the "LEGO blocks and examples"​ file (which you can download [[https://​pixycam.com/​downloads-pixy2/​|on this page]]), and then to the **examples** directory and select "​line\_follow.ev3"​ and click on **Open**. You should see a program that looks like this (below).\\ 
-  - Click on the "​track"​ tab. You should see a program that looks like this (below).\\ +{{wiki:​v1:​image_741.png}}\\
-{{}}\\+
   - Draw a smooth line on a large sheet of paper using a black marker. ​ Taping several standard-sized pieces of paper together to create a larger sheet of paper is a good approach. ​ You can make a circle, oval, figure-eight,​ or something more complex, but keeping it simple is good for the first test.   - Draw a smooth line on a large sheet of paper using a black marker. ​ Taping several standard-sized pieces of paper together to create a larger sheet of paper is a good approach. ​ You can make a circle, oval, figure-eight,​ or something more complex, but keeping it simple is good for the first test.
   - Place your robot on the line that you've drawn and clicking on the play icon in the lower right corner of your EV3 software window.\\   - Place your robot on the line that you've drawn and clicking on the play icon in the lower right corner of your EV3 software window.\\
Line 48: Line 48:
  
  
-===== Making Turns =====+===== Making Turns at Intersections ​=====
  
 If your line drawing has an intersection,​ you can tell your robot always turn left or always turn right (for example) by "​hard-coding"​ the Turn Angle. ​ With the program stopped, try setting the Turn Angle to -90 degrees. If your line drawing has an intersection,​ you can tell your robot always turn left or always turn right (for example) by "​hard-coding"​ the Turn Angle. ​ With the program stopped, try setting the Turn Angle to -90 degrees.
wiki/v2/lego_line_following_demo.txt · Last modified: 2019/01/31 01:43 by pixycam