Raspberry Pi Head Unit Follow Up One Month Later - Start Up / Shut Down Script
Вставка
- Опубліковано 7 вер 2024
- Raspberry Pi OpenAuto Pro Follow Up One Month Later, Also the start and shutdown script used in setup.
○○○ LINKS ○○○
Raspberry Pi Install ► • OpenAuto Pro / Raspber...
Start & Shutdown Script ► github.com/nov...
ESP01 ► amzn.to/3rrCiPw
ESP USB Programmer ► amzn.to/3zsANmS
USB DC-DC ► amzn.to/36TRonp
OBD II ELM327 ► amzn.to/3zsxQmk
○○○ SHOP ○○○
Novaspirit Shop ► teespring.com/...
Amazon Store ► amzn.to/2AYs3dI
○○○ SUPPORT ○○○
💗 Patreon ► goo.gl/xpgbzB
○○○ SOCIAL ○○○
🎮 Twitch ► / novaspirit
🎮 Pandemic Playground ► / @pandemicplayground
▶️ novaspirit tv ► goo.gl/uokXYr
🎮 Novaspirit Gaming ► / @novaspiritgaming
🐤 Twitter ► / novaspirittech
👾 Discord chat ► / discord
FB Group Novaspirit ► / novasspirittech
○○○ Send Me Stuff ○○○
Don Hui
PO BOX 765
Farmingville, NY 11738
○○○ Music ○○○
From Epidemic Sounds
patreon @ / novaspirittech
Tweet me: @ / novaspirittech
facebook: @ / novaspirittech
Instagram @ / novaspirittech
DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission.
Thank you Don for making your scripts available. There are at least 2 other great video series on this topic on YT (namely the Everlanders build and someone who put Crankshaft in a Mazda). All have had variations of the solution to the boot/shutdown problem. Yours seems to be the most elegant. Great to hear that it doesn't overheat.
If I was a smart man, I would work on designing a daughter board that uses the CM4 with eMMC storage, and the board has all the connections you need branching off of it so you don't have to connect extras boards and stuff.
Yeah that would be interesting for mass production :)
I have been looking for something like this. The moment one comes out I’ll be first in line.
Bet you wont
Autopi, but, buyer beware
Thank you! For screen glare issues, I connected a TSL2561 light sensor module for auto-brightness and auto day-night switching. Then I tried tilting the screen to where the sun and line of sight weren't aligned. Works OK! OpenAuto does support a different light sensor out of the box, the TSL2561 is just what I had.
This is good to know! I was just wondering about this. That'll be useful for my build!
if you live in an area where winter happens, the freezing cold will shrink the hot glue and make it brittle. if the hot glue is holding any weight, it’s likely to pop off after hitting a big bump during the freezing cold.
My programming experience is mostly limited to PLC ladder logic. I do a lot of work in industrial automation with the controls, freq drives, encoders and proxes. Can't wait to build one of these and get out from under the buggy and barely working hardware of my second failed Pioneer head unit.
So excited, can't wait!
Cool, I'm studying to be automation engineer, working with PLC's and computer vision and stuff, here in Denmark. Where you at in the world? Did you ever build an raspi Android headunit?😊
Did you do any additional upgrades to the unit even though it's 2 years later
Watching your videos on this convinced me to take the plunge. For me, I imagine there is going to be a lot of headache since this will be my first RPI project. But not am I excited! Let's hope my google-fu is up to snuff!
I'm excited to see the volume knob and how you plan to integrate the FM radio.
I have some ideas for that but I want to see someone else do it first lol
Did you do the raspi headunit? Care to share your experience?
The headunit looks good. However, I think you need more boost pressure.
Hahaha don't we all... I got peak 13.5 on this
@@NovaspiritTech boost leak? WRX's should boost to 16psi I believe?
as alot of car electronics - i would not shut it down immediately if not needed. Would just shut down the display at first. on 60Ah car battery, RPi can run around 10 days. I'm not suggesting to keep it running for 10 days. I would suggest to keep it running for some calculated value for daytime (1-2 hours) and maybe immediate turnoff after dark (depending on your workload). This would work on most of the cases for the immediate readiness and reducing bootcounts. Also it could be turned off straigh away as car has been locked and booted up if unlocked.
I know on the Ford sync units they don't actually shut down until after 5 minutes. That way if you like shut off the car and run in somewhere and come right back out It doesn't have to go through a boot cycle. It just kind of like goes to sleep and wakes back up. If you could do something like that where it wouldn't actually shut down for like 5 minutes and just and just power the screen on and off it would cut out the need to boot all together like if you are just like running and out of somewhere.
You can modify the delays to your needs in the scripts. The shutdown trigger for the PI comes from the relays and the key position, atleast in Novas current installation. If Nova doesn't do it in the future, I can upload new scripts and/or wiring to accomodate such functionality.
Deleted my comment on the old video because you answered my question at the end of this one :D (the volume knob). Thanks for showing off your build, it's cool to see what people put in to these, and how they look while working!
Please keep us updated. I'm saving money to get this in my car.
I'd love to see this taken a step further with a digital dash UI for replacing a cars behind the wheel dash, as the pi-5 has two outputs one could be for central entertainment interface
Liking this project, thinking of doing the same thing ... interested in the physical volume knob and the fm receiver. Was also looking at integrating an external temp sensor.
Hey could you upload a thingiverse for the front plate, would be much appreciated thanks.
Is there a more in depth wiring diagram for the rest of the build not just the relays?
Rather than cron I would go with a systemd service. That'll allow automatic startup of a non root service that starts on init and not login.
What about making the booting "smarter"? Tracking:
Your phone's bluetooth signal as you approach/depart from the car;
The use of the key fob to lock or unlock the car;
Signals of doors open/closed, particularly driver's;
Whether the ignition is indeed on or not;
How long certain conditions have stayed the same;
and
Whether the seat sensor detects a driver present in the car...
You could create logic paths to boot or shutdown the device based on heuristics.
If you mounted the amp inside there it's technically not a 'head unit'. A 'head unit' is just that, the place where the display and controls are. In most factory installs the amp is mounted in the trunk, under a seat, etc. , in other words away from the head unit. The amp is what's making most of the heat, you may want to consider moving the amp out of there. That said this is an interesting project. Not so much for a modern car with a CAN bus since most modern cars already come with enough electronic do-dads from the factory. This would be a very interesting project for a classic car from the pre-digital era.
I know this video is from a long time ago, but I'm planning to implement something similar, more focused on the OBD2 port. How do you prevent the OBD2 from draining the car battery? As these adapters use power from both the OBD2 port and the battery. Also, considering it's been two years, have you faced any issues with temperatures, dust, or humidity affecting the system or Raspberry Pi? I would greatly appreciate your response. Thanks for your support, and best of luck with all your endeavors! ❤
For the glossy screen get a matte screen protector.
wouldn't that block the touchscreen ?
@@jyvben1520 I don't think so, I have a screen protector covering my phones touchscreen, is it not the same thing?
@@deadly_dave was a honest question, my more than 10 year old nokia cellphone does not have a touchscreen and my old tablet also does not have a screen protector. thanks for the feedback
@@jyvben1520
No worries, I wasn't sure if it was a trap or not.
There are at least two different types of touchscreen (resistive and capacitive touch) they both work differently and have different advantages/limitations (multitouch, touch with gloves, and sensitivity of touch etc) but I would imagine with a thin flexible screen protector either would work ok with the technology today although, I'm no expert on touchscreen.
Thanks for this, it is definitely interesting. I was making an entertainment unit for my kid at the back seat of the van with video games etc... Was trying to figure out how to safely shutdown with ignition off and gave up, I am not persistent as you are.
Ended up in the end just moving the storage to USB3 flash drive and powering it with the usb car lighter. It will just hard shutdown when ever I turn my car off. Not ideal but its fine so far with no corruption. No important data on the USB anyway, just reimage a new one when it does fail.
sounds great! you have done a great job here. I would love to see you attempt to tap into the volume controls on the steering wheel, if you don't have them they are very easy to install if you buy the controls from a wrecker or something.
Have you considered using an openport2.0 or ftdi adapter connected to the pi to get your data from SSM? I’ve been wanting to do a very similar project for a while now lol. Looks pretty good so far, also looking forward to your followup additions
Look, I know this is an old video. I’ve watched a few of yours about this headunit and I really want to build one. The only thing that’s holding me back is if it has a high pass and low pass filter that you can adjust?
Envious of OEM boost. Next level techie would be how to get an aftermarket air fuel gauges aux output signal into the pie then into torque pro as a PID somehow.
Some of the aftermarket android dins do not shut down for a few minutes after turning off the car(just the screen) so in case you run into a 7-11 or something and get right back in the car you don't have to wait for boot up. See that being an added feature to your script?
that's not a bad i idea, i was planning for a 10 min wait process... something simple i can prob code into the python script
One thing I was thinking about is using rechargeable batteries as a UPS of sorts for the pi and/or camera recording. Charges up when driving, shutdown on low charge.
Any news on further progress and the updates? Really impressed with the project so far and want to do same!
Why do you need whole relays? Wouldn't photo decouplers be more than enough, if not just connecting the esp straight? They're all 3.3v, no?
A delayed timer would be cool too, easy to add to the script. Thanks for the video.
Very nice
Could you please upload detailed pinture of all the wires scheme . I saw in your GitHub but more detailed of all will be nice.
Like this wires goes to car battery , this wire to car arnes, how is your special sound wire conected to amp, etcétera
Thank you for sharing 😀👍
I also would really like to see how it all connects to the harness. I'm pretty sure I could figure it out, but it'd be nice.
Wire diagram would be a godsend. I'm about to start this project and I feel like I'm kinda flying blind
@@Spencisuar I hope he will update next video more detailed information, so we have to wait
interested in building an instrument cluster with raspberry pi but i was curios about the internet part wound it need a constant internet connection?
Definitely interested in further followups on this. I wonder if I could find a way to use the can bus and use my steering wheel controls
Hi there and thanks for this amazing Videos. So, do u have solved the FM Radio integration? Is there a Video about that and can u tell me what i should buy If i Wish to integrate GPS to use GMaps navigation and FM Radio to this Setup?
I'm struggling to understand how the ESP integrates with this. How it's powered, how it knows the car is on and what the benefit is over a relay on the ignition to trigger power on.
I'm a new to the raspberry pi and working with individual components.
The pins need to be shorted, so the ESP translate a 12V signal (ACC) to a closed loop signal (Relay) which is momentary.
I believe it could also be done with a 555 timer and a transistor.
pro tip: if it did overheat you could hook a small tube from the AC and point it at the pi.
Great update keep them coming Don thank you
Hey I came on to this and answered a few questions so thanks. Will you do another followup adding FM receiver or the evil AM? AM is a PITA from what i see but would like to have it for max flexibility.
I ran a Tablet and Torque for a while, In the car i like Instant On and no wait time
Add a damn exteral battery and a dc-dc converter from 12 to 5V. You will not warry about car cranking anymore. It's a phat extension for the battery and charger
I have started a project for my brother SAAB 99 -1978 my opinion for RPi4 is to mount an solar cell for drive the raspberry with an voltage regulator and 3x 16 channel relay modules
great work , i would prefer a larger screen , you could also have a second screen for the passenger cause the Pi has the option. Carry on teching ! ( its a new Carry ON movie :-)
definitely maxing the amount of screens on mine
Oh man a passenger screen for media and whatnot would be slick. Just gotta remind myself not to install it over the airbags 😂
@@Spencisuar oh yeah gotta think about that
Raspberry Pi 5 is here and I need an updated Raspberry Pi OpenAuto video so that I can start a new project!!😁
Working on the FM radio portion right now too for my project. No good solution I can find yet... just impractical and non-touchscreen friendly ham radio software.
This is awesome. I want to do this in my 68 Impala.
Hi Don, been following along and looking to do something similar in my car. I've gotten it working just with composite video out and a remote for now but wondering whether you have backlight brightness control with the UCTRONICS touch screen. I've found the official Raspberry Pi touchscreen it too wide and I don't want to risk damaging it trying to trim it down but do want something with brightness control. Looks like it's possible for HDMI displays but apparently needs DDC/CI support.
Hi. Can we get a wiring schematic or a video on how to do the shutdown? I have an open auto build and am struggling with the.shutdown.
I'd love to see this too.
im stuck at the same situation, i am not able to figure a way out for a safe shutdown. :x
I have souch similar diy headunit made from mxq box for several years now. Im in process to convert hu to rpi4. All things sorted only GPS to Uart pins are giving me a little issue.. Temperature its not issue while you have 5V fan incorporated to unit and small cooler to processor.
Do you still have the Open Auto image file? I had it I have a license but lost the image. I need to redo mine and update but the site is no longer allowing us to purchase.
Great video Don. I made similar buid and failed in the following situation: start ignition the ESP starts the Pi and the OAP starts i wait for the kids to came so i still dont start the car. When we are all ready to go i start the car. The ignition power is restarted so the ESP send again command to start the Pi and the same is reatarted. I was thinking is there any way to prevent this restart. I have some idea but not sure how to change the script for the ESP. What i was thinkingis to use input for the ESP comming from any GPIO from the Pi and if the Pi is running not send start command to the relay to start the Pi. Any comment or suggestion how to prevent restart is appreciated.
Just thought. Why not buy a deep cycle battery just for the PI? You could leave the PI on permanently that way. You would also have ftp access 24/7 for your home network with wifi if it was on all the time. You could also record video when movement is decected while out parking somewhere etc
You could use a Pi pico / Arduino to reduce power consumption. could be a neat way to to do the rear camera too.
What kind of hot glue, what brand and model number?
Would be nice to see how to put a set of rca Jack's on this I have a major stereo in my car and I want to make this but if I can't use my rca Jack's I cant
hi, sorry if its a dumb question but does this allow you to listen to radio?
It would be interesting to see if you can get a larger monitor like a 10" and make it a 'floating' screen setup which seems to be the way a lot of aftermarket is going with car audio.
Working on a 10.1” floating now :) Just trying to figure out how to etch the side for touch buttons Ive made. Thinking a laser and researching those now.
So just turning off the power to the pi is a bad thing? Serious question
What about the driving wheel controls over CAN BUS. It is possible to be integrated ? And also some info from AC automation? Parking sensors ?
Rhys Morgan shows a demo of CAN integration and AC control. Link to video: ua-cam.com/video/vN-E9Ku0RqA/v-deo.html
Can you use hard buttons with this? Maybe volume?
In theory: Connect buttons to GPIO pins -> Programm behaviour -> Profit.
In the next video you will probably see his integration of volume control with a POT. That will hopefully answer some of these questions.
OAP now has built in support for rotary encoders and buttons :)
What app are you planning to use for your fm radio SDR?
You should try out the CarPiHAT, handles all the interfacing for you
Why not have the rpi start based on unlock of the doors as well as key in on position? So on unlock it boots then key in on position validates constant on. Or does it need odb port active? If so maybe that script delayed until key in on position?...
You don't necessarily need to use ignition 12V for the trigger. As long as it is a switch somewhere, it can be used as a trigger. Keeping in mind that you would need to modify the wiring and/or the script if the new trigger is NC (normally closed).
what about automatic screen brightness?
Isn't negative boost a vacuum?
Any way to dim screen with headlight on
is that stock boosted/tune? cause that's a little lean under boost...
Wonder what the bootup time would be for a banana pi 5 using the emmc memory for the os image?
much much faster i would say vs a sdcard. when weather gets warmer i will have tons of upgrades to this install including usb ssd for under 10 second boot times
Can we make this scripts and add fm radio dongle if we are using crankshaft
can we add voice control to control relays, like power window up n down , wiper on off. ac on off etc on the same unit ?
The only limitiation with a Raspberry Pi is the time you want to invest in it.
Is there a way that you can control volume with a potentiometer? I love the sound of doing this, but I also like using buttons.
Openauto does support rotary encoders for volume. So you could do that.
Bench testing my 10.1” floating setup now and the built in rotary encoders work amazing. Just wish maps volume could be adjusted separately:(
Working on a build now... Why is it needed to run a script.... Why not just use the 12volt thats acc already. Serious question ??
....the 50W×4 amp is "Currently Unavailable" on Amazon...🙁
I tried hot glue for a head unit install but the weather where i live said - 'no'
Has there been any other updates on this?
Amazing job! would booting the pi from an m2 or ssd improve the boot time?
Yes, almost down to 10 seconds
Ill be making one of these very soon, but my question is. Are you able to mirror Netflix on this? I'll be taking the car it's going in on long road trips and I'd love to have it for entertainment. Thank you!
Open auto does support screen mirroring. So what ever is on your phone is also on the screen
It’d be great if you could swap out the relays for transistors on that board
I consider his build as a prototype.
Where does the Raspberry Pi get internet signal from while your driving?
From the phone WiFi hotspot, Bluetooth, or USB. However, this is still a pain point for me. Seamless Android Auto is achieved when the Raspberry Pi is the hotspot but there's no internet for both phone and Raspberry Pi with that configuration. USB will be the best option IMHO.
@@Kamccizo is the link between phone and rpi not bluetooth ?
that would still leave the rpi wifi available for in car users.
@@jyvben1520 Unfortunately there's no Android Auto support over Bluetooth connection. To get AA, you'll need WiFi from phone or Rpi. However, while connected to Rpi's WiFi apps like Waze, Maps and Spotify will lose internet connectivity. Best case for wireless AA is phone hotspot, which will require you to go into AA and activate developer settings and start head unit server very so often.
I have a USB powered SIM card router in mine. There are raspberry sim card adapters, or you could use an external USB powered router that creates a wifi hotspot.
Has anyone got a backup camera with rca to connect to the raspberry pi?
yeah with usb dongle from amazon
This is really awesome!
Is there a way to split the audio? I want to build one of these but I need 4 channel audio
You could look into USB sound cards with 5.1 channel audio outputs.
Hi Guys, was anyone able to figure out a safe shutdown method with the above wiring schematic?
Would it be possible to have Google maps work on the screen without a phone connection by using a gps dongle and a locally stored copy of the maps?
Look into android or android-like OS emulation on linux. You can install google maps on there as an app.
Good update to project! Would you Consider slamming it and getting rid of the cats and maybe putting limo tints and some rgb under glow? Haha jk
Haha you mean like my car 👌🏻
Imagine controlling all of that within Linux 😁 I'm working on a slammed Miata with underglow. Am thinking of ditching the 100$ radio and doing a raspberry pi swap on it.
Like this: ua-cam.com/video/dqUxR_P0NRY/v-deo.html
Are you by chance in Northern California?
Fun fact, the best way to warm up a car is to just drive it.
hahahhah 100% true
Update on this? Are you still running it?
I wonder if it would boot faster with a Pi equipped with m.2 storage
It will. A USB 3.1 storage would also massively improve startup time.
Still running this? How is it going?
How's the audio quality for phone calls?
Check the first vid.
Is the link for the esp01 correct?
Any updates?
Nice ;)
When comes the new Videos? It's since a year ago now 😅
Hahah working on it, it's just been so cold. But I did make some upgrades to it
❤❤❤
How much?
HOW DO I INSTALL EPIC GAMES LAUNCHER ON CHROMEBOOK?? PLS UR SO SMART
Hey check this out this will take all the clumsiness out of oap for u in currently working on it and get it configured to work on gm class 2 serial data since I don't have can bus I have to figure out how I can get my rpi to talk directly to my bcm over the much slower and only able to ask 1 question and get 1 reply from the controller modules instead of being able to ask 1 question and get 10 20 answers back the same is said for performing actions but hey this is the solution for u to make it much more driver friendly and safe as u won't have to press 4 or 5 buttons to navigate between the obd info and android auto and even hvac controls or ur reverse camera ua-cam.com/video/wKBC56UhK64/v-deo.html
The background sounds in the video are really annoying. I stopped watching at just over a minute in. It's too bad since I'm interested in this topic.