MEGAsquirt A place to collectively sort out this megasquirt gizmo

Raspberry Pi 3 and Tunerstudio

Thread Tools
 
Search this Thread
 
Old 02-07-2017 | 08:17 AM
  #21  
Teejay187's Avatar
Junior Member
 
Joined: Jul 2013
Posts: 85
Total Cats: 48
From: Norway
Default

I used the 10Hz module from Adafruit. It works great!
Old 02-07-2017 | 08:34 AM
  #22  
ksmart5's Avatar
Newb
 
Joined: Jul 2014
Posts: 36
Total Cats: 3
From: Clarksville, TN
Default

Originally Posted by Teejay187
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.
Old 02-07-2017 | 08:36 AM
  #23  
Teejay187's Avatar
Junior Member
 
Joined: Jul 2013
Posts: 85
Total Cats: 48
From: Norway
Default

Yep. I am thinking of doing a write-up of the setup. Gauging interest..
Old 02-07-2017 | 08:56 AM
  #24  
ksmart5's Avatar
Newb
 
Joined: Jul 2014
Posts: 36
Total Cats: 3
From: Clarksville, TN
Default

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?
Old 02-07-2017 | 11:48 AM
  #25  
acedeuce802's Avatar
Senior Member
iTrader: (1)
 
Joined: Dec 2010
Posts: 1,218
Total Cats: 175
From: Farmington Hills, MI
Default

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?
Old 02-07-2017 | 11:50 AM
  #26  
aidandj's Avatar
SADFab Destructive Testing Engineer
iTrader: (5)
 
Joined: Apr 2014
Posts: 18,642
Total Cats: 1,866
From: Beaverton, USA
Default

fwiw you should be able to just kill the system by pulling the plug without too many issues.
Old 02-07-2017 | 11:55 AM
  #27  
Teejay187's Avatar
Junior Member
 
Joined: Jul 2013
Posts: 85
Total Cats: 48
From: Norway
Default

Originally Posted by acedeuce802
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.
Old 02-07-2017 | 01:27 PM
  #28  
acedeuce802's Avatar
Senior Member
iTrader: (1)
 
Joined: Dec 2010
Posts: 1,218
Total Cats: 175
From: Farmington Hills, MI
Default

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.
Old 02-07-2017 | 01:28 PM
  #29  
aidandj's Avatar
SADFab Destructive Testing Engineer
iTrader: (5)
 
Joined: Apr 2014
Posts: 18,642
Total Cats: 1,866
From: Beaverton, USA
Default

what about wiring the pi to an always hot connection. And having ignition trigger a relay that sends a GPIO pin high or low.
Old 02-07-2017 | 02:57 PM
  #30  
acedeuce802's Avatar
Senior Member
iTrader: (1)
 
Joined: Dec 2010
Posts: 1,218
Total Cats: 175
From: Farmington Hills, MI
Default

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.



Old 02-08-2017 | 07:38 AM
  #31  
ksmart5's Avatar
Newb
 
Joined: Jul 2014
Posts: 36
Total Cats: 3
From: Clarksville, TN
Default

Originally Posted by acedeuce802
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.



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.
Old 02-08-2017 | 08:32 AM
  #32  
Teejay187's Avatar
Junior Member
 
Joined: Jul 2013
Posts: 85
Total Cats: 48
From: Norway
Default

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.

Name:  2016-06-28%2008.35.34_zpsnyvxtvv3.jpg
Views: 6201
Size:  265.2 KB
Name:  Cluster_zpsnocclvdi.jpg
Views: 6070
Size:  27.0 KB
Name:  13692257_815730601896506_1274108699_o_zpsqmscxdcg.jpg
Views: 6245
Size:  74.5 KB
Old 02-08-2017 | 08:40 AM
  #33  
ksmart5's Avatar
Newb
 
Joined: Jul 2014
Posts: 36
Total Cats: 3
From: Clarksville, TN
Default

Originally Posted by Teejay187
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.



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.
Old 02-08-2017 | 09:02 AM
  #34  
Teejay187's Avatar
Junior Member
 
Joined: Jul 2013
Posts: 85
Total Cats: 48
From: Norway
Default

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.
Old 02-08-2017 | 09:59 AM
  #35  
acedeuce802's Avatar
Senior Member
iTrader: (1)
 
Joined: Dec 2010
Posts: 1,218
Total Cats: 175
From: Farmington Hills, MI
Default

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.
Old 02-09-2017 | 09:25 AM
  #36  
eiton's Avatar
Newb
 
Joined: Aug 2016
Posts: 40
Total Cats: 2
From: Deerfield Beach
Default

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.
Old 02-09-2017 | 09:48 AM
  #37  
aidandj's Avatar
SADFab Destructive Testing Engineer
iTrader: (5)
 
Joined: Apr 2014
Posts: 18,642
Total Cats: 1,866
From: Beaverton, USA
Default

Ms3pro doesn't have a db9. Has a USB connector.
Old 02-09-2017 | 10:36 AM
  #38  
eiton's Avatar
Newb
 
Joined: Aug 2016
Posts: 40
Total Cats: 2
From: Deerfield Beach
Default

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.
Old 02-09-2017 | 10:40 AM
  #39  
aidandj's Avatar
SADFab Destructive Testing Engineer
iTrader: (5)
 
Joined: Apr 2014
Posts: 18,642
Total Cats: 1,866
From: Beaverton, USA
Default

You could probably do that. Keep in mind they both cannot be connected at the same time.
Old 02-09-2017 | 10:43 AM
  #40  
acedeuce802's Avatar
Senior Member
iTrader: (1)
 
Joined: Dec 2010
Posts: 1,218
Total Cats: 175
From: Farmington Hills, MI
Default

Originally Posted by eiton
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:20 AM.