This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
wiki:v2:pixy_zumo_howto [2019/01/28 23:32] jfrench [Troubleshooting] |
wiki:v2:pixy_zumo_howto [2019/02/15 21:37] (current) jfrench |
||
---|---|---|---|
Line 10: | Line 10: | ||
* [[https://pixycam.com/pixy2/|Pixy2]] | * [[https://pixycam.com/pixy2/|Pixy2]] | ||
* [[https://pixycam.com/pixy2-pan-tilt-kit/|Pixy2 pan-tilt kit]] | * [[https://pixycam.com/pixy2-pan-tilt-kit/|Pixy2 pan-tilt kit]] | ||
- | * Zumo robot for Arduino, [[https://www.pololu.com/product/2509|unassembled kit]] or [[https://www.pololu.com/product/2510|assembled]] | + | * Zumo robot for Arduino, [[https://www.pololu.com/product/2509|unassembled kit]] or [[https://www.pololu.com/product/2510|assembled]] (note that the new 32U4 Zumo model will not work with this tutorial!) |
* 2 [[https://www.pololu.com/product/3063|50:1 geared motors]] (not needed if you buy Zumo assembled) | * 2 [[https://www.pololu.com/product/3063|50:1 geared motors]] (not needed if you buy Zumo assembled) | ||
* Arduino Uno or similar | * Arduino Uno or similar | ||
Line 185: | Line 185: | ||
- | 3. With the robot on its "lift" (so it doesn't run off) hold the object directly in front of the robot, centered, about a foot from Pixy2's lens. Both of Zumo's treads should be moving forward. Move the object to the right. Zumo's left tread should accelerate. Move the object to the left. Zumo's right tread should accelerate. If one or more of the treads moves incorrectly or doesn't move at all, inspect the motor connections to Zumo's PCB, and use the Zumo test program (above) to better characterize how the motion is incorrect. | + | 3. With the robot on its "lift" (so it doesn't run off) hold the object directly in front of the robot, centered, about a foot from Pixy2's lens. Both of Zumo's treads should be moving forward. Move the object to the right. Zumo's left tread should accelerate. Move the object to the left. Zumo's right tread should accelerate. If one or more of the treads moves incorrectly or doesn't move at all, inspect the motor connections to Zumo's PCB, and use the Zumo test program (above) to better characterize how the motion is incorrect. |
- | |||
- | **Note:** if you're using Arduino Due or Mega, you will probably get an error like this: | ||
- | |||
- | ''libraries\Pixy2\ZumoBuzzer.cpp:90:5: error: expected constructor, destructor, or type conversion before '(' token'' | ||
- | |||
- | In that case, just go into your Pixy library and delete the following 4 files: | ||
- | |||
- | {{:wiki:v2:todelete.png}} | ||
- | |||
- | It should then compile! | ||
===== Running the line demo ===== | ===== Running the line demo ===== |