ECUs and Tuning Discuss Engine Management, Tuning, & Programming

Raspberry Pi running TS question

Thread Tools
 
Search this Thread
 
Old 05-17-2018, 12:01 AM
  #1  
Junior Member
Thread Starter
 
ads5053's Avatar
 
Join Date: Feb 2016
Location: Northeast PA
Posts: 55
Total Cats: -1
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?
ads5053 is offline  
Old 05-17-2018, 04:32 PM
  #2  
Junior Member
iTrader: (2)
 
skylinecalvin's Avatar
 
Join Date: Apr 2016
Posts: 485
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.
skylinecalvin is offline  
Old 05-17-2018, 05:01 PM
  #3  
Junior Member
Thread Starter
 
ads5053's Avatar
 
Join Date: Feb 2016
Location: Northeast PA
Posts: 55
Total Cats: -1
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$.
ads5053 is offline  
Old 05-18-2018, 09:59 AM
  #4  
y8s
2 Props,3 Dildos,& 1 Cat
iTrader: (8)
 
y8s's Avatar
 
Join Date: Jun 2005
Location: Fake Virginia
Posts: 19,338
Total Cats: 573
Default

why not get a lithium power pack that can power the pi and plug *that* into the power source?
y8s is offline  
Old 05-18-2018, 10:18 AM
  #5  
Junior Member
iTrader: (2)
 
skylinecalvin's Avatar
 
Join Date: Apr 2016
Posts: 485
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.
skylinecalvin is offline  
Old 05-18-2018, 10:38 AM
  #6  
Junior Member
Thread Starter
 
ads5053's Avatar
 
Join Date: Feb 2016
Location: Northeast PA
Posts: 55
Total Cats: -1
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.
ads5053 is offline  
Old 05-18-2018, 11:20 AM
  #7  
Junior Member
 
90LowNSlo's Avatar
 
Join Date: Mar 2018
Location: MS Gulf Coast
Posts: 476
Total Cats: 28
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.
90LowNSlo is offline  
Old 05-18-2018, 11:32 AM
  #8  
Junior Member
 
cpierr03's Avatar
 
Join Date: Mar 2015
Posts: 287
Total Cats: 33
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
cpierr03 is offline  
Old 05-18-2018, 11:40 AM
  #9  
Junior Member
 
90LowNSlo's Avatar
 
Join Date: Mar 2018
Location: MS Gulf Coast
Posts: 476
Total Cats: 28
Default

My power supply should have as well... but for around $10 might as well.
90LowNSlo is offline  
Old 05-18-2018, 12:34 PM
  #10  
y8s
2 Props,3 Dildos,& 1 Cat
iTrader: (8)
 
y8s's Avatar
 
Join Date: Jun 2005
Location: Fake Virginia
Posts: 19,338
Total Cats: 573
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
y8s is offline  
Old 05-18-2018, 03:54 PM
  #11  
Junior Member
Thread Starter
 
ads5053's Avatar
 
Join Date: Feb 2016
Location: Northeast PA
Posts: 55
Total Cats: -1
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.
ads5053 is offline  
Old 05-19-2018, 06:20 PM
  #12  
Junior Member
Thread Starter
 
ads5053's Avatar
 
Join Date: Feb 2016
Location: Northeast PA
Posts: 55
Total Cats: -1
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.
ads5053 is offline  
Old 05-19-2018, 06:50 PM
  #13  
Junior Member
 
90LowNSlo's Avatar
 
Join Date: Mar 2018
Location: MS Gulf Coast
Posts: 476
Total Cats: 28
Default

Pics of it mounted?
90LowNSlo is offline  
Old 05-20-2018, 07:11 AM
  #14  
Newb
 
Kens_Clubman's Avatar
 
Join Date: 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: 145
Size:  81.7 KB
Kens_Clubman is offline  
Old 05-21-2018, 04:02 PM
  #15  
y8s
2 Props,3 Dildos,& 1 Cat
iTrader: (8)
 
y8s's Avatar
 
Join Date: Jun 2005
Location: Fake Virginia
Posts: 19,338
Total Cats: 573
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.
y8s is offline  
Old 05-21-2018, 08:46 PM
  #16  
Junior Member
Thread Starter
 
ads5053's Avatar
 
Join Date: Feb 2016
Location: Northeast PA
Posts: 55
Total Cats: -1
Default

Here is the finished product. 3d printed a bracket to keep it in place.
ads5053 is offline  
Old 05-22-2018, 10:50 AM
  #17  
Junior Member
 
90LowNSlo's Avatar
 
Join Date: Mar 2018
Location: MS Gulf Coast
Posts: 476
Total Cats: 28
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
90LowNSlo is offline  
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Teejay187
MEGAsquirt
96
04-29-2024 09:12 AM
psyber_0ptix
Race Prep
16
03-25-2021 11:03 PM
Arny
MEGAsquirt
56
06-11-2018 04:16 PM
Marc D
MEGAsquirt
5
03-28-2011 06:03 PM
Scuba_Steve
General Miata Chat
11
05-29-2009 02:23 PM



Quick Reply: Raspberry Pi running TS question



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