From 4861328cb7490ac06d580af23c4083fbb6d1736a Mon Sep 17 00:00:00 2001 From: Gennady Gurov Date: Tue, 14 May 2024 09:01:05 -0400 Subject: [PATCH] add 36-2 with 1 cam (#75) --- ardustim/ardustim/ardustim.ino | 3 ++- ardustim/ardustim/storage.ino | 2 +- ardustim/ardustim/wheel_defs.h | 22 ++++++++++++++++++++++ 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/ardustim/ardustim/ardustim.ino b/ardustim/ardustim/ardustim.ino index cebb252..fcf1939 100644 --- a/ardustim/ardustim/ardustim.ino +++ b/ardustim/ardustim/ardustim.ino @@ -119,6 +119,7 @@ wheels Wheels[MAX_WHEELS] = { { Jeep_2000_friendly_name, jeep_2000, 1.5, 360, 720}, { BMW_N20_friendly_name, bmw_n20, 1.0, 240, 720}, { VIPER9602_friendly_name, viper9602wheel, 1.0, 240, 720}, + { thirty_six_minus_two_with_second_trigger_friendly_name, thirty_six_minus_two_with_second_trigger, 1.0, 144, 720 }, }; /* Initialization */ @@ -451,4 +452,4 @@ void get_prescaler_bits(uint32_t *potential_oc_value, uint8_t *prescaler, uint8_ *prescaler = PRESCALE_1; *bitshift = 0; } -} \ No newline at end of file +} diff --git a/ardustim/ardustim/storage.ino b/ardustim/ardustim/storage.ino index 4eaf7d4..5da4fcb 100644 --- a/ardustim/ardustim/storage.ino +++ b/ardustim/ardustim/storage.ino @@ -120,4 +120,4 @@ void saveConfig() lowByte = lowByte(config.compressionOffset); EEPROM.update(EEPROM_COMPRESSION_OFFSET, highByte); EEPROM.update(EEPROM_COMPRESSION_OFFSET+1, lowByte); -} \ No newline at end of file +} diff --git a/ardustim/ardustim/wheel_defs.h b/ardustim/ardustim/wheel_defs.h index e5aacf3..277fda4 100644 --- a/ardustim/ardustim/wheel_defs.h +++ b/ardustim/ardustim/wheel_defs.h @@ -134,6 +134,7 @@ JEEP2000, /* Jeep 4.0 6cyl aka jeep2000 */ BMW_N20, //BMW N20 58x and custom cam wheels VIPER_96_02, // Dodge Viper 1996-2002 wheel pattern + THIRTY_SIX_MINUS_TWO_WITH_ONE_CAM, // 36-2 with 1 tooth cam - 2jz-gte VVTI crank pulley + non-vvti cam MAX_WHEELS, }WheelType; @@ -199,6 +200,7 @@ const char Jeep_2000_friendly_name[] PROGMEM = "Jeep 2000"; const char BMW_N20_friendly_name[] PROGMEM = "BMW N20"; const char VIPER9602_friendly_name[] PROGMEM = "Dodge Viper V10 1996-2002"; + const char thirty_six_minus_two_with_second_trigger_friendly_name[] PROGMEM = "36-2 with 1 tooth cam"; /* Very simple 50% duty cycle */ const unsigned char dizzy_four_cylinder[] PROGMEM = @@ -1463,5 +1465,25 @@ 0,0,0,0,0,0,0,0,0,0, //56-60 }; + /* 36-2 with second trigger pulse across teeth 33-34 on first rotation */ + const unsigned char thirty_six_minus_two_with_second_trigger[] PROGMEM = + { /* 36-2 + single tooth cam */ + 1,0,1,0,1,0,1,0,1,0, /* Teeth 1-5 */ + 1,0,1,0,3,2,3,2,1,0, /* Teeth 6-10, cam in here somewhere - length/position not accurate to actual engine*/ + 1,0,1,0,1,0,1,0,1,0, /* Teeth 11-15 */ + 1,0,1,0,1,0,1,0,1,0, /* Teeth 16-20 */ + 1,0,1,0,1,0,1,0,1,0, /* Teeth 21-25 */ + 1,0,1,0,1,0,1,0,1,0, /* Teeth 26-30 */ + 1,0,1,0,1,0,1,0,0,0, /* Teeth 31-34, 35th tooth missing */ + 0,0, /* 36th tooth MISSING */ + 1,0,1,0,1,0,1,0,1,0, /* Revolution 2 Teeth 1-5 */ + 1,0,1,0,1,0,1,0,1,0, /* Teeth 6-10 */ + 1,0,1,0,1,0,1,0,1,0, /* Teeth 11-15 */ + 1,0,1,0,1,0,1,0,1,0, /* Teeth 16-20 */ + 1,0,1,0,1,0,1,0,1,0, /* Teeth 21-25 */ + 1,0,1,0,1,0,1,0,1,0, /* Teeth 26-30 */ + 1,0,1,0,1,0,1,0,0,0, /* Teeth 31-34, 35th tooth missing */ + 0,0 /* 36th MISSING tooth */ + }; #endif