background preloader

Raspberry Pi

Raspberry Pi
Update: 14th May, 2013 wiringPi version 2 has been released and now has its own website ( to look after it. Most of the documentation on the projects site has been copied over to it the new site, but there may still be 1 or 2 pages that are still missing. I’d encourage you to use the new site if possible where there will be a forum and wiki. The following tables give the mapping of the Raspberry Pi GPIO Pins to the GPIO connector in relation to the pin numbers and the physical location on the connector. This is a representation of the GPIO connector as viewed looking at the board from above, with the USB power at the top and the GPIO to the top-right of the board. If using the connector pin numbering, then note that Pin 1 on the connector is the 3.3v supply. P1: The Main GPIO connector: Board Revisions: Please note the differences between board revisions 1 and 2 (R1 and R2 above) P5: The auxilliary GPIO connector present on Rev. 2 boards only: Each side has three columns.

Related:  Raspberry

How to create a time lapse video with Raspberry Pi After installing a Pi camera module and capturing pictures and videos with raspistill and raspivid commands, I wanted to create a time lapse video of the nice scenery that I have in the back of my apartment. For those who don't know what it is, time-lapse video (or often-called time-lapse photography) is a shooting technique where contiguous photo frames of a changing scene are captured for an extended period of time in a much lower rate than a typical video frame rate. When the collected frames are played back in a faster frame rate, it creates a so-called "time-lapsing" effect.

Raspberry Pi and GPIO Permissions It works! Okay, back up a little. Getting a PHP web interface to talk to hardware proved to be rather difficult. Wiring Pi Pin numbering of the BCM2835 GPIO port(s) on the Raspberry Pi has been a source of great confusion since the designs for the Pi were first published. In the early days (even before hardware was available) the default usable GPIO pins were simply referred to by number as GPIO0 through GPIO7. Additionally there were pins for other purposes, SPI, I2C and serial.

Coder Projects Things to make. Stuff to learn. Looking for something to do this weekend? Coder Projects are simple, fun, and sneakily educational things that can all be made with Coder and Rasberry Pi. Browse the list below to see what catches your eye, or if you feel inspired, contribute your own project to the site. WebIOPi : control your Pi’s GPIO with a browser ! WebI0Pi 0.6 has been released, click here for details. I’m proud to present my new project, WebIOPi. This is a web application which allows you to control your Raspberry Pi’s GPIO. Adafruit's Raspberry Pi Lesson 4. GPIO Setup The diagram below show the pins on the GPIO connector for a Raspberry Pi Version 1 (which is what existed when this tutorial was released) Version 2 has pin 27 replacing pin 21 but it otherwise the same As well as supplying power (GND, 3.3V and 5V) all the GPIO pins can be used as either digital inputs or outputs. The pins labelled SCL and SDA can be used for I2C.

RPi Beginners Back to the Hub Getting Started: Buying Guide - for advice on buying the Raspberry Pi. SD Card Setup - for information on how to prepare the SD Card used to boot your Raspberry Pi. Basic Setup - for help with buying / selecting other hardware and setting it up. Beginners Guide - you are up and running, now what can you do? Lighting an LED on the Raspberry Pi Since getting a Raspberry Pi I’ve wanted to use the GPIO pins, but have tried to heed the various warnings regarding static and other issues one might face like using 3.3v vs 5v devices or how much power peripherals draw. I could have started clipping onto the pins directly, but decided to progress cautiously and get them in a more test friendly environment. Not that I wont fry anything now, I’m just trying to be methodical about it. So I went out and purchased a breakout kit for it and followed the guide on soldering it together. Since, I’ve completed a similar experiment on the Arduino, I thought my first one on the Pi should be something along the lines of lighting an LED.

How to use interrupts with Python on the Raspberry Pi and RPi.GPIO The latest big news in the world of Raspberry Pi Python GPIO programming is that Ben Croston has released an update for RPi.GPIO. Why is that a big deal? Because this version has interrupts. Cheat Sheet - Physical Computing with Raspberry Pi Basic GPIO Access Setup Raspberry Pi GPIO pin layout. Python Multithreaded Programming Running several threads is similar to running several different programs concurrently, but with the following benefits − Multiple threads within a process share the same data space with the main thread and can therefore share information or communicate with each other more easily than if they were separate processes.Threads sometimes called light-weight processes and they do not require much memory overhead; they care cheaper than processes. A thread has a beginning, an execution sequence, and a conclusion. It has an instruction pointer that keeps track of where within its context it is currently running. It can be pre-empted (interrupted)It can temporarily be put on hold (also known as sleeping) while other threads are running - this is called yielding. Starting a New Thread

Raspberry Pi and the Serial Port Raspberry Pi and the Serial Port By default the Raspberry Pi’s serial port is configured to be used for console input/output. Whilst this is useful if you want to login using the serial port, it means you can't use the Serial Port in your programs. Easy threading with Futures To run a function in a separate thread, simply put it in a Future: >>> A=Future(longRunningFunction, arg1, arg2 ...) It will continue on its merry way until you need the result of your function. You can read the result by calling the Future like a function, for example: >>> print A()