How to use your Raspberry Pi like an Arduino

piGPIO

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

Window-207

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.

Window-1-122

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.


Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7:30pm ET! To join, head over to YouTube and check out the show’s live chat and our Discord!

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

Join over 38,000+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord

CircuitPython – The easiest way to program microcontrollers – CircuitPython.org


New Products – Adafruit Industries – Makers, hackers, artists, designers and engineers! — New Products 11/15/2024 Featuring Adafruit bq25185 USB / DC / Solar Charger with 3.3V Buck Board! (Video)

Python for Microcontrollers – Adafruit Daily — Python on Microcontrollers Newsletter: A New Arduino MicroPython Package Manager, How-Tos and Much More! #CircuitPython #Python #micropython @ThePSF @Raspberry_Pi

EYE on NPI – Adafruit Daily — EYE on NPI Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey

Adafruit IoT Monthly — The 2024 Recap Issue!

Maker Business – Adafruit Daily — Apple to build another chip at TSMC Arizona

Electronics – Adafruit Daily — SMT Tip – Stop moving around!

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


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.