Notices
ECUs and Tuning Discuss Engine Management, Tuning, & Programming

Raspberry Pi running TS question

Old May 17, 2018 | 12:01 AM
  #1  
ads5053's Avatar
Thread Starter
Junior Member
 
Joined: Feb 2016
Posts: 55
Total Cats: -1
From: Northeast PA
Default Raspberry Pi running TS question

I have a rpi B+ with the 7" touchscreen that I'm trying to install into my 96 miata. I'm using a switch to safely shut down the rpi when I turn the car off.
https://mausberry-circuits.myshopify...upply-switch-1

I can't get the rpi to boot. It flashed the multi colored screen and than shuts off. The switch requires a constant 12v, switched, and ground. I tapped the blue red wire running to the ROOM fuse for constant. Verified this with my meter. I tapped the black red wire going to the ignition for the switched 12v.

Has anyone done this before and did I miss something?
Old May 17, 2018 | 04:32 PM
  #2  
skylinecalvin's Avatar
Junior Member
iTrader: (2)
 
Joined: Apr 2016
Posts: 486
Total Cats: 89
Default

I'm not familiar with a rasperry pi but i'm alright with troubleshooting computers. Does the rpi still work when you power it on outside of the car, using a wall outlet? Also, what OS are you running.
Old May 17, 2018 | 05:01 PM
  #3  
ads5053's Avatar
Thread Starter
Junior Member
 
Joined: Feb 2016
Posts: 55
Total Cats: -1
From: Northeast PA
Default

Yes, the pi works fine when it’s plugged into the wall. The problems lies with the switch I got to power the pi when the car powers. The rpi can’t just have the power cut without the shutdown procedure or the pi’s sd will corrupt. So this switch will keep the pi on for a certain time. In my case 30 minutes and than shut down properly.

Im using the rasbian os. Linus bases.

I can confirm that the constant 12v and the ground are good. I’m thinking it’s the switched 12v I tapped. Maybe try I diffferent one?

Btw pretty cool concept to have the pi running with the car and having all your gauges 24/7 for 160$.
Old May 18, 2018 | 09:59 AM
  #4  
y8s's Avatar
y8s
DEI liberal femininity
iTrader: (8)
 
Joined: Jun 2005
Posts: 19,338
Total Cats: 574
From: Fake Virginia
Default

why not get a lithium power pack that can power the pi and plug *that* into the power source?
Old May 18, 2018 | 10:18 AM
  #5  
skylinecalvin's Avatar
Junior Member
iTrader: (2)
 
Joined: Apr 2016
Posts: 486
Total Cats: 89
Default

Originally Posted by y8s
why not get a lithium power pack that can power the pi and plug *that* into the power source?
This sparked my interest. If my new ECU didn't come with built in blue-tooth i'd give this a try.

RPI > Safety Power Down Switch > Lithium Battery > Car power

This would allow the Pi to remain on until the Lithium Battery dies but this shouldn't occur as long as you drive every so often. If the Pi does die do to the Lithium battery draining, then it still safely shuts down but otherwise, you get to skip the slow boot-up of the Pi.
Old May 18, 2018 | 10:38 AM
  #6  
ads5053's Avatar
Thread Starter
Junior Member
 
Joined: Feb 2016
Posts: 55
Total Cats: -1
From: Northeast PA
Default

That switch I linked does exactly that. I have my pi stay on for 30 minutes so if I go into the store I don’t have to reboot. The switch is pretty hard to get since he’s never in stock. Although I’m coming to the conclusion that mine is broken. My pi get power for a few seconds when I turn the key on than just shuts off. I’ve tested all the wires going into the switch.
Old May 18, 2018 | 11:20 AM
  #7  
90LowNSlo's Avatar
Junior Member
 
Joined: Mar 2018
Posts: 476
Total Cats: 28
From: MS Gulf Coast
Default

Purely guessing but I'd say either switch or "dirty power". You may wanna try running some 12v capacitors to filter the power. This will ensure you get a constant 12v.

I've never installed a pi before but I have installed an in dash mitx build though. Even with a dedicated power supply it ended up needing some capacitors.
Old May 18, 2018 | 11:32 AM
  #8  
cpierr03's Avatar
Junior Member
 
Joined: Mar 2015
Posts: 288
Total Cats: 34
Default

Originally Posted by 90LowNSlo
Purely guessing but I'd say either switch or "dirty power". You may wanna try running some 12v capacitors to filter the power. This will ensure you get a constant 12v.

I've never installed a pi before but I have installed an in dash mitx build though. Even with a dedicated power supply it ended up needing some capacitors.
The 5v step down circuit should be sufficient for this I believe
Old May 18, 2018 | 11:40 AM
  #9  
90LowNSlo's Avatar
Junior Member
 
Joined: Mar 2018
Posts: 476
Total Cats: 28
From: MS Gulf Coast
Default

My power supply should have as well... but for around $10 might as well.
Old May 18, 2018 | 12:34 PM
  #10  
y8s's Avatar
y8s
DEI liberal femininity
iTrader: (8)
 
Joined: Jun 2005
Posts: 19,338
Total Cats: 574
From: Fake Virginia
Default

Fig 20 on the wiring diagrams suggests that black/red is OFF during start but ON during run. The blue wire is ON during start AND run... and maybe that's your problem?

Here:
http://www.mellens.net/mazda/mazda_m...996_wiring.pdf
Old May 18, 2018 | 03:54 PM
  #11  
ads5053's Avatar
Thread Starter
Junior Member
 
Joined: Feb 2016
Posts: 55
Total Cats: -1
From: Northeast PA
Default

I’ve moved the black red wire to the red wire by the radio.
The blue red is showing constant. Im going to reset the pi os start from scratch. If all else fails I’ll order a new switch.
Old May 19, 2018 | 06:20 PM
  #12  
ads5053's Avatar
Thread Starter
Junior Member
 
Joined: Feb 2016
Posts: 55
Total Cats: -1
From: Northeast PA
Default

Ran around with the multimeter and found the problem. Ran a wire from the battery to the circuit for the 12v constant with a inline fuse. I keep it on a delay and have the pi stay on for 15 minutes so if I do a quick run to the store it doesn’t have to boot. Boot time is about 50 seconds atm.

I love having tunerstudio access for under 200$. I run a custom gauge page and can monitor all the variables I want.
Old May 19, 2018 | 06:50 PM
  #13  
90LowNSlo's Avatar
Junior Member
 
Joined: Mar 2018
Posts: 476
Total Cats: 28
From: MS Gulf Coast
Default

Pics of it mounted?
Old May 20, 2018 | 07:11 AM
  #14  
Kens_Clubman's Avatar
Newb
 
Joined: Nov 2013
Posts: 13
Total Cats: 6
Default

Just installed the dash in my racecar.
Yet to install any kickass looking displays.
Name:  m4GYr4S.jpg
Views: 332
Size:  81.7 KB
Old May 21, 2018 | 04:02 PM
  #15  
y8s's Avatar
y8s
DEI liberal femininity
iTrader: (8)
 
Joined: Jun 2005
Posts: 19,338
Total Cats: 574
From: Fake Virginia
Default

Originally Posted by ads5053
Ran around with the multimeter and found the problem. Ran a wire from the battery to the circuit for the 12v constant with a inline fuse. I keep it on a delay and have the pi stay on for 15 minutes so if I do a quick run to the store it doesn’t have to boot. Boot time is about 50 seconds atm.

I love having tunerstudio access for under 200$. I run a custom gauge page and can monitor all the variables I want.
To reduce boot time, check out the speed tests of the SD cards on the pi
https://www.jeffgeerling.com/blog/20...omparison-2018

also note you can overclock the SD beyond that. Might reduce boot time significantly. There are also other tricks you can do (google can help) to reduce boot times quite a bit.
Old May 21, 2018 | 08:46 PM
  #16  
ads5053's Avatar
Thread Starter
Junior Member
 
Joined: Feb 2016
Posts: 55
Total Cats: -1
From: Northeast PA
Default

Here is the finished product. 3d printed a bracket to keep it in place.
Old May 22, 2018 | 10:50 AM
  #17  
90LowNSlo's Avatar
Junior Member
 
Joined: Mar 2018
Posts: 476
Total Cats: 28
From: MS Gulf Coast
Default

That looks pretty killer. I'm thinking something similar but maybe mounted on the top side of the dash. honestly though I REALLY like pi in place of the gauge cluster. I'd be worried about glare though and being able read it correctly...

So many ideas stirring
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Teejay187
MEGAsquirt
97
Nov 28, 2024 06:15 PM
psyber_0ptix
Race Prep
16
Mar 25, 2021 11:03 PM
Arny
MEGAsquirt
56
Jun 11, 2018 04:16 PM
Marc D
MEGAsquirt
5
Mar 28, 2011 06:03 PM
Scuba_Steve
General Miata Chat
11
May 29, 2009 02:23 PM


Thread Tools
Search this Thread

All times are GMT -4. The time now is 07:42 PM.