Raspberry Pi and GPIO use in Realdash

Hello there,

I’m currently learning Realdash design on a windows PC and that’s going well but for the size of my dash I’d want to use a Raspberry PI for the final item.
I’m wondering if Realdash can use the Pi’s GPIO for things like indicator left and right, Alternator, High Beam and other warning lights plus using the SPI function of the GPIO pins to pull an analogue value in for the Fuel level?
Aftermarket ECU would feed vehicle speed, engine RPM, Coolant temp etc etc but using PI local GPIO for warning lights etc would be far simpler to execute rather than pass to ECU to then put into Realdash.

Cheers,
Mike

Yes, The Linux version of RealDash can read the status of Raspberry Pi GPIO pins and those can be mapped to any other input in ‘Settings->Units & Values->Input Mapping’

1 Like

Hello,
how do I switch an output? I tried using “set value” to switch “GPIO: Output (Pin 12)” (value 0 & 1), but the connected relay only switches on but not off. Is there another function, or do I need to set a different value?
Thanks!

Try “Toggle Value” action instead.

Can this be done on a Raspberry Pi4b running LineageOS 22.2
image

Typically, using GPIO on Android requires a Rooted device. Not sure how it works on LineageOS though.

Im pretty close to having my project setup but Im having an issue getting RealDash to actually read the GPIO data. I used a python script to setup a few outputs and inputs and tried connecting to them on RD but its not correlating with my changes im making. Basiclly i can set Pin17 (11) to High and it doesnt change an indicator i set in RD for 17. Im getting what i think is an error message from the terminal window when I boot RD, maybe this can point to a solution? Im new to all this linux stuff.. The error I see is on the last line of the terminal it says
[GPIO] v1 symbol missing: gpiod_line_set_value

I googled it and it says something about me having v2 installed instead of 1?
Also, im running the Debian Trixie version, the first option on the PI imager. Should I be running a different OS version? Any help here would be greatly appreciated. Oh and im gonna be using a CarPiHAT for my inputs when I get it all installed.

Yes, sounds like GPIOD version mismatch. Some time ago we updated the Linux GPIO version to dynamically load GPIO functions. This probably has failed in your case. I will investigate this a bit more.

Yeah I was swapping to SSD anyway so I tried the 64bit Bookworm distro and it works perfectly. Its the whole GPIO library thing they just done with Debian Trixie. Not sure of the exact context but I get the idea.. I do have one more question, the only error Im seeing when I launch is a spotify player error. How exactly should I go about installing Spotify? And is that the player that real dash can communicate with natively or is it like on a windows system where most everything communicates with whatever player is playing music or videos? You know what I mean? like will the local rd playlist populate from any player, and the commands like play pause and stop work? I’m getting ready to figure out how to map my steering wheel controls and im just curious if there is gonna be something else I need to do. I was successful converting the pcb curcuits of my steering wheel controls to resistive to use with a chinese android unit using key 1 and 2, Im not sure exactly how I would do it with RD, I assume the resistive key system reads different resistance levels and allows you to map according to what resistance its seeing but I dont know exactly how to make that connection through a PIs GPIO yet.. Maybe an anolog to digital converter and convert my controls back to be different analog voltages? Is there a way I could convert the key presses to iic or uart or can or something and then map them to the rd ids. Any thoughts would be greatly appreciated.

Spotify for Linux

RealDash Linux version has integration with Spotify thru DBUS communication. “Most” of the music playing features should work with Spotify. It has been a long time since I last tested it though.

Starting working on a project with realdash and just ran into this, any update?

GPIO should work just fine, at least on RPi. We do not test the GPIO on any other platform.

I am receiving the same error as the above poster.
[GPIO] v1 symbol missing: gpiod_line_set_value

There was mention of a version mismatch. And RD was now dynamically assigning gpio thats probably failing.

Wondering how I go about fixing that. Or if its expecting to see a specific version of gpiod?

Please give details on your hardware/os setup.