<< return to Pixycam.com

User Tools

Site Tools


wiki:v2:lego_chase_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
Next revision Both sides next revision
wiki:v2:lego_chase_demo [2018/08/22 22:17]
jfrench updated support email
wiki:v2:lego_chase_demo [2019/01/30 20:41]
pixycam
Line 12: Line 12:
 The robot we're going to build can be found in Laurens Valk's book [[http://​robotsquare.com/​books/​ev3discovery|LEGO Mindstorms EV3 Discovery Book]]. The robot is called the Explor3r and it uses parts that are available in the retail Mindstorms EV3 kit. The robot we're going to build can be found in Laurens Valk's book [[http://​robotsquare.com/​books/​ev3discovery|LEGO Mindstorms EV3 Discovery Book]]. The robot is called the Explor3r and it uses parts that are available in the retail Mindstorms EV3 kit.
  
-  - Assemble Explor3r through step 11. [[http://​robotsquare.com/​2015/​10/​06/​explor3r-building-instructions/​|Click here for instructions on how to build Explor3r]]."​ That is, stop short of mounting the IR Sensor (step 12). Instead of the IR Sensor, we'll be mounting ​Pixy. If you are using an NXT brick, your instructions will be very similar+  - Assemble Explor3r through step 11. [[http://​robotsquare.com/​2015/​10/​06/​explor3r-building-instructions/​|Click here for instructions on how to build Explor3r]]."​ That is, stop short of mounting the IR Sensor (step 12). Instead of the IR Sensor, we'll be mounting ​Pixy2
-  - Locate these LEGO parts and your LEGO-mounted ​Pixy. (There are instructions on how to mount Pixy to LEGO [[wiki:​v2:​Mounting_Pixy_with_LEGO.|here]])\\ +  - Locate these LEGO parts and your LEGO-mounted ​Pixy2. (There are instructions on how to mount Pixy2 to LEGO [[wiki:​v2:​Mounting_Pixy_with_LEGO.|here]])\\ 
-{{wiki:img:0ce334b7f975bd1bc2a8ff02364c66bab884f45e.jpg?​400}}\\+{{wiki:v1:img_5313_result.jpg?​400}}\\
    
   - \\   - \\
-{{wiki:img:4700af4039676ed890a5b07d73f88c66aa2adeb5.jpg?​400}}\\+{{wiki:v1:img_5314_result.jpg?​400}}\\
    
   - \\   - \\
-{{wiki:img:c57f4f15003d90419bd269594dd44be85e151068.jpg?​400}}\\+{{wiki:v1:img_5316_result.jpg?​400}}\\
    
   - \\   - \\
-{{wiki:img:3d1acda20f7e4fdad7ff81c7af3c6b56085068d4.jpg?​400}}\\+{{wiki:v1:img_5318_result.jpg?​400}}\\
    
   - \\   - \\
-{{wiki:img:1a172eb992784b7e8b99ca2a72b48e86669d908d.jpg?​400}}\\+{{wiki:v1:img_5319_result.jpg?​400}}\\
    
-  - Attach ​Pixy as shown.\\ +  - Attach ​Pixy2 as shown.\\ 
-{{wiki:img:1d6bdb767ebf4c690f2ab91c35d30b6819ad0572.jpg?​400}}\\+{{wiki:v1:img_5320_result.jpg?​400}}\\
    
-  - Connect the Pixy cable. Plug one end of the cable into Pixy and the other end into port 1 of your brick.\\ +  - Connect the Pixy2 cable. Plug one end of the cable into Pixy and the other end into port 1 of your brick.\\ 
-{{wiki:img:7a4ceae022477335cae33edf506435c88303588f.jpg?400}}+{{wiki:v1:img_5322_result.jpg?400}}
  
  
Line 38: Line 38:
  
   - The motors connect to motor ports A and B on your brick. Don't "​cross"​ the cables. That is, if you are facing the motor ports (the back of the robot), the left motor connects to port B, the right motor connects to port A.   - The motors connect to motor ports A and B on your brick. Don't "​cross"​ the cables. That is, if you are facing the motor ports (the back of the robot), the left motor connects to port B, the right motor connects to port A.
-  - Pixy connects to sensor port 1.\\+  - Pixy2 connects to sensor port 1.\\
    
  
  
-===== Teach Pixy an object =====+===== Teach Pixy2 an object =====
  
-Go ahead and [[wiki:​v2:​Teach_Pixy_an_object_2|teach ​Pixy an object]]. You might try using the button press method. Using the button press method doesn'​t require that you hook up a USB cable to Pixy and run PixyMon, so it's much more convenient!+Go ahead and [[wiki:​v2:​Teach_Pixy_an_object_2|teach ​Pixy2 an object]]. You might try using the button press method. Using the button press method doesn'​t require that you hook up a USB cable to Pixy2 and run PixyMon, so it's much more convenient!
  
  
Line 51: Line 51:
   - Turn on your LEGO brick if you haven'​t done so, and hook up a USB cable between your computer and your LEGO brick.   - Turn on your LEGO brick if you haven'​t done so, and hook up a USB cable between your computer and your LEGO brick.
   - From the LEGO Mindstorms EV3 Software, go to the **File** menu and select **Open Project**.\\   - From the LEGO Mindstorms EV3 Software, go to the **File** menu and select **Open Project**.\\
-{{wiki:​img:​3e3b64f2ff052ac58280fa2315eff9d803714e6e.png?400}}\\+{{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 then either to the **EV3** or **NXT** directory depending on your brick version. Select ​"chase.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 ​"ccc\_chase.ev3" and click on **Open**.
   - Click on the "​track"​ tab. 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:img:043148247c8d379fb867582e6230deb13bba5371.png?400}}\\ +{{wiki:v1:image_735.png}}\\
-  +
-  - Run the program! Click on the play icon in the lower right corner of your EV3 software window. If you don't see the play icon, make sure your LEGO brick is powered on, finished booting, and connected to you computer via a USB cable.\\ +
-{{wiki:​img:​aa5d26848e8509a94a41c8bc66ed36125ee5af36.png?​400}}\\ +
- . +
-  - If you are running PixyMon, make sure you are running the "​Default program"​ by clicking on the home icon.\\ +
-{{wiki:​img:​0cb61d054b661f140bf4037bae3a8f67a95494cd.png?​400}}\\+
    
 +  - Run the program! Click on the play icon in the lower right corner of your EV3 software window. If you don't see the play icon, make sure your LEGO brick is powered on, finished booting, and connected to your computer via a USB cable.\\
 +{{wiki:​img:​aa5d26848e8509a94a41c8bc66ed36125ee5af36.png}}\\
 +
   - Move the object that you taught Pixy in front its camera lens. The track program simply adjusts the angle of the robot so that it always faces your object. It doesn'​t chase your object, it just "​faces"​ your object, but it's quick!\\   - Move the object that you taught Pixy in front its camera lens. The track program simply adjusts the angle of the robot so that it always faces your object. It doesn'​t chase your object, it just "​faces"​ your object, but it's quick!\\
    
wiki/v2/lego_chase_demo.txt · Last modified: 2019/01/30 23:28 by pixycam