Pixy2 Camera with AVR

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Does anyone have any experience with programming the Pixy2 Camera with an AVR? Im looking about 4 libraries deep into arduino code because thats the only code available for the pixy2 but it has several output methods and I would like to know how to just detect a colored object and extract the x-y coordinates of that object to my avr.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

kepe88578 wrote:
just detect a colored object
Do you mean a plain coloured object on a plain background? Anything else is probably beyond the processing power of an AVR - I'd be looking at using a 1GHz Rpi and OpenCV for anything more complex.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The pixy camera does all the work on-board. It uses I2C, USART, SPI, and several other methods of outputting the values of where the colored object is. All the avr is gonna do is interpret the value the pixy is outputting and will tell me whether the object is in the proper location or not.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

kepe88578 wrote:

The pixy camera does all the work on-board. It uses I2C, USART, SPI, and several other methods of outputting the values of where the colored object is. All the avr is gonna do is interpret the value the pixy is outputting and will tell me whether the object is in the proper location or not.

 

Did you make any progress? I am trying to do same thing, but the lack of information is very challenging for my level.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 

kepe88578 wrote:
The pixy camera does all the work on-board

So nothing really specific to AVR.

 

WoodPecker33 wrote:
the lack of information is very challenging for my level

What level is that?

 

If, as kepe88578 said, the Pixy is doing all the work, there shouldn't be much specific to the AVR - so any information from any other platform should be applicable ...

 

EDIT

 

The Pixy2 page shows it connected to an AVR (an Arduino):

 

 

https://pixycam.com/pixy2/

 

And has support forums:  https://forum.pixycam.com/

 

So that would seem an obvious place to start?

 

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
Last Edited: Tue. Dec 31, 2019 - 01:58 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm ending Electrical and Computer Engineering degree this year, it's for a project i have, but never used SPI before, and it's connected to an ATMEGA328P, which controls an AGV(line follower in this case), i think i over reacted on my level sorry:)(i have to deliver it in a few days that's why ahah)