It sorts Lego. At least, that's the idea :-)
It uses computer vision to analyse the brick(s) in front of the camera. Based on [size|shape|colour] it then tilts a platform driven by a two servos to drop it into the right box.
$ git clone https://github.com/bramfoo/LegoSorted.git
$ pip install adafruit-pca9685 picamera
...
The roadmap is as follows:
- ...
- Raspberry Pi 3
- Raspberry Pi camera
- Makeblock pan-tilt kit
- Adafruit 6-Channel 12-bit PWM/Servo Driver
- picamera
- Adafruit PCA9685 library, Python library to drive servos connected to the Adafruit 16-channel PWM board
- OpenCV
The following sources of information were used/helpful
- Adafruit 16-channel PWM instructions, simple instructions on how to connect/use the PWM board
- PiCamera docs, the PiCamera documentation