Pixy2: Fast Recognition of Moving Shapes and Colours
October 10, 2019
on
on
Since the antique light dependent resistors which were sometimes called – a little pompously – photoconductive cells, light detection has always been one of the holy grails of electronics. They have been used for all kinds of functions which mainly fall into the category of motion detection. Slowly, detection techniques have evolved, somewhat laboriously, into what we now call recognition of shapes, colours and movement. Today we have complete cameras the size of one of these cells from yesteryear, and also processors capable of transforming their coloured images into signals, and processing them at a speed which allows them to be used for real-time tracking. That’s the case with the Pixy2, a tiny intelligent image capturing sensor which may be optionally mounted on a pan-tilt support. The module weighs only 10g!
Getting to grips with these artificial vision modules is easy, because they connect directly to experimental boards like Arduino, Raspberry Pi or Beagle Bone.
Rest easy, you don’t need a rat’s nest of wires to get started. Pixy’s manufacturers have thoughtfully supplied a cable which plugs into the Arduino. And for the RPi, a simple USB cable will do.
For other platforms, Pixy2 has on board several other communication interfaces: SPI, I²C, UART, with simple and mostly well-tested protocols.
Libraries for Arduino and C/C++ are available to users. In Linux environments (like RPi) programming in Python is facilitated by an API.
A bar code detector is integrated into the line-following algorithm.
When I told you they’ve thought of everything, there are even three small lights to see more clearly!
60 images per second
The automation possibilities offered by these components and their associated software are phenomenal. For a few tens of Euros you can construct a tracking robot with artificial vision and close to instantaneous processing time. It would be difficult to imagine something more exciting to introduce programming to young people.Getting to grips with these artificial vision modules is easy, because they connect directly to experimental boards like Arduino, Raspberry Pi or Beagle Bone.
Rest easy, you don’t need a rat’s nest of wires to get started. Pixy’s manufacturers have thoughtfully supplied a cable which plugs into the Arduino. And for the RPi, a simple USB cable will do.
For other platforms, Pixy2 has on board several other communication interfaces: SPI, I²C, UART, with simple and mostly well-tested protocols.
The whole line is Open Source
Everything is open on the Pixy2: the software, the firmware and the hardware. And very well documented, with lots of application examples. Pixy2 can also be used with Windows, Mac or Linux. There’s even a version of Pixy for LEGO Mindstorms!Libraries for Arduino and C/C++ are available to users. In Linux environments (like RPi) programming in Python is facilitated by an API.
A bar code detector is integrated into the line-following algorithm.
When I told you they’ve thought of everything, there are even three small lights to see more clearly!
Characteristics
- Processor: NXP LPC4330, 204 MHz, double core
- Sensor: Aptina MT9M114, 1296×976 resolution with image processing
- Angle of view: 60 degrees H, 40 degrees V
- Power Consumption: typ. 140 mA
- Power: USB (5 V) or unregulated (6 V to 10 V) inputs
- RAM: 264 KBytes
- Flash Memory: 2 MBytes
- Data I/O: serial UART, SPI, I²C, USB, digital, analogue
- Dimensions: roughly 4 x 4 cm
- Weight: 10 g
- Incorporated lighting (approx. 20 lumens)
Read full article
Hide full article
Discussion (0 comments)