Miata Turbo Forum - Boost cars, acquire cats.

Miata Turbo Forum - Boost cars, acquire cats. (https://www.miataturbo.net/)
-   MEGAsquirt (https://www.miataturbo.net/megasquirt-18/)
-   -   Raspberry Pi 3 and Tunerstudio (https://www.miataturbo.net/megasquirt-18/raspberry-pi-3-tunerstudio-90545/)

Arny 09-18-2016 09:04 AM

Raspberry Pi 3 and Tunerstudio
 
Hi all,

I'm looking for an easy solution to integrate a 2 DIN touch screen in the dashboard in order to run Tunerstudio and Tune Analyze Live in my miata.
Do you know if the Rasberry Pi 3 can run Tune Analyze Live ?

I have read that Tunerstudio worked on the Raspberry Pi 2 but Tune Analyze Live had some issues..

Thanks for the help.

thenuge26 09-18-2016 09:49 AM

I've been playing with the idea of doing something similar. I would probably go with something a bit more powerful like a banana pi since they're not much more expensive.

akbloom 09-18-2016 10:14 PM

I can't even begin to image how frustrating it would be to use tuner studio on a small touch screen. It's bad enough with a keyboard and mouse.

thenuge26 09-19-2016 01:40 AM

Keep one of these in the trunk for serious work
https://cimg0.ibsrv.net/gimg/www.mia...53c01d20be.jpg


Gimpster 09-22-2016 03:32 PM

I know this doesn't answer your questions, but FWIW: I tried and tried to force myself to use a mounted 10.1" Windows Tablet for tuning over the past year (HPTuners on a GM mostly). The issue is... none of the applications I've seen are setup well for touch. I kept a bluetooth keyboard very similar to what thenuge26 posted, but at that point it didn't make much sense. It did work great for a digital dash though, just getting around menus etc was a real drag.

thenuge26 09-22-2016 05:52 PM

See I had a touch screen laptop for tuning (well I still have one it's just a different one) and it was brilliant in that it's still easier to get around those menus with a touch screen vs a touch pad (even a large one like the one in my pic). I was able to turn off my "fixed 10° timing" setting I had turned on to check the timing while going 60mph down I-465. There's no way I could have done that with the touchpad.

But that may just be my preference.

Gimpster 09-22-2016 05:58 PM

It's possible that the touch resolution of your laptop is waaaay better than my $99 tablet too :)

squeegee 10-01-2016 12:19 PM

I have an RPi3 at the shop I can play with, I'll see if it's plug n play.
I'd played around with the idea of using the CAN on the MS to play with data that way, but having tunerstudio around would be much more slick

squeegee 10-01-2016 12:20 PM

-doublepost-

Frenchmanremy 12-15-2016 09:44 AM

Any news on this?
Has anyone found a UI that'll have tunerstudio, Radio and GPS working?

Downmented 12-15-2016 10:46 AM

Another aspect to take into consideration is what double din device are you using that integrates with the RP, something like a carpc would work, and eliminate the need for a RP entirely, granted that's significantly more expensive, but already comes with windows, so theres that.

Frenchmanremy 12-15-2016 10:51 AM

Well, I've gotten Tunerstudio to run quite well on my RPi3.
I was just going to use a GPS USB dongle, a small amplifier for the speakers, the RPi3, a Bluetooth Dongle, and a 7" tactile screen.
Just looking for a UI that'll work with TunerStudio AND audio...

acedeuce802 12-16-2016 02:37 PM

Has anyone been using the standard Raspberry Pi 7" touch screen in the car? I'm mostly curious about glare and reliability of using it as an instrument cluster. My current plan is to have my Racepak IQ3s as my instrument cluster, and have a Raspberry Pi in my radio area. Now having the Racepak almost seems unnecessary since I'll be taking all the data through Megasquirt and transferring it over CAN to Racepak... why not just put the Pi in the cluster and not even worry about CAN transmission?

I've been looking into switching options, I found two sources that will take 12V inputs, but one of them has production on hold for a redesign. They use both constant and switched power, and safely shut down the Pi when switched power is removed.

MoPower UPS designed for the Raspberry Pi ASSEMBLED AND TESTED MOPOWER-UPS-V1.00-ASSEMBLED-TESTED - All Spectrum Electronics
3A Car Supply / Switch ? Mausberry Circuits

aidandj 12-16-2016 04:55 PM


Originally Posted by acedeuce802 (Post 1381795)
Has anyone been using the standard Raspberry Pi 7" touch screen in the car? I'm mostly curious about glare and reliability of using it as an instrument cluster. My current plan is to have my Racepak IQ3s as my instrument cluster, and have a Raspberry Pi in my radio area. Now having the Racepak almost seems unnecessary since I'll be taking all the data through Megasquirt and transferring it over CAN to Racepak... why not just put the Pi in the cluster and not even worry about CAN transmission?

I've been looking into switching options, I found two sources that will take 12V inputs, but one of them has production on hold for a redesign. They use both constant and switched power, and safely shut down the Pi when switched power is removed.

MoPower UPS designed for the Raspberry Pi ASSEMBLED AND TESTED MOPOWER-UPS-V1.00-ASSEMBLED-TESTED - All Spectrum Electronics
3A Car Supply / Switch ? Mausberry Circuits

Hit me up if you decide to not use that iq3s

acedeuce802 12-16-2016 05:02 PM


Originally Posted by aidandj (Post 1381833)
Hit me up if you decide to not use that iq3s

Cool, will do. I still have original box, cables, sensors, etc.


I bought this dash. That's what got me thinking of using the Raspberry Pi as the instrument cluster. Now that I'm using a 0-5V oil pressure sensor on the LS1, I'd either have to use dual sensors to feed the Racepak, use a separate gauge somehow, or just use a warning light to get the reading in front of me. Having the Pi as a cluster would give me access to all warnings, CEL's, gauges, etc. The Racepak also wouldn't be able to display AFR2 since I'm using a wideband on each bank.

Downmented 12-17-2016 12:27 PM


Originally Posted by aidandj (Post 1381833)
Hit me up if you decide to not use that iq3s


:bigtu:

Teejay187 02-07-2017 03:44 AM

1 Attachment(s)
A replacement for the gauge cluster you say?

Attachment 181951

ksmart5 02-07-2017 05:40 AM


Originally Posted by Teejay187 (Post 1391036)
A replacement for the gauge cluster you say?

http://i182.photobucket.com/albums/x...psv933q0go.jpg

Is the hole there on the side for a fuel gauge? I'm pretty close to having this project wrapped up myself, just been out of the country on business for the last couple months.

Teejay187 02-07-2017 06:02 AM

Yes, it is. It is the only thing left to wire up. Tested GPS as a speedometer in TS and it works wonderfully on the track.

ksmart5 02-07-2017 07:16 AM

Awesome, I can't wait to get mine thrown in as well. What is the refresh rate of the GPS module that you used?

Teejay187 02-07-2017 07:17 AM

I used the 10Hz module from Adafruit. It works great!

ksmart5 02-07-2017 07:34 AM


Originally Posted by Teejay187 (Post 1391047)
I used the 10Hz module from Adafruit. It works great!

That's good to know in case I run into issues with mine. I went with the Stratux Vk-162. If it gives me a fit, at least I have another option to go to that is already tried and true.

Teejay187 02-07-2017 07:36 AM

Yep. I am thinking of doing a write-up of the setup. Gauging interest..

ksmart5 02-07-2017 07:56 AM

I would certainly be curious to find out what your workaround for the odometer is. Do you intend to go without an odometer or are you going to use wheel speed sensors to make something else work?

acedeuce802 02-07-2017 10:48 AM

I'm excited to see more people doing this! I'll have my final mount done tonight hopefully.

Has anyone been using an OS other than Raspbian Jessie? I've been playing around with dietpi to try to run a lightweight headless OS, but I'm super new to Linux so right now I'm just playing around with no success lol. Or if you are using Jessie, anything specific you've done to cut down boot times?

How are you guys handling power and shutdown?

aidandj 02-07-2017 10:50 AM

fwiw you should be able to just kill the system by pulling the plug without too many issues.

Teejay187 02-07-2017 10:55 AM


Originally Posted by acedeuce802 (Post 1391077)
I'm excited to see more people doing this! I'll have my final mount done tonight hopefully.

Has anyone been using an OS other than Raspbian Jessie? I've been playing around with dietpi to try to run a lightweight headless OS, but I'm super new to Linux so right now I'm just playing around with no success lol. Or if you are using Jessie, anything specific you've done to cut down boot times?

How are you guys handling power and shutdown?

I overclocked the Pi and got pretty decent boot times on Raspian Pixel. I think somewhere between 30-45 seconds to get it to full screen and connected to the ECU.

For power I use a 3A micro USB adapter connected to switched power. More specific I used the cigarette lighter circuit.

acedeuce802 02-07-2017 12:27 PM

I've heard of issues with pulling the plug without commanding a safe shutdown. There is chance of corrupting the SD card. My current solution is to have a momentary button that goes to GPIO to command a shutdown. The Mausberry car circuits have been out of stock for a while.

aidandj 02-07-2017 12:28 PM

what about wiring the pi to an always hot connection. And having ignition trigger a relay that sends a GPIO pin high or low.

acedeuce802 02-07-2017 01:57 PM

Possibly. I'll have to look into that.

Just got the final mount panel waterjet. I just need to clean up the plastic that got a little tarnished in the waterjet.

https://c1.staticflickr.com/1/430/31...332a9f98_b.jpg

https://c1.staticflickr.com/1/358/32...922193e4_b.jpg

ksmart5 02-08-2017 06:38 AM


Originally Posted by acedeuce802 (Post 1391114)
Possibly. I'll have to look into that.

Just got the final mount panel waterjet. I just need to clean up the plastic that got a little tarnished in the waterjet.

https://c1.staticflickr.com/1/430/31...332a9f98_b.jpg

https://c1.staticflickr.com/1/358/32...922193e4_b.jpg

Are those LEDs on either side and what are they being used for? As for powering mine, I haven't been able to work on that piece of the puzzle as of yet. Still out of the country so I haven't been able to do much testing.

Teejay187 02-08-2017 07:32 AM

3 Attachment(s)
For powering the unit, I used one of these. Micro USB Trasformatore Convertitore Alimentatore DC12V a DC5V 3A Impermeabile eBay
It is a 3A 5V Micro USB adapter that runs on 12V. Also the angled plug makes it easier to use, at least for my application.

Regarding problems with a "dirty" shutdown, I have had none. I use small SD-cards and if a dirty shutdown causes a volume check, it takes like 2 seconds more at boot. Unless you are logging, there should be minimal writing to the SD-card and no reason for corrupting data.

Ace, that panel looks sweet! I am really curios on these LEDs and buttons.


My setup consists of two parts. A case containing the screen/Pi/GPS module, and the frame that the cases slides into. So removal requires only the removal of the hood cover.

Attachment 181945
Attachment 181946
Attachment 181947

ksmart5 02-08-2017 07:40 AM


Originally Posted by Teejay187 (Post 1391236)
For powering the unit, I used one of these. Micro USB Trasformatore Convertitore Alimentatore DC12V a DC5V 3A Impermeabile eBay
It is a 3A 5V Micro USB adapter that runs on 12V. Also the angled plug makes it easier to use, at least for my application.

Regarding problems with a "dirty" shutdown, I have had none. I use small SD-cards and if a dirty shutdown causes a volume check, it takes like 2 seconds more at boot. Unless you are logging, there should be minimal writing to the SD-card and no reason for corrupting data.

Ace, that panel looks sweet! I am really curios on these LEDs and buttons.


My setup consists of two parts. A case containing the screen/Pi/GPS module, and the frame that the cases slides into. So removal requires only the removal of the hood cover.

http://i182.photobucket.com/albums/x...psnyvxtvv3.jpg
http://i182.photobucket.com/albums/x...psnocclvdi.jpg
http://i182.photobucket.com/albums/x...psqmscxdcg.jpg

This write up was what got me started in the right direction for my own build. I just wish I would've had a 3D printer to make my own dash as you did. I settled for the FM aluminum dash blank that I still have to cut for some gauges and the screen to come through. Props for that, by the way. :likecat:

Teejay187 02-08-2017 08:02 AM

That's awesome! I am going to do a full write-up on both software and hardware in the near future. Attaching the 3D-files for the frame/case as well, so people can use a 3Dhub near them to get it printed. That should make for a sub $400 dash replacement that is actually easy to set up.

acedeuce802 02-08-2017 08:59 AM

Nice enclosure, very cool!

Even though the thick plastic on mine isn't the best solution, it's a super efficient way to make it. I would probably sell my setup for $275 including the pi, screen, 5V regulator, and plates to mount it. Maybe $325 for $350 with LED's, buttons, and fully wired with a connector. It takes no extra time to change around LED or button location, and changing the type of LED or button requires just the diameter of the shaft, and packaging space. Updating the dxf for waterjet takes a few seconds as well.

The 3 LED's on either side of the screen are a sequential tachometer. Just using 3 different programmable outputs from Megasquirt. The one to the side is a coolant warning light. I shouldn't need these with the screen displaying all the data, but I felt it'd be nice to have these redundant and in your face with really bright LED's.

The red guys are button/light combo's. The lights in them are turn signal indicators. One of the buttons commands a safe shutdown through the GPIO. No function for the other button yet.

eiton 02-09-2017 08:25 AM

How are you guys going about connecting the rpi to megasquirt? Just the usual db9 to usb adapter?

I was slowly working on my own dashboard project where I was going to theoretically not use tuner studio and just make my own gauge cluster. I've got the graphics more or less sorted and I'm not just trying to figure out what to use (for a reasonable price) to read can broadcasts from the ms. PiCAN2 and Canberry Pi looked like good solutions but more expensive than I'd like when you can get a board with an mcp2515 chip for $2 from china that almost works.

aidandj 02-09-2017 08:48 AM

Ms3pro doesn't have a db9. Has a USB connector.

eiton 02-09-2017 09:36 AM

My plan was to use an MS3x and try to make use of the db9 connector it has and leave the USB connector open for tuning on a laptop. The rpi dash is mainly just for aesthetitcs and I didn't planning on having it do more than just read in values and make shapes on a screen. The db9 connector sounds like it lends itself better to wiring a short cable exactly the length I need vs trying to find a properly sized usb cable. Also, I don't completely know what I'm doing and outside figuring out the graphics side of things, everything is still theoretical for me on this.

aidandj 02-09-2017 09:40 AM

You could probably do that. Keep in mind they both cannot be connected at the same time.

acedeuce802 02-09-2017 09:43 AM


Originally Posted by eiton (Post 1391518)
My plan was to use an MS3x and try to make use of the db9 connector it has and leave the USB connector open for tuning on a laptop. The rpi dash is mainly just for aesthetitcs and I didn't planning on having it do more than just read in values and make shapes on a screen. The db9 connector sounds like it lends itself better to wiring a short cable exactly the length I need vs trying to find a properly sized usb cable. Also, I don't completely know what I'm doing and outside figuring out the graphics side of things, everything is still theoretical for me on this.

This is what I'm doing as well. I'm using MS3pro so I just don't have the db9 to USB, but it still has 2 USB's (for serial and USB connection). The serial will go to Raspberry, and USB will go to a bulkhead connector ready to plug into a laptop. As Aidan said, I'll kill power to the Pi and then plug into the laptop.

eiton 02-09-2017 09:54 AM

Ahh, that's unfortunate. I was under the impression that you could have one of the connections set to broadcast only (which is what I want anyway for the rpi) and the other could be used normally for tuning at the same time. Not a deal breaker but that is a slight annoyance.


Originally Posted by acedeuce802 (Post 1391522)
This is what I'm doing as well. I'm using MS3pro so I just don't have the db9 to USB, but it still has 2 USB's (for serial and USB connection). The serial will go to Raspberry, and USB will go to a bulkhead connector ready to plug into a laptop. As Aidan said, I'll kill power to the Pi and then plug into the laptop.

How'd you go about connecting the db9 to the pi? usb converter, external board or some sort of gpio magic?

aidandj 02-09-2017 09:55 AM

You can broadcast CAN and tune at the same time. So you could to that route.

Again the ms3pro has 2 USB connectors and no db9. But a db9-usb should work fine.

Frenchmanremy 02-09-2017 10:02 AM

How does everyone find the reliability of bluetooth on MS2 vs wired connection?
I've had issues with my wired connection dropping signal, not sure if due to shitty laptop or shitty wires, or EM noise....

I plan on building an RPI, just looking for a screen that has a volume knob that can be wired in, I'd essentially want GPS, audio, and Tunerstudio all in one.

aidandj 02-09-2017 10:04 AM

Bluetooth works great for the connection between my phone and ms3. Almost no issues. I run msdroid over it all the time. It has gotten better on my Mac. I think windows might work a bit better, but it is noticeably slower for tuning and connecting than a wired connector.

Frenchmanremy 02-09-2017 10:20 AM

So It shouldn't be used for VEAL Autotune, but is fine for display purposes?
FYI, I'm using an MS2E, don't know if that matters. Need to find a reliable bluetooth adapter now...

aidandj 02-09-2017 10:33 AM

It might be fine for VEAL, never tried it.

acedeuce802 02-09-2017 10:40 AM

I used it with VEAL with success. Though I'll primarily be using a wired connection now. For a Raspberry Pi that's mounted in the vehicle, I don't see why bluetooth would be considered.

Teejay187 02-10-2017 09:32 AM

You can tweak the GUI to suit the Pi screen, and you have the ability to fullscreen the VEAL menu so you can see all the cells etc. It works really well!

Frenchmanremy 02-10-2017 10:21 AM

Yeah, I know nothing of coding.
I just struggled to learn how to tune and turbo my car without asking redundant or stupid questions on this forum.

More research is needed, or a stable GUI image I can download and use out of the box with minor modifications to suit my needs.
I'll be over here reading and learning until that time. :)

Gimpster 02-10-2017 10:28 AM

I'd certainly be interested in a full write up if you had the time! Speaking or myself, my Miata is 25 years old and just over 100,000 miles. In most states, including mine, this means its over its mechanical limits anyway. So an odometer is irrelevant as long as you market it that way if the vehicle was sold.

I'm kinda torn, I love the Pi concept and your project looks great. I wish I had more time in my life to hack on stuff these days, but I would love to do an FPGA based solution. I started to reverse engineer the digital dash a bit in one of my old daily drivers, a 2009 Cobalt SS. It was a pretty cool device and obviously well suited/rugged for the demands. Continental built it for GM. It just parks itself on CAN and watched for PID's from the ECM like you would expect. I ended up having to drop the project due to time constraints.

edit: here are internal pictures of the unit, if you are curious: http://www.ecimulti.org/gallery3/ind...8/album171/RPD

Ex:
http://i44.tinypic.com/2vxg9l3.jpg

Barton 02-12-2017 07:51 PM


Originally Posted by Teejay187 (Post 1391236)

My setup consists of two parts. A case containing the screen/Pi/GPS module, and the frame that the cases slides into. So removal requires only the removal of the hood cover.


http://i182.photobucket.com/albums/x...psnocclvdi.jpg

Any chance you'd be willing to share the CAD for that design and which parts you used? Would love to do the same thing with my dash.

Teejay187 02-13-2017 10:32 AM


Originally Posted by Barton (Post 1392150)
Any chance you'd be willing to share the CAD for that design and which parts you used? Would love to do the same thing with my dash.

Sure! It was designed in Fusion360. I am pretty sure I could export CAD files from that. It needs a bit of cleanup though, so I need to get that sorted first.

Teejay187 02-20-2017 07:17 AM

1 Attachment(s)
Managed to get a close look at the installed unit. Seems like the fitment is good and without any adjustments needed. Starting a write-up this week.

Attachment 181842

Barton 04-02-2017 07:28 PM

Any update on this?

Morello 04-02-2017 09:53 PM


Originally Posted by eiton (Post 1391506)
How are you guys going about connecting the rpi to megasquirt? Just the usual db9 to usb adapter?

I was slowly working on my own dashboard project where I was going to theoretically not use tuner studio and just make my own gauge cluster. I've got the graphics more or less sorted and I'm not just trying to figure out what to use (for a reasonable price) to read can broadcasts from the ms. PiCAN2 and Canberry Pi looked like good solutions but more expensive than I'd like when you can get a board with an mcp2515 chip for $2 from china that almost works.

I'm late to this party but check out the teensy 3.2. I got one up and running with a CAN transceiver, an OLED screen and a circular LED strip to read CAN variables, and also read the digital output from my LC2 to broadcast to the ECU over CAN. I got it all together and working but never build an enclosure. My plan was to simply replace the dummy-light oil gauge with this, but it's still sitting on the desk in my bedroom a year later.

G3ML1NGZ 08-17-2017 11:01 AM

some were asking about safe shutdown. This is the route I'm going for

https://www.mausberrycircuits.com/co...-supply-switch

azmartin 06-11-2018 04:16 PM

Plugin?
 
Hi!

Is anyone of you capable of java development? How about addressing the Pi GPIO Pins by a TunerStudio plugin? I had someting like F1 style shift lights in mind or a segment LED gear display.

best regards

Martin


All times are GMT -4. The time now is 07:50 AM.


© 2024 MH Sub I, LLC dba Internet Brands