Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pattern ""4 cyl. Hall sensor dizzy with sparksensor" #2

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ardustim/src/ardustim.ino
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,11 @@ wheels Wheels[MAX_WHEELS] = {
{ four_twenty_a_friendly_name, four_twenty_a, 0.6, 144, 720 },
{ ford_st170_friendly_name, ford_st170, 3.0, 720, 720 },
{ mitsubishi_3A92_friendly_name, mitsubishi_3A92, 0.6, 144, 720 },
{ spark_dizzy_4cyl_a_friendly_name, spark_dizzy_4cyl, 0.6, 144, 720 } ,
{ Toyota_4AGE_CAS_friendly_name, toyota_4AGE_CAS, 0.333, 144, 720 },
{ Toyota_4AGZE_friendly_name, toyota_4AGZE, 0.333, 144, 720 },
{ Suzuki_DRZ400_friendly_name, suzuki_DRZ400,0.6, 72, 360},

};

/* Initialization */
Expand Down
21 changes: 20 additions & 1 deletion ardustim/src/wheel_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
FOUR_TWENTY_A, /* DSM 420a */
FORD_ST170, /* Ford ST170 */
MITSUBISHI_3A92, /* Mitsubishi 3cylinder 3A92 */
SPARK_DIZZY_4CYL, /* 70/100 low/high ratio hall sensor distributor, with sparksensor for secondary trigger*/
TOYOTA_4AGE_CAS, /*Toyota 4AGE CAS, 4 teeth and one cam tooth*/
TOYOTA_4AGZE, /*Toyota 4AGZE, 24 teeth and one cam tooth*/
SUZUKI_DRZ400, /* Suzuki DRZ-400 6 coil "tooths", 2 uneven crank tooths */
Expand Down Expand Up @@ -172,6 +173,7 @@
const char four_twenty_a_friendly_name[] PROGMEM = "DSM 420a";
const char ford_st170_friendly_name[] PROGMEM = "Ford ST170";
const char mitsubishi_3A92_friendly_name[] PROGMEM = "Mitsubishi 3A92";
const char spark_dizzy_4cyl_a_friendly_name[] PROGMEM = "4 cyl. Hall sensor dizzy with sparksensor";
const char Toyota_4AGE_CAS_friendly_name[] PROGMEM = "Toyota 4AGE";
const char Toyota_4AGZE_friendly_name[] PROGMEM = "Toyota 4AGZE";
const char Suzuki_DRZ400_friendly_name[] PROGMEM = "Suzuki DRZ400";
Expand Down Expand Up @@ -1195,8 +1197,25 @@
0,0,0,0
};

/* 4AGE CAS inside dizzy, 4 pulses 2 per crank revolution one cam pulse at 5 Deg */
/* 70/110 degrees low to high ratio and sparksensor secondary
two pulses per crank revolution plus one cam pulse*/
const unsigned char spark_dizzy_4cyl[] PROGMEM =
{ //Split into 5 degree blocks (12 per line)
0,0,0,0,0,0,0,0,0,0,0,0,
2,2,3,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,1,1,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,1,1,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,1,1,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,1,1,
};

/* 4AGE CAS inside dizzy, 4 pulses 2 per crank revolution one cam pulse at 5 Deg */
const unsigned char toyota_4AGE_CAS[] PROGMEM =
{
1,1,2,2,0,0,0,0,0,0,0,0, /*5 deg per */
Expand Down