Raspberry Pi running TS question - Miata Turbo Forum - Boost cars, acquire cats.

ECUs and Tuning Discuss Engine Management, Tuning, & Programming

Raspberry Pi running TS question

Old 05-17-2018, 12:01 AM
  #1  
Junior Member
Thread Starter
 
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
 
Join Date: Apr 2016
Location: Houston, TX
Posts: 151
Total Cats: 6
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
 
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,091
Total Cats: 468
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
 
Join Date: Apr 2016
Location: Houston, TX
Posts: 151
Total Cats: 6
Default

Originally Posted by y8s View Post
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
 
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: Calloway County Kentucky
Posts: 225
Total Cats: 9
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
 
Join Date: Mar 2015
Posts: 77
Total Cats: 4
Default

Originally Posted by 90LowNSlo View Post
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: Calloway County Kentucky
Posts: 225
Total Cats: 9
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,091
Total Cats: 468
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
 
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
 
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: Calloway County Kentucky
Posts: 225
Total Cats: 9
Default

Pics of it mounted?
90LowNSlo is offline  
Old 05-20-2018, 07:11 AM
  #14  
Newb
 
Join Date: Nov 2013
Posts: 12
Total Cats: 3
Default

Just installed the dash in my racecar.
Yet to install any kickass looking displays.
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,091
Total Cats: 468
Default

Originally Posted by ads5053 View Post
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
 
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: Calloway County Kentucky
Posts: 225
Total Cats: 9
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
35
09-16-2018 09:43 AM
Arny
MEGAsquirt
56
06-11-2018 04:16 PM
psyber_0ptix
Race Prep
11
12-23-2017 09:15 AM
Marc D
MEGAsquirt
5
03-28-2011 06:03 PM
Scuba_Steve
General Miata Chat
11
05-29-2009 02:23 PM


Thread Tools
Search this Thread
Quick Reply: Raspberry Pi running TS question


Archive Advertising Cookie Policy Privacy Statement Terms of Service

© 2018 MH Sub I, LLC dba Internet Brands

We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites.