background preloader

Tutorial: How to use your Raspberry Pi like an Arduino

Raspberry Pi Enclosure by builttospec This laser cut Raspberry Pi enclosure design features light pipes for the status LEDs and obscures the T-slots for a nice clean looking enclosure. All off board connectors are accessable with the top off and you can use standard ribbon cable connectors through the case to hook up the expansion header as well. Spacing of the top layers have been adjusted so these should be compatible with pi plates when they become availiable with minimal additional hardware. UPDATE: The design has been updated to support both the models of the Raspberry Pi board (A & B) and include better standoffs. Black acrylic kits are available here: And a limited number of translucent purple acrylic kits are available here:

RaspberryPi @Homelabs » RaspberryPi the Arduino Development Tool Not really too much to say here. There has been much talk on the forums about using arduino and similar systems to provide additional IO capabilities for the RaspberryPi. So I decided to take things a little further and discover whats needed to use the RaspberryPi itself as a development platform using the Arduino IDE. Following the simple steps below, it is possible to install, and run the arduino IDE, and then re program your USB connected arduino. I’m not going to go into too much detail, but simply provide you with the recipe to replicate my success Firstly log on using the pi user (I did it over ssh). wget tar zxvf arduino-1.0-linux64.tgz sudo apt-get install avr-libc sudo apt-get install libftdi1 sudo apt-get install avrdude sudo apt-get install openjdk-6-jre sudo apt-get install librxtx-java cd arduino-1.0 for i in $(find . pi@rasp:~$ cd arduino-1.0/ pi@rasp:~/arduino-1.0$ .

Ultimate Raspberry Pi Set-up Kit ModMyPi's Raspberry Pi Ultimate Kit has everything contained in the Supreme Kit with the addition of a USB Hub, Wifi Dongle, Bluetooth Dongle, Heatsink Kit and SD Card Reader! We've carefully compatibility tested all components, and only selected the very best manufacturer guaranteed, high quality parts available! You won't find a better kit at a better price, and all our kits are fully customisable from our huge range of Raspberry Pi accessories, cases and cable colours! This kit does NOT include a Raspberry Pi ModMyPi's Raspberry Pi Ultimate Kit Includes: - Raspberry Pi Case of Your Choice - Including ModMyPi, Cyntech, PiBow's and more! Click the links above for information on the available choices, and customise your kit on the right hand side! Any EU, US or AUS products marked with *** consist of a UK plug with regional adapter. Set Up Kit Key - Includes Raspberry Pi - Starter Kit - Supreme Kit - Ultimate Kit

Dr. Monk's DIY Electronics Blog: raspberry pi The Raspberry Pi has some competition, in the shape of the BeagleBone Black. I thought it might be useful to compare these two boards and highlight their relative advantages. Both boards are Linux-based single board computers about the size of a credit card. About the Raspberry Pi The Raspberry Pi, managed to create a huge amount of interest around the world, even before its release. While the project started in the UK as a platform for getting kids to learn to program, the board has been adopted around the world as a platform for hobbyists and educationalists. About the BeagleBone Black Historically, the BeagleBone Boards have been around for a while selling at around the $85 mark. Features Lets start comparing some of the features of these two boards. Operating System Both devices have a number distributions available for them. The 'standard' and most used distribution for Raspberry Pi is 'Raspbian' which is based on Debian. Processor and Memory Connectors Expansion Boards Power Consumption

The proper way to put an Arduino in a Raspberry Pi For all their hoopla, the GPIO pins on the Raspberry Pi aren’t terribly useful on their own. Sure, you can output digital data, but our world is analog and there just isn’t any ADCs or DACs on these magical Raspi pins. The AlaMode, a project designed by [Kevin], [Anool], and [Justin] over at the Wyolum OSHW collaborative aims to fix this. They developed a stackable Arduino-compatable board for the Raspberry Pi. Right off the bat, the AlaMode plugs directly into the GPIO pins of the Raspberry Pi. A lot of unnecessary cruft is done away with in the AlaMode; There’s no USB port, but it can be programmed directly over the GPIO pins of the Raspberry Pi.

0.3.1a A module to control Raspberry Pi GPIO channels Latest Version: 0.5.4 This package provides a class to control the GPIO on a Raspberry Pi. Note that this module is unsuitable for real-time or timing critical applications. Downloads (All Versions): 281 downloads in the last day 2327 downloads in the last week 9880 downloads in the last month 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. Just install it on your Pi, and use any browser from your network. It’s useful to start enjoying GPIOs and also to debug some circuits without writing any line of code. It also allows to control your Pi’s GPIOs over Internet, so it’s a good starting point for home remote control. You can even fully customize the included UI with few CSS modifications or use the REST API to build your own WebApp. Under Apache License, full doc, code, packages and examples are available on the Google Code project page. Features Supports binary GPIOs, in both input and output.HTML / Javascript / CSS client sideEasily customize UIREST/JSON Web APIServer side available in several technologies PHP/ApachePHP/lighttpdPythonSmartphone compatibleAuto-refresh Check the roadmap for upcoming features

Raspberry Pi and Arduino via GPIO UART | In an attempt to get my Raspberry Pi talking to my Arduino I’m exploring various different options. The first was to just use the USB connection, but that was too simple. So, here is how to connect the two using the UART on the GPIO pins of the Raspberry Pi. To make testing easier I wanted to keep the Arduino’s serial connected via USB to my PC so I can print messages there and read it with the Serial Monitor. To show how this works the Arduino is running a small program that reads from the Raspberry Pi’s and copies this to my PC via USB. By default the Raspberry Pi uses the UART in two ways: Console Messages (including bootup messages)A getty so you can login via serial To use this serial port for your own uses you need to disable these two services. To change the console baudrate, edit /boot/cmdline.txt to look like this (this is all one line): dwc_otg.lpm_enable=0 console=ttyAMA0,9600 kgdboc=ttyAMA0,9600 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait Connected to PC

The Adafruit Learning System Raspberry Pi WebIDE is Ready for Testing #piday #raspberrypi @Raspberry_Pi We finally have the Raspberry Pi WebIDE in a place where we think it is solid enough for an alpha release. First, a disclaimer: this release will likely have bugs, and minor issues, so we recommend that only experienced linux/python users install it for the time being. It is certainly our intention to get this solid and ready for all users, and we will let everyone know when we think it is at that point. Now, onto the good stuff. The quickest way to get up and running is to head on over to and follow the installation and setup instructions written there. As you can see, we are closely tied to Bitbucket, and any code changes you make will be synced to your Bitbucket account. So, first go to to learn how to install and use the WebIDE. Each Friday is PiDay here at Adafruit, be sure to check out our posts, tutorials and new Raspberry Pi related products. Sorry, the comment form is closed at this time.

Raspberry Pi Media Center Rocks My World: Part 1 With over 1,000,000 Raspberry Pi’s in the wild, it wouldn’t surprise me if there are some left unused, tucked away in their boxes, waiting for a killer app. I’m here to tell you that the app is here and you can set it up in about 20 minutes. There is no coding or no command line work involved; You don’t even need a keyboard. It’s likely the most simple thing you can do with your Pi besides removing it from the box. Last year, a 19-year-old developer from London named Sam Nazarko started to port XBMC (Xbox Media Center) over to the Raspberry Pi, hoping to leverage the Pi’s GPU to turn it into an inexpensive HTPC. I’ve been using Raspbmc for the past three months and honestly don’t know how I could get by without it. While there are many guides floating around the internet, I put together a quick one to get you started. To follow along, you’ll need: Step 1 These are the items you'll need to set-up and install Raspbmc on your Raspberry Pi. Step 2 Step 3 Step 4 Step 5 Step 6 Step 7 Step 8 Step 9

$35 Computer: The Vast Possibilities of Raspberry Pi The Raspberry Pi is about the most minimalist computer you can buy. Made of little more than a single circuit board, the $35 computer arrives with no case, keyboard, monitor, or mouse—and, most importantly, no operating system. But a blank slate can be a fun place to start with a computer, especially when, like the Pi, it runs on Linux, an open and collaborative operating system that is receptive to tons of coding tweaks. With a bit of noodling, and some computer leftovers from PCs long retired, you can turn the diminutive computer into anything from a streaming music player to a regular old word-processing, Internet-surfing desktop. Making the Pi The Raspberry Pi comes from England, where Eben Upton and fellow computer scientists at the University of Cambridge set out to improve kids' computer skills. The resulting code-friendly $35 computer is exactly that. I found two Raspberry Pis to experiment with on eBay, since I couldn't get any through regular retail channels. Making the Pi a PC

Raspberry Pi Blog: Using GPIO on Raspberry Pi to blink an LED One of the few things that separates the Pi from other SBC (Single Board Computer) is the ability to use the GPIO (General Purpose Input/Output) pins which can be set as HIGH or LOW to control any external devices. All you need is a female to male jumper wire to get started. Here I have used a HDD IDE connector to get the job done. In this post pin 9 is used for GND and pin 11 for GPIO17. The LED was connected using a 470 ohm register in series with pin 9 and 11 to limit the current. Software Implementation:- The fastest way to get started is to use python which comes pre-installed with all images. import RPi.GPIO as GPIO import time def blink(pin): GPIO.output(pin,GPIO.HIGH) time.sleep(1) GPIO.output(pin,GPIO.LOW) time.sleep(1) return GPIO.setmode(GPIO.BOARD) GPIO.setup(11, GPIO.OUT) for i in range(0,50): blink(11) GPIO.cleanup()