<< return to Pixycam.com

User Tools

Site Tools


wiki:v2:my_arduino_isn-27t_receiving_data_from_pixy

Differences

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

Link to this comparison view

Next revision
Previous revision
wiki:v2:my_arduino_isn-27t_receiving_data_from_pixy [2018/04/09 21:52]
jfrench - Imported by DokuWiki Advanced Plugin
wiki:v2:my_arduino_isn-27t_receiving_data_from_pixy [2018/12/12 22:39] (current)
jfrench
Line 4: Line 4:
  
 ====== My Arduino isn't receiving data from Pixy ====== ====== My Arduino isn't receiving data from Pixy ======
 +
 +
 +===== 0. Teach Pixy2 an object. =====
 +If you haven'​t already, go ahead and [[wiki:​v2:​teach_pixy_an_object_2|teach Pixy2 an object]]! Otherwise the Arduino will give an error like this: "​Starting...error:​ no response"​
  
  
 ===== 1. Check the Arduino cable. ===== ===== 1. Check the Arduino cable. =====
  
-Make sure the Arduino cable is plugged into the ICSP connector on your Arduino correctly. It's possible to plug in the cable backwards and shifted over forward/​backward or left/right. Make sure the cable is plugged in as shown in the picture below. .\\+Make sure the Arduino cable is plugged into the ICSP connector on your Arduino correctly. It's possible to plug in the cable backwards and/or shifted over forward/​backward or left/right. Make sure the cable is plugged in as shown in the picture below. .\\
 {{wiki:​img:​ce5166e65a245cce097741efef288fe09b08da8a.jpg?​400}} {{wiki:​img:​ce5166e65a245cce097741efef288fe09b08da8a.jpg?​400}}
  
Line 29: Line 33:
  
  
-===== 4. You need to be running ​the "default program". =====+===== 4. Run the "ccc_hello_world" ​example on your Arduino. =====
  
-The "​default program" ​is the program ​that's run by default when Pixy powers up. This program detects objects ​and sends the corresponding information out of the SPI port to your Arduino. If you're running PixyMon and running the "​Pan/​tilt demo" or are in "​Raw"​ or "​Cooked"​ modes, no data will be send out of the SPI port.+Use Arduino code that is known to work. The ccc\_hello\_world example ​is a good, simple ​program ​for testing communications between ​Pixy and Arduino.
  
-You will know that your Pixy is running the default program when the LED on your Pixy glows when it detects objects, or you see a black background on PixyMon with white rectangles. If the LED isn't glowing / you don't see black rectangles, either Pixy isn't detecting objects at the moment (or it hasn't been taught an object) or Pixy isn't running the "​default program"​. 
  
- +===== 5. Make sure you're running the Arduino IDE version 1.0.5 or later. =====
-===== 5. Run the "​hello_world"​ example on your Arduino. ===== +
- +
-Don't run the "​i2c"​ or "​uart"​ examples. These are other modes of communication and won't work with the included Arduino cable. +
- +
- +
-===== 6. Make sure you're running the Arduino IDE version 1.0.5 or later. =====+
  
 Previous versions have issues with SPI communication. Previous versions have issues with SPI communication.
  
  
-===== 7. Make sure the "Data out port" in the Config Parameters dialog under "​Interface"​ is set to "​Arduino ICSP SPI". =====+===== 6. Make sure the "Data out port" in the Config Parameters dialog under "​Interface"​ is set to "​Arduino ICSP SPI". =====
  
 See the picture below.\\ See the picture below.\\
Line 52: Line 49:
  
  
-===== 8. What Arduino flavor are you using? ===== +===== 7. Inspect the Arduino cable. =====
- +
-There are lots of Arduino variants out there. The Arduino Uno and its variants and the Due are known to work. +
- +
- +
-===== 9. Inspect the Arduino cable. =====+
  
 We test all Arduino cables, but it may be worthwhile to inspect it and make sure the it's correct or not damaged. Compare your cable to the pictures below. We test all Arduino cables, but it may be worthwhile to inspect it and make sure the it's correct or not damaged. Compare your cable to the pictures below.
wiki/v2/my_arduino_isn-27t_receiving_data_from_pixy.1523310723.txt.gz · Last modified: 2018/04/09 21:52 by jfrench