This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
wiki:v2:hooking_up_pixy_to_a_microcontroller_-28like_an_arduino-29 [2018/09/26 16:01] pixycam |
wiki:v2:hooking_up_pixy_to_a_microcontroller_-28like_an_arduino-29 [2020/02/26 19:41] jfrench [Troubleshooting] |
||
---|---|---|---|
Line 19: | Line 19: | ||
Next, download the latest Arduino library "arduino\_pixy2-x.y.z.zip" [[https://pixycam.com/downloads-pixy2/|here]]. Bring up the Arduino IDE and import the Pixy library by selecting **Sketch➜Include Library➜Add .ZIP Library...** (or if you're using an older version **Sketch➜Import Library**) in the Arduino IDE, and then browsing to the Arduino zip file that you just downloaded. | Next, download the latest Arduino library "arduino\_pixy2-x.y.z.zip" [[https://pixycam.com/downloads-pixy2/|here]]. Bring up the Arduino IDE and import the Pixy library by selecting **Sketch➜Include Library➜Add .ZIP Library...** (or if you're using an older version **Sketch➜Import Library**) in the Arduino IDE, and then browsing to the Arduino zip file that you just downloaded. | ||
- | Next, load the "ccc\_hello\_world" example by selecting it in **File➜Examples➜Pixy2**. Upload it and bring up the **Serial Monitor** which can be found in **Tools➜Serial Monitor**. Also be sure to set the Serial Monitor baud rate to 115200 baud. You should see messages printed in the Serial Monitor window that look similar to this: | + | Next, load the "ccc\_hello\_world" example by selecting it in **File➜Examples➜Pixy2**. Upload it and bring up the **Serial Monitor** which can be found in **Tools➜Serial Monitor**. Also be sure to set the Serial Monitor baud rate to 115200 baud, which is selectable at the bottom of the Serial Monitor window. |
+ | |||
+ | |||
+ | {{wiki:v2:image_521.png}} | ||
+ | |||
+ | |||
+ | You should see messages printed in the Serial Monitor window that look similar to this: | ||
<code> | <code> | ||
Line 73: | Line 79: | ||
Before installing a new version of the Arduino Library, it's recommended that you delete the existing library. To do this, you can go into your C:\Users\<yourname>\Documents\Arduino\libraries (or similar directory, <yourname>/Documents/Arduino in OSX and Linux) and remove the Pixy2 directory. Then re-run the Arduino IDE. | Before installing a new version of the Arduino Library, it's recommended that you delete the existing library. To do this, you can go into your C:\Users\<yourname>\Documents\Arduino\libraries (or similar directory, <yourname>/Documents/Arduino in OSX and Linux) and remove the Pixy2 directory. Then re-run the Arduino IDE. | ||
+ | |||
+ | |||
+ | ==== Troubleshooting ==== | ||
+ | |||
+ | If you get the message "error: no response" from the Arduino serial monitor, first make sure your Pixy2 is running the ccc (color connected components) program from PixyMon, and that you have taught it an object as described [[wiki:v2:teach_pixy_an_object_2|here]]. | ||
+ | |||
+ | {{:wiki:v2:error_no_response.png?600|}} | ||
+ | |||
+ | === Zumo Errors === | ||
+ | If you're using Arduino Due, you may get an error like this when compiling: | ||
+ | ''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! |