July 23, 2012 AT 11:30 am

GUI and GPIO on Raspberry Pi

Matt Richardson writes:

While experimenting with Raspberry Pi, I cobbled together examples for the Raspberry Pi’s GPIO module for Python and the Tkinter modules for creating graphical user interfaces with Python. I got them working together pretty easily.

The example here might be a bit underwhelming, but I’m really excited about the potential for something like this. Having access to a board that can drive a monitor-based interface in addition to GPIO means simpler designs for projects that need both. Best of all, it can all be done in one file of code.

raspberry-gpio-python: http://code.google.com/p/raspberry-gpio-python/
Tkinter: http://wiki.python.org/moin/TkInter

The code I used (it’s super sketchy, but does the job): https://gist.github.com/3163938

Window-247 Window-248

Adafruit Pi Cobbler Breakout Kit for Raspberry Pi. Now that you’ve finally got your hands on a Raspberry Pi® , you’re probably itching to make some fun embedded computer projects with it. What you need is an add on prototyping Pi Cobbler from Adafruit, which can break out all those tasty power, GPIO, I2C and SPI pins from the 26 pin header onto a solderless breadboard. This mini kit will make “cobbling together” prototypes with the Pi super easy.

Window-1-144

The Pi Cobbler mini kit comes with a 26 pin ribbon cable, a custom PCB, ribbon cable socket and header pins. A little soldering is required to put it together but its really easy, even a beginner can do it in 15 minutes so please click to read the tutorial Once soldered together, the cable plugs between the Pi computer and the Cobbler breakout. The Cobbler can plug into any solderless breadboard (or even a prototyping board like the PermaProto). The Cobbler PCB has all the pins labeled nicely so you can go forth and build circuits without keeping a pin-out printout at your desk. We think this will make it more fun to expand the Pi and build custom circuitry with it.

Window-2-79

Please note, this kit only contains a 26 pin ribbon cable, a custom PCB, ribbon cable socket and header pins. A Raspberry Pi, breadboard, breadboarding wires, cables, components, case, power supply, etc is not included! We do stock many of those items in the shop, so check those out as well!

What is the Raspberry Pi® ? A low-cost ARM GNU/Linux box.

The Raspberry Pi® is a single-board computer developed in the UK by the Raspberry Pi Foundation with the intention of stimulating the teaching of basic computer science in schools. The design is based on a Broadcom BCM2835 system on a chip (SoC), which includes an ARM1176JZF-S 700 MHz processor, VideoCore IV GPU, and 256 megabytes of RAM. The design does not include a built-in hard disk or solid-state drive, instead relying on an SD card for booting and long-term storage. The Foundation plans to support Fedora Linux as the initial system software package/distribution, with support for Debian and Arch Linux as well – Wikipedia.

Raspberry Pi® is a trademark of the Raspberry Pi Foundation.

Related

No Comments

No comments yet.

Sorry, the comment form is closed at this time.