Current version of the OpenAuto Pro is 10
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ramberry Pi
#1
Hello everyone, I’d like to share the beginning of my project. I have a 2006 Dodge Ram 2500 and the factory head unit is well past it’s prime. To that end, I decided to replace it with a raspberry pi, and I stumbled across OAP. I liked what it has to offer and purchased it along with a Hifiberry DAC shield and a PIco UPS. I’ve just about finished the first custom app for it, so I thought I’d share that too.

I haul a large horse trailer with my truck, so I added airbags in the rear. The app I wrote will allow me to control them via OAP. It uses an Arduino to run the actual control for the compressor and solenoids, and the RPi app monitors it and lets me change pressure on the fly. The Arduino and the Pi communicate via RS485 serial, using 3 of the few GPIO pins I have left.

In the pics are my truck and the rest of the system mocked up on breadboards. The joystick is a standin for both left and right pressure sensors. They’re both analog signals so it should be the same thing. 5 of the 8 relays on the shield are in use. They power fill and dump solenoids for both sides, and another higher amp relay to run the compressor. That portion of it will be mounted somewhere under the bed of the truck or under the back seat. I haven’t decided yet.

https://imgur.com/a/PmlMJKt
Reply
#2
(07-29-2020, 02:06 PM)eighty2fifty1 Wrote: Hello everyone, I’d like to share the beginning of my project. I have a 2006 Dodge Ram 2500 and the factory head unit is well past it’s prime. To that end, I decided to replace it with a raspberry pi, and I stumbled across OAP. I liked what it has to offer and purchased it along with a Hifiberry DAC shield and a PIco UPS. I’ve just about finished the first custom app for it, so I thought I’d share that too.

I haul a large horse trailer with my truck, so I added airbags in the rear. The app I wrote will allow me to control them via OAP. It uses an Arduino to run the actual control for the compressor and solenoids, and the RPi app monitors it and lets me change pressure on the fly.  The Arduino and the Pi communicate via RS485 serial, using 3 of the few GPIO pins I have left.

In the pics are my truck and the rest of the system mocked up on breadboards. The joystick is a standin for both left and right pressure sensors. They’re both analog signals so it should be the same thing. 5 of the 8 relays on the shield are in use. They power fill and dump solenoids for both sides, and another higher amp relay to run the compressor. That portion of it will be mounted somewhere under the bed of the  truck or under the back seat. I haven’t decided yet.

https://imgur.com/a/PmlMJKt

Wow that is sweet!  Will you please share your code and any diagrams?  I think lots of folks on here would be interested to follow your lead and do other cool mods too.
Thanks, Frank
Carputer Detail   Parts List
2004 Chevrolet Tahoe Z71 w/ Bose & Onstar
Reply
#3
Very sophisticated system, congratulation. btw Your trailer with a car looks like a beast Smile
Reply
#4
https://github.com/eighty2fifty1/rpi-airbag-control
Here is the link to my Github. I haven't really figured Github out yet, so it's super disorganized but I'm happy to go through the code with anyone who wants to try to use it. I'm on a work trip for the next few months so I'm away from my truck, and I'm halfway through my COVID quarantine period, so I have all the time in the world. I'm just glad I had the foresight to bring all my programming projects with me, because I'm getting all kinds of stuff done.
Reply
#5
Thats a cool setup.  I am working on a truck project also with rear airbags for load assist.  You might want to take a look at this project for the Raspberry Pi.  Makes sensors and all kinds of communication possible with very minimal coding.  Its based on the ESPEasy software for the ESP8266 and ESP32.  I have been playing with this stuff for a couple years now.  I have zero coding skills and this software enabled me to do way more than I otherwise would have.

RPIEasy project

Most of the documentation for ESPEasy applies to RPIEasy.  

ESP Wiki
"The glass is twice as big as it needs to be".
Reply
#6
(07-30-2020, 03:58 PM)budman1758 Wrote: Thats a cool setup.  I am working on a truck project also with rear airbags for load assist.  You might want to take a look at this project for the Raspberry Pi.  Makes sensors and all kinds of communication possible with very minimal coding.  Its based on the ESPEasy software for the ESP8266 and ESP32.  I have been playing with this stuff for a couple years now.  I have zero coding skills and this software enabled me to do way more than I otherwise would have.

RPIEasy project

Most of the documentation for ESPEasy applies to RPIEasy.  

ESP Wiki

That's a pretty interesting project, thanks for posting!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)