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/)

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.


All times are GMT -4. The time now is 04:43 AM.


© 2024 MH Sub I, LLC dba Internet Brands