Skip to content

Commit

Permalink
add 36-2 with 1 cam (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggurov authored May 14, 2024
1 parent 1327ba3 commit 4861328
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ardustim/ardustim/ardustim.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -451,4 +452,4 @@ void get_prescaler_bits(uint32_t *potential_oc_value, uint8_t *prescaler, uint8_
*prescaler = PRESCALE_1;
*bitshift = 0;
}
}
}
2 changes: 1 addition & 1 deletion ardustim/ardustim/storage.ino
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,4 @@ void saveConfig()
lowByte = lowByte(config.compressionOffset);
EEPROM.update(EEPROM_COMPRESSION_OFFSET, highByte);
EEPROM.update(EEPROM_COMPRESSION_OFFSET+1, lowByte);
}
}
22 changes: 22 additions & 0 deletions ardustim/ardustim/wheel_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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 =
Expand Down Expand Up @@ -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

0 comments on commit 4861328

Please sign in to comment.