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

Tunerstuido, RPi3, and the 7" touch screen

Postby toyotaspeed90 » Fri Apr 07, 2017 9:58 am

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: 55
Joined: Mon Feb 14, 2005 2:33 pm
Location: Bellingham, WA

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

Postby toyotaspeed90 » Fri Apr 07, 2017 10:29 pm

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

Image
toyotaspeed90
Helpful MS/Extra'er
 
Posts: 55
Joined: Mon Feb 14, 2005 2:33 pm
Location: Bellingham, WA

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

Postby stanglx2002 » Fri Apr 21, 2017 6:20 am

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
88 Mustang GT 331 Stroker w/ AOD, MSPNP Gen2 (MS2/Extra 3.4.2) w/ LC-2 WB running TFI ignition
stanglx2002
MS/Extra Newbie
 
Posts: 14
Joined: Wed Dec 28, 2016 7:16 am

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

Postby old guy » Fri Apr 21, 2017 1:30 pm

I know nothing about a Pi , but is this what you are looking for?
https://lowpowerlab.com/shop/product/91
old guy
Experienced MS/Extra'er
 
Posts: 333
Joined: Thu Jan 24, 2008 9:20 am
Location: North Carolina

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

Postby stanglx2002 » Wed Apr 26, 2017 7:22 am

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
88 Mustang GT 331 Stroker w/ AOD, MSPNP Gen2 (MS2/Extra 3.4.2) w/ LC-2 WB running TFI ignition
stanglx2002
MS/Extra Newbie
 
Posts: 14
Joined: Wed Dec 28, 2016 7:16 am

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

Postby jsiedlicki » Wed Apr 26, 2017 5:02 pm

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/viewtopic.php?t=102015
MS3-Pro (6 cyclinder Subaru EZ36R)
MS2-extra (8 cyclinder Ford 347 stroker)
jsiedlicki
Helpful MS/Extra'er
 
Posts: 120
Joined: Sun Jun 23, 2013 3:52 pm

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

Postby dsmcrzy » Thu Apr 27, 2017 3:01 pm

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/dsmcrzys-eclipse-20g-420a.458757/page-11#post-153641172
dsmcrzy
MS/Extra Newbie
 
Posts: 31
Joined: Sun Jul 08, 2012 1:01 pm
Location: Ohio USA

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

Postby toyotaspeed90 » Thu Apr 27, 2017 4:23 pm

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
toyotaspeed90
Helpful MS/Extra'er
 
Posts: 55
Joined: Mon Feb 14, 2005 2:33 pm
Location: Bellingham, WA

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

Postby dsmcrzy » Thu Apr 27, 2017 5:34 pm

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'.
dsmcrzy
MS/Extra Newbie
 
Posts: 31
Joined: Sun Jul 08, 2012 1:01 pm
Location: Ohio USA

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

Postby LT401Vette » Fri Apr 28, 2017 7:26 am

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
User avatar
LT401Vette
Super MS/Extra'er
 
Posts: 10302
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC


Return to Tuner Studio

Who is online

Users browsing this forum: No registered users and 1 guest