re-purposing a Megasquirt need some help

For theoretical or hypothetical general EFI related discussions, and/or discussions of advanced automotive technology not currently implemented in MegaSquirt®/MS-II(tm) EFI controllers.
Post Reply
jakeymears
MegaSquirt Newbie
Posts: 4
Joined: Fri Aug 06, 2010 1:34 pm

re-purposing a Megasquirt need some help

Post by jakeymears »

Hi all,

This post is a bit off topic and so I'm not really sure which section to post it in so my apologies if I've put it up in the wrong section.

For a uni project I am experimenting with replacing the regular valve train of a small single cylinder engine with an electronic valve system.
As I want to focus on creating a functioning system and thus proving benefits of this system I was hoping to reduce the time spent on the mechanics and control system so I can get it going and begin experimenting

To this end I thought that I'd re-purpose a Megasquirt as it is versatile and I've used it before. My thought is that I can use the two ignition outputs to switch the two solenoids controlling the valves.

This way the mapped ignition timing now becomes the new valve timing and the dwell becomes the duration.

I figure I'm going to have some trouble configuring the spark timing to overlap as the ignition events wouldn't usually be as close as the inlet/exhaust valve events, but I think my real problem will be setting the dwell to change throughout the RPM range.

My question is it possible to configure a Megasquirt in this way it will only be needed to control the valves, fuelling and spark timing would a separate entity

Thank you in advance for your time
Matt Cramer
Super Squirter
Posts: 2951
Joined: Sat Jul 03, 2004 11:35 am

Re: re-purposing a Megasquirt need some help

Post by Matt Cramer »

That sounds doable in theory, but is likely to need custom code as dwell typically behaves a bit differently from valve opening time.
jakeymears
MegaSquirt Newbie
Posts: 4
Joined: Fri Aug 06, 2010 1:34 pm

Re: re-purposing a Megasquirt need some help

Post by jakeymears »

Thanks for your reply Matt, if i was to modify the code is there any resources available for me to learn about the system/code that you could point me in the direction of ?
jakeymears
MegaSquirt Newbie
Posts: 4
Joined: Fri Aug 06, 2010 1:34 pm

Re: re-purposing a Megasquirt need some help

Post by jakeymears »

I've been reading through the megamanual, this section in particular the coding section and though doable its a completely new skill set for me to learn. I best get reading :RTFM:
Post Reply