he351ve can

Testing and development of Megasquirt 3

Moderators: jsmcortina, muythaibxr

fpvmustang
Helpful MS/Extra'er
Posts: 109
Joined: Sat Oct 13, 2012 11:17 pm
Location: Quincy CA. USA

he351ve can

Post by fpvmustang »

Is this working if not how can i help?
I ordering a can-bus shied so i can test my actuators.
http://forum.mopar1973man.com/topic/963 ... n-cummins/
Looks like to me a few changes would need to be made to boost control.
like( boost control lower limit delta) when below range uses initial value table.
I data log shaft speed and drive pressure already.
33 psi boost on lpg
fpvmustang
Helpful MS/Extra'er
Posts: 109
Joined: Sat Oct 13, 2012 11:17 pm
Location: Quincy CA. USA

Re: he351ve can

Post by fpvmustang »

both my actuators home when 12v is applied.
is there a way to easily send basic CAN commands out of ms3?
33 psi boost on lpg
grom_e30
Super MS/Extra'er
Posts: 4459
Joined: Thu Mar 08, 2012 12:44 pm
Location: UK

Re: he351ve can

Post by grom_e30 »

http://www.msextra.com/forums/viewtopic ... ve#p445260

have a look there
Holset HE351VE VGT turbo - this broadcasts 'boost duty' with a 29bit CAN identifier specific to the turbo.
1990 bmw 320i daily driver with m20b25 ms3 sequential fuel, 380cc injectors, d585 coil near plug, home made cam sync, launch control, fan control, vss, homebrew egt logging what's next????
fpvmustang
Helpful MS/Extra'er
Posts: 109
Joined: Sat Oct 13, 2012 11:17 pm
Location: Quincy CA. USA

Re: he351ve can

Post by fpvmustang »

http://www.msextra.com/forums/viewtopic ... ve#p457335
mikey antonakakis wrote:Well, after a few more hours of messing around, I have confirmed that the VGT actuator on my turbo works well. I used an Arduino and CAN-bus Shield with some simple code using a potentiometer to command position, and it works great. These vanes move really fast if you want them to!! They'll snap full open to full close in a fraction of a second!

So I know the issue is somewhere in the Megasquirt at least. With it currently working on the Arduino, worst case (i.e. I can't get MS to send the CAN signal) it will be very simple to use MSExtra boost control as a PWM input to the Arduino, which I can then send through the CAN-bus shield to the turbo. I might actually like that idea better, because I can set up a bunch of different algorithms that way. For example, set up a shaft speed control algorithm on the Arduino, but leave the PWM from MS hooked up, and switch between the two. Lots of possibilities now!

I'll mess with it before the weekend.
The Arduino is probably the best way to run it for now. Think James has enough on his plate already.
:RTFM: I need to look into CAN sensors to Arduino.
33 psi boost on lpg
xrattiracer
Experienced MS/Extra'er
Posts: 301
Joined: Fri Aug 01, 2008 2:25 pm

Re: he351ve can

Post by xrattiracer »

Ive been doing a lot of work with CANbus connected devices (gauges mostly). check the expansion boards section of the forum for ideas.
the best quick way to get started is a teensy module and a canbus transceiver. total cost around $20.
i have one of these turbos sitting around too. its too big for my current setup and goals, but it may be something i play with once i eventually do an engine swap.
fpvmustang
Helpful MS/Extra'er
Posts: 109
Joined: Sat Oct 13, 2012 11:17 pm
Location: Quincy CA. USA

Re: he351ve can

Post by fpvmustang »

Thank you completely forgot about that section.
This he351ve is on a 2.3 lima (turbocoupe, merkur). mild head porting and valve unshrouding large FMIC. Log manifold homemade.

with EBP (exhaust pressure) 20 kpa above boost running on propane vapor injection.
.5 psi at 1500 rpm
2 psi at 2,000 rpm
over 14psi at 3500 rpm
over 28psi at 4500 rpm

it will run 1 to 1 boost to EBP anywhere over 5psi boost
12psi boost with 11psi EBP at 4,000 rpm
50 kpa EBP over boost does spools faster.

I'm working on a HE300 58mm compressor housing to build more low end.
The HE341ve compressor wheel and housing bolt on to the he351ve. If I remember correctly there 56mm inducer. but hard to find.
33 psi boost on lpg
xrattiracer
Experienced MS/Extra'er
Posts: 301
Joined: Fri Aug 01, 2008 2:25 pm

Re: he351ve can

Post by xrattiracer »

as you can probably guess by the name mine is a 2.3 in a merkur.
i have run an HY35 and HE351 in the past, but currently have a GT28RS on it as it it setup for autocross.
fpvmustang
Helpful MS/Extra'er
Posts: 109
Joined: Sat Oct 13, 2012 11:17 pm
Location: Quincy CA. USA

Re: he351ve can

Post by fpvmustang »

nope didn't notice, i have even checked out your gauge pics.
my 2.3 was a merkur 85?
it was originally in a 65 mustang then i moved it to my beater 83 ranger when the ranger needed a motor.
got a 88 turbocoupe i parted to replace mustangs engine.
But I'm running the crappy replacement head with a mild comp cam. head is worst flowing casting.
With vgt i can drive compressor in to surge at lower rpm. so really the surge line limits boost. that's why i want to drop compressor size.
How fast does your setup spool?
33 psi boost on lpg
xrattiracer
Experienced MS/Extra'er
Posts: 301
Joined: Fri Aug 01, 2008 2:25 pm

Re: he351ve can

Post by xrattiracer »

i havent had a lot of drive time on it since switching to the GT28 nor have i started tuning it for higher than minimum boost yet, but it seems to make good boost by 2500 rpm probably full boost by 3000 once tuned. and it will support up to about 350hp so its a pretty good choice for this engine. i also have a well ported head (stock valves) and a tube header, boport 1.1 cam.
i plan on switching to a duratech 2.3 or something similar when i scatter this engine or just get tired of it. the holset may be a better choice for that.
fpvmustang
Helpful MS/Extra'er
Posts: 109
Joined: Sat Oct 13, 2012 11:17 pm
Location: Quincy CA. USA

Re: he351ve can

Post by fpvmustang »

do you remember how fast the he351cw reached full boost?
also how much boost do you run?
33 psi boost on lpg
xrattiracer
Experienced MS/Extra'er
Posts: 301
Joined: Fri Aug 01, 2008 2:25 pm

Re: he351ve can

Post by xrattiracer »

i seem to remember getting full boost at around 3500-4000 depending on which cam i was using. i should be able to dredge up some datalogs...
i have generally run around 25 psi boost.
fpvmustang
Helpful MS/Extra'er
Posts: 109
Joined: Sat Oct 13, 2012 11:17 pm
Location: Quincy CA. USA

Re: he351ve can

Post by fpvmustang »

http://forum.mopar1973man.com/topic/963 ... ns/?page=1

http://community.lilbb.com/index.php

Some good info on controlling turbo using arduino based code. teensy looks like one of the better options.
Honestly I'm just learning coding. So it will take me sometime.
33 psi boost on lpg
jsmcortina
Site Admin
Posts: 39614
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: he351ve can

Post by jsmcortina »

Why use an additional microcontroller when the MS3 source is available for customers and the CAN broadcast is in place?

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
fpvmustang
Helpful MS/Extra'er
Posts: 109
Joined: Sat Oct 13, 2012 11:17 pm
Location: Quincy CA. USA

Re: he351ve can

Post by fpvmustang »

honestly think that's over my head. i will look into it. I should have time this weekend to pull ms3 out of falcon to play with.
i messed with arduino and can shield and got basic control with pot. But to go farther is going to be a struggle for me.
I wanted to thank you james for the dual fuel additions you have made.
33 psi boost on lpg
fpvmustang
Helpful MS/Extra'er
Posts: 109
Joined: Sat Oct 13, 2012 11:17 pm
Location: Quincy CA. USA

Re: he351ve can

Post by fpvmustang »

33 psi boost on lpg
fpvmustang
Helpful MS/Extra'er
Posts: 109
Joined: Sat Oct 13, 2012 11:17 pm
Location: Quincy CA. USA

Re: he351ve can

Post by fpvmustang »

I don't think i need to mess with source code after watching. mega meet 2015 video on ms extra.
I hooked up can wires to turbo today. no luck
I guess next step is to try to read CAN coming from ms3 with arduino to check CAN output.
33 psi boost on lpg
jsmcortina
Site Admin
Posts: 39614
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: he351ve can

Post by jsmcortina »

:msq:
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
fpvmustang
Helpful MS/Extra'er
Posts: 109
Joined: Sat Oct 13, 2012 11:17 pm
Location: Quincy CA. USA

Re: he351ve can

Post by fpvmustang »

sorry james
33 psi boost on lpg
fpvmustang
Helpful MS/Extra'er
Posts: 109
Joined: Sat Oct 13, 2012 11:17 pm
Location: Quincy CA. USA

Re: he351ve can

Post by fpvmustang »

http://forum.mopar1973man.com/topic/963 ... n-cummins/

the following sketch works for me. the pot settings are not right.


#include <SPI.h>

#include <can.h>
#define mode NORMAL // define CAN mode
#define bitrate 250 // define CAN speed (bitrate)
MCP CAN1(10); //Create CAN Channel
int potPin = 0; // select the input pin for the potentiometer
int val = 0; // variable to store the value coming from the sensor
//unsigned int counter1 = 0;
int outputValue = 0;

void setup(){

Serial.begin(115200); // Initialize Serial communications with computer to use serial monitor

//Set CAN mode and speed

CAN1.begin(mode, bitrate);


if ((CAN1.readMode () == mode) && (CAN1.readRate() == bitrate)) // Check to see if we set the Mode and speed correctly. For debugging purposes only.
{
Serial.println("CAN Initialization complete");
Serial.print ("CAN speed set to: ");
Serial.print (bitrate);
Serial.print ("kbit/s");
}
else
{
Serial.println("CAN Initialization failed");
Serial.println("CAN speed failed");
}
}
// Create a fuction to load and send an extended frame message

void extendedMessage(){
val = analogRead(potPin); // read the value from the sensor
outputValue = map(val, 0, 1024, 0, 2255);
unsigned long ID = 0x0CFFC600; // Random Extended Message ID
byte length = 8; // Data length
byte data[] = { outputValue, 0x01, 0x01, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}; // data message with an added counter

CAN1.send (ID, extID, length, data); // Load message and send
// counter1++;
}
// Finally arduino loop to execute above functions with a 500ms delay

void loop(){

extendedMessage();
delay(5);

}
33 psi boost on lpg
Alfagta
Experienced MS/Extra'er
Posts: 239
Joined: Wed Aug 21, 2013 2:54 am

Re: he351ve can

Post by Alfagta »

Are you sure that this is okay?

Code: Select all

outputValue = map(val, 0, 1024, 0, 2255);
byte data[] = { outputValue, 0x01, 0x01, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}; // data message with an added counter
Alfa 156 GTA
Alfa 75 Race Car MS III -- alway latest FW
Alfa 164 V6 Turbo
Alfa 155 2,5TD RIP
Test MS II --always latest FW
Tunerstudio V2.6.11 Registered
MegaLog Viewer V3.4.04 Registered
Post Reply