SALE EXTENDED! 15% off! Use the code BLACKFRIDAY15 on checkout *some restrictions apply.

June 18, 2012 AT 1:00 pm

How to use your Raspberry Pi like an Arduino


Tedb0t writes:

Finally got to experiment with the Raspberry Pi’s GPIO (General Purpose Input/Output) pins. I tried three methods: Python, Bash and C, and will describe each.

via MAKE


GPIO Ribbon Cable for Raspberry Pi®. That new Raspberry Pi® computer you just got has a row of 2×13 pin headers soldered on – those are the GPIO (general purpose input/output) pins and for those of us who like to hack electronics they are where the real fun is. By programming the Pi, you can twiddle those pins high or low, send and receive I2C and SPI data, and access the 3V and 5V power rails.


If you want to bridge those contacts out onto another PCB, you’ll want this cable! It’s 6″ long and has 26 socket & wire sets. Pin #1 is marked with a red wire. If you have one of our nice Pi Box cases, you can even have this plugged in while the case is closed by passing the ribbon cable through the slot on the side.

Check out all the Circuit Playground Episodes! Our new kid’s show and subscribe!

Have an amazing project to share? Join the SHOW-AND-TELL every Wednesday night at 7:30pm ET on Google+ Hangouts.

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Learn resistor values with Mho’s Resistance or get the best electronics calculator for engineers “Circuit Playground”Adafruit’s Apps!

Maker Business — “Finally — some data on whether crowdfunding is a good investment or not”

Wearables — Sample code is your new best friend

Electronics — Meaningful gains

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at !

1 Comment

  1. Very nice! I was just coming here to share this with you. I can’t wait to GET a Pi… uhg.. tough livin’ with out some Pi and Icecream :)

Sorry, the comment form is closed at this time.