Load, crop, and save an image with OpenCV 3 and Python 3 on Raspberry Pi 2

Michael Jordan was one of the greatest athletes in the world. He was the best NBA player in his era. This legendary picture shows how he tormented Utah Jazz during his 1998 NBA Final game with the Chicago Bulls with his phenomenal ‘last shot’. But, what would happen if he…

Raspberry Pi + Pololu Maestro + Python3 + Tornado + Servo Control Part 3

So we have all the backbone software ready as discussed in Part 2, now we want to create the interface. We basically need JQuery to handle the button interaction. Once a button is clicked, it will send a command to the server via WebSocket. The server needs to relay the…

Raspberry Pi + Pololu Maestro + Python3 + Tornado + Servo Control Part 2

In Part 1 we discussed ways to connect all the hardware together. For there software component, there are 4 different technologies involved: Device.py, which provides byte commands to Pololu Maestro discussed previously. DeviceController.py, which provides servo control via function calls on the Device Driver object. TornadoServer.py, which serves the web…

How to play piezo buzzer tunes on Raspberry Pi GPIO with PWM

1. Connect the red wire of the buzzer to GPIO Pin 5 and the black one to GPIO ground 2. Copy the following code into buzzer.py 3. Run it with this command: sudo python3 buzzer.py 4. You can also use this as a module in your robot project. import RPi.GPIO…