Posts: 2
Joined: Sun Dec 30, 2012 8:10 am

Raspberry Pi + Arduino without GPIO

Sun Oct 28, 2018 11:53 am


I'm aware there is currently a discussion regarding communication between the Raspberry Pi and an Arduino but it doesn't match what I'm after and I didn't want to derail the OPs discussion.

Essentially I am creating a small electronic badge using a Raspberry Pi 3 B+ with a Hyperpixel 4 Touchscreen. The raspberry pi runs an apache web server where I have my the framework for my badge.

From what I gather the GPIO pins are all in use so the only alternative I have is communication over serial via USB. What I'm hoping to achieve, at least initially, is for an arduino + microphone to listen to music and detect the beat. This beat will then be sent to the raspberry pi to control a "party" animation on one of the pages.

I've had limited success with a serial library for PHP but it's just impractical when the beat from the arduino can be dynamic. Are there any other alternatives I'm missing?

I was considering Involt with the ARM build but wanted to increase my pool of options before I explored it.



What I've also tried, and it will work, is to use a Pro Micro to emulate a keyboard and send a keypress which a script on the webpage interprets. This is my current method but leaves a lot to be desired as well.

Posts: 4134
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: Raspberry Pi + Arduino without GPIO

Sun Oct 28, 2018 4:50 pm

Why not use WiFi - some Arduino cards have WiFi built in (8266 for example) while others can have a ‘shield’ dropped on top.

Another option would be Bluetooth - less power hungry.

This Instructable has USB to USB ... unication/

Going by the notes, the board uses a DPI connection OR I2C so I get the feeling the majority of the pins in the last mode are used for physical support only :roll:

To see how the pins are used in DPI mode, have a look here
Need Pi spray - these things are breeding in my house...

Return to “General programming discussion”