Tunerstuido, RPi3, and the 7" touch screen

For discussion of Phil Tobin's Tuner Studio software (Only about the tuning software itself, not about how to tune or firmware features)

Moderator: LT401Vette

Post Reply
toyotaspeed90
Helpful MS/Extra'er
Posts: 67
Joined: Mon Feb 14, 2005 2:33 pm
Location: Bellingham, WA
Contact:

Tunerstuido, RPi3, and the 7" touch screen

Post by toyotaspeed90 »

I wanted to post some interesting 'issues' I had and how I had to fix it, just in case someone else runs across this.

It should be noted - there may be a much easier way through Terminal or modifying a file, but I did attempt to do that and couldn't find it which included changing the resolution in pi (multiple times). I'm relatively new to RPi and Linux.... however I'm pretty comfortable with coding (if not at the very least reading and understanding it).

This is an RPi3, 64gb MicroSD, I loaded Raspbian with PIXEL.

Originally I completed the install using HDMI to a 19" screen. I loaded Tunerstudio and got it working with the MS no problem.

The 7" screen arrived, and installed as needed. Everything was as expected - except when Tunerstudio loaded.

It would open/load with the bottom right 1/3 (or so) of the main page viewable, and no sliders - whether using the touch screen nor mouse I couldn't get anything else to show. Through luck, I was able to use some F keys to have the menus show up, but nothing that allowed resizing of the window.

My assumption is that when Tunerstudio is first loaded/executed through Terminal, there's something that sets what the resolution is, and it becomes hard coded (I could be wrong, but that's how it acted).

Since the MicroSD was otherwise blank, I rewrote Raspbian over (formatted and reloaded the OS), then with the 7" screen, re-downloaded/ran Tunerstudio through Terminal and all is working well.


Now if I could only get my hands on a 12V maussberry circuit (or maybe someone on here is smart enough to know how to build something similar with Digikey components....). RPi needs to be properly shut down - and it's power source is a 5V 3a USB port. There are lots of stepdown USB boards for 12V applications, but nothing that delays the power shutdown (and sends a signal) to RPi to shut down properly. Essentially what happens is the circuit has 12V constant, and when 12V switched is turned off, the board sends a signal to RPi to shut down, then I'm guessing through a timer power is cut completely to the RPi. I would have no problem buying/using the Maussberry circuit, but they seem to always be out of stock.
toyotaspeed90
Helpful MS/Extra'er
Posts: 67
Joined: Mon Feb 14, 2005 2:33 pm
Location: Bellingham, WA
Contact:

Re: Tunerstuido, RPi3, and the 7" touch screen

Post by toyotaspeed90 »

Should add some bench (desk) testing...
But is connected to my MS1 here...

Image
stanglx2002
Experienced MS/Extra'er
Posts: 231
Joined: Wed Dec 28, 2016 7:16 am

Re: Tunerstuido, RPi3, and the 7" touch screen

Post by stanglx2002 »

Great build you have there. I have been looking at doing the same thing. I have run into the same issue that you did as well. I haven't been able to find a good way to "gracefully" shutdown the rpi.

I have been looking at the PowerBoost 1000 with a Lipo-Battery, so when you turn off the car the rpi will still have power to execute the shutdown process

Also was looking at trying to find a large enough capacitor to have enough power for the rpi shutdown process
old guy
Experienced MS/Extra'er
Posts: 362
Joined: Thu Jan 24, 2008 9:20 am
Location: North Carolina

Re: Tunerstuido, RPi3, and the 7" touch screen

Post by old guy »

I know nothing about a Pi , but is this what you are looking for?
https://lowpowerlab.com/shop/product/91
stanglx2002
Experienced MS/Extra'er
Posts: 231
Joined: Wed Dec 28, 2016 7:16 am

Re: Tunerstuido, RPi3, and the 7" touch screen

Post by stanglx2002 »

I have been doing hours and hours of more research on the shutdown process with nobody having a clearcut way of doing it. Upon further research of just a timer to cut power I ran across using a 555 timer circuit. Researching this I found this prebuilt timer that does just what I have been looking for.

I hope it helps you with your project

https://www.amazon.com/Timer-Delay-Rela ... RBDCRA8FXT
jsiedlicki
Master MS/Extra'er
Posts: 687
Joined: Sun Jun 23, 2013 3:52 pm

Re: Tunerstuido, RPi3, and the 7" touch screen

Post by jsiedlicki »

I am also using a Pi to run my digital dash. The safe shutdown is an issue. You do not want to simply cut power to the Pi, at some point it will corrupt the SD card and you'll have to reload everything. If you are not afraid of some soldering and DIY circuitry, these two articles outline how to build a UPS and an auto-shutdown circuit that will shutdown the Pi when the key is turned off.

http://homediyelectronics.com/projects/raspberrypi/ups/

https://www.raspberrypi.org/forums/view ... p?t=102015
MS3-Pro 1st Gen | Honda K24 Supercharged
MS3/MS3X | SB Ford 347 stroker
dsmcrzy
MS/Extra Newbie
Posts: 32
Joined: Sun Jul 08, 2012 1:01 pm
Location: Ohio USA
Contact:

Re: Tunerstuido, RPi3, and the 7" touch screen

Post by dsmcrzy »

I have that shut down circuit made by mausberry. It works very well. Overall I am happy with the pi3 as my indash digital display. The gauges are a bit slow through the transients but overall works very well. Data logs are nice and crisp (have it hard wired to my MS unit via USB.

Besides the ~45 second boot time it's really a nice solution to having a billion gauges through out the car.

The bezel was 3D printed from shapeways using their laser sintering process. This leave a very fine and strong part. Then just used truck bed liner coating to get the stock-ish texture.

You can see pics of it here (they are too big to upload off my phone). If you go a couple pages back I have the pic from the start.

http://www.dsmtuners.com/threads/dsmcrz ... -153641172
toyotaspeed90
Helpful MS/Extra'er
Posts: 67
Joined: Mon Feb 14, 2005 2:33 pm
Location: Bellingham, WA
Contact:

Re: Tunerstuido, RPi3, and the 7" touch screen

Post by toyotaspeed90 »

I don't have a problem soldering as I've built many a MS units.. been watching for the Mausberry unit (daily) but no change...

I assume I'm reading there's a slight lag - Which would mean auto tune may not be the best choice.....

With the tunerstudio key, and a view that may be more suitable

Image
dsmcrzy
MS/Extra Newbie
Posts: 32
Joined: Sun Jul 08, 2012 1:01 pm
Location: Ohio USA
Contact:

Re: Tunerstuido, RPi3, and the 7" touch screen

Post by dsmcrzy »

I have had no problems with auto tune. It's more like the graphics end... I still need to tweak a few things and maybe over clock it. Like I said, data logs look just like my laptop took them it's just needle and gauge movement that lags a bit.

If you live anywhere warm, get a case with a built in fan. I was having a few over heating problems. The small fan helped a lot!

Shoot mausberry an email. That's the only way I got mine. They (for some reason) never switch that to 'in stock'.
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Tunerstuido, RPi3, and the 7" touch screen

Post by LT401Vette »

The render speed will vary with the complexity of the dash. With most dashboards it is quite acceptable with the Pi 3. You may want to play around with different dashboards.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
Post Reply