Pixy Color Following Robot With Uno

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
randallcp
 
Posts: 1
Joined: Sun Mar 30, 2014 8:43 pm

Pixy Color Following Robot With Uno

Post by randallcp »

"Due to the pin assignments of the Zumo robot shield, this project will not work with an Uno or other Atmega 328-based processor."
Does this mean i can't do anything in the code or the electronics to make this project with an Arduino Uno rather than the Leonardo used in the tutorial? And are the following compiling errors the result in attempting to use an Uno rather than Leonardo?

pixyBot:90: error: 'Pixy' does not name a type
pixyBot:95: error: 'ZumoMotors' does not name a type
pixyBot.ino: In function 'void setup()':
pixyBot:105: error: 'pixy' was not declared in this scope
pixyBot.ino: In function 'void loop()':
pixyBot:116: error: 'pixy' was not declared in this scope
pixyBot:127: error: 'motors' was not declared in this scope
pixyBot.ino: In function 'int TrackBlock(int)':
pixyBot:149: error: 'pixy' was not declared in this scope
pixyBot:160: error: 'pixy' was not declared in this scope
pixyBot.ino: In function 'void FollowBlock(int)':
pixyBot:188: error: 'pixy' was not declared in this scope
pixyBot:202: error: 'motors' was not declared in this scope
pixyBot.ino: In function 'void ScanForBlocks()':
pixyBot:227: error: 'motors' was not declared in this scope
pixyBot:232: error: 'motors' was not declared in this scope
pixyBot:238: error: 'pixy' was not declared in this scope

Because i already have an Arduino Uno, i would like to use it for this project while keeping the Zumo Robot shield as the platform. But if i have to buy the Leonardo, i will.

Here is the project: https://learn.adafruit.com/pixy-pet-rob ... m/overview

Any ideas?

Thanks!

User avatar
adafruit_support_bill
 
Posts: 88091
Joined: Sat Feb 07, 2009 10:11 am

Re: Pixy Color Following Robot With Uno

Post by adafruit_support_bill »

Does this mean i can't do anything in the code or the electronics to make this project with an Arduino Uno rather than the Leonardo used in the tutorial?
There is a pin conflict when using the Uno and there is no software workaround. The processor talks to the Pixy via SPI, but the Zumo shield uses some of the UNO SPI pins for motor control. The Leonardo SPI interface uses only the ICSP header, so there is no pin conflict when using the Leonardo.
And are the following compiling errors the result in attempting to use an Uno rather than Leonardo?
No. Those errors indicate that the compiler was not able to find either the Pixy or Zumo libraries in the expected location. Make sure that both libraries are installed according to these instructions: http://learn.adafruit.com/adafruit-all- ... nstall-use

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”