Game programming: Your first pygame code!

Install pygame to Python 3. We don’t want to re-invent the wheels. Follow this tutorial to get pygame installed on your system: http://danielj.se/2012/06/16/how-to-install-pygame-to-python-3-on-ubuntu/ Once you got it all set up, type the following game in your editor, save it as hellogame.py, and run it with python3 hellogame.py import pygame, sys…

DIY Surveillance Camera with Raspberry Pi Camera Module and Pan & Tilt kit

Ingredients 1. Raspberry Pi B. 2. Raspberry Pi Camera Module, a longer 50cm meter ribbon wire will be nicer to allow further movements. 3. Servo controller like Raspy Juice from www.2wattelements.com. 4. 4GB SD Card with Raspbian installed. 5. USB Wifi dongle. 6. 12V 3A Power via battery or wall…

Taking pictures and video with Python 3 and Raspberry Pi Camera module

Plug the camera module into the designated port of your Raspberry Pi. Then enable the camera via raspi-config. There are many tutorials on how to do this. We don’t want to bore you. Install picamera library for Python 3: sudo apt-get install python3-picamera Write and save the following in a…

How to install SMBus i2c module for Python 3

SMBus module worked well with Python 2, but not 3. SMBus is required to program i2c devices connected to Pi GPIO i2c pins such as the Raspy Juice servo controller. Update: As of the latest version of Raspbian 4.1.6 you could simply run: sudo apt-get update sudo apt-get install python3-smbus…

Install USB Wifi Dongle Realtek 8188 Driver on Raspbery Pi 2

Regardless of the dongle manufacturer, any wifi dongle that uses Realtek 8188 chip is known to be fast and reliable. However Raspbian does not have a native support out-of-the-box. We need to manually install the driver before we can use it. Update your Rasbpian: sudo apt-get update (Optional) If you…

« Previous PageNext Page »