07-29-2020, 02:06 PM
(This post was last modified: 07-29-2020, 02:32 PM by eighty2fifty1.)
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
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.