- Tue Mar 30, 2021 2:10 pm
#49409
Hi,
I developed a board with Teensy 4.1 and compile the firmware and I have all the analog sensors reading in Tunerstudio and developed a wheel decoder too for test and the Tunerstudio read my RPM, but the problem is that the output LED´s not flashing according to RPM increase or decrease, is all the time are off. When I open the Hardware test and switch 50% for all injectors and coils the Leds turn on and turn off, with this I conclude that I don´t have problems with hardware, maybe some configuration or something in firmware.
How I using the Teensy 4.1, in file init.ino, I added these lines in ITALIC:
case 3:
//Pin mappings as per the v0.4 shield
pinInjector1 = 8; //Output pin injector 1 is on
pinInjector2 = 9; //Output pin injector 2 is on
pinInjector3 = 10; //Output pin injector 3 is on
pinInjector4 = 11; //Output pin injector 4 is on
pinInjector5 = 12; //Output pin injector 5 is on
pinInjector6 = 50; //CAUTION: Uses the same as Coil 4 below.
pinCoil1 = 40; //Pin for coil 1
pinCoil2 = 38; //Pin for coil 2
pinCoil3 = 52; //Pin for coil 3
pinCoil4 = 50; //Pin for coil 4
pinCoil5 = 34; //Pin for coil 5 PLACEHOLDER value for now
pinTrigger = 19; //The CAS pin
pinTrigger2 = 18; //The Cam Sensor pin
pinTPS = A2;//TPS input pin
pinMAP = A3; //MAP sensor pin
pinIAT = A0; //IAT sensor pin
pinCLT = A1; //CLS sensor pin
pinO2 = A8; //O2 Sensor pin
pinBat = A4; //Battery reference voltage pin
pinDisplayReset = 48; // OLED reset pin
pinTachOut = 49; //Tacho output pin (Goes to ULN2803)
pinIdle1 = 5; //Single wire idle control
pinIdle2 = 6; //2 wire idle control
pinBoost = 7; //Boost control
pinVVT_1 = 4; //Default VVT output
pinVVT_2 = 48; //Default VVT2 output
pinFuelPump = 45; //Fuel pump output (Goes to ULN2803)
pinStepperDir = 16; //Direction pin for DRV8825 driver
pinStepperStep = 17; //Step pin for DRV8825 driver
pinStepperEnable = 24; //Enable pin for DRV8825
pinFan = 47; //Pin for the fan output (Goes to ULN2803)
pinLaunch = 51; //Can be overwritten below
pinFlex = 2; // Flex sensor (Must be external interrupt enabled)
pinResetControl = 43; //Reset control output
pinBaro = A5;
pinVSS = 20;
pinWMIEmpty = 46;
pinWMIIndicator = 44;
pinWMIEnabled = 42;
#if defined(CORE_TEENSY35)
pinInjector6 = 51;
pinTrigger = 23;
pinTrigger2 = 36;
pinStepperDir = 34;
pinStepperStep = 35;
pinCoil1 = 31;
pinCoil2 = 32;
pinTachOut = 28;
pinFan = 27;
pinCoil4 = 29;
pinCoil3 = 30;
pinO2 = A22;
#endif
#if defined(CORE_TEENSY41)
pinTPS = A2; //TPS input pin
pinIAT = A5; //IAT sensor pin
pinCLT = A4; //CLS sensor pin
pinO2 = A8; //O2 Sensor pin
pinBat = A3; //Battery reference voltage pin. Needs Alpha4+
pinMAP = A6; //MAP sensor pin
pinInjector1 = 32; //Output pin injector 1 is on
pinInjector2 = 30; //Output pin injector 2 is on
pinInjector3 = 29; //Output pin injector 3 is on
pinInjector4 = 28; //Output pin injector 4 is on
pinCoil1 = 36; //Pin for coil 1
pinCoil2 = 35; //Pin for coil 2
pinCoil3 = 34; //Pin for coil 3
pinCoil4 = 33; //Pin for coil 4
pinTrigger = 1; //The CAS pin
pinTrigger2 = 3; //The Cam Sensor pin
pinTachOut = 25; //Tacho output pin (Goes to ULN2803)
pinIdle1 = 24; //Single wire idle control
pinBoost = 9; //Boost control
pinVVT_1 = 10; //Default VVT output
pinFuelPump = 27; //Fuel pump output (Goes to ULN2803)
pinStepperDir = 5; //Direction pin for DRV8825 driver
pinStepperStep = 6; //Step pin for DRV8825 driver
pinStepperEnable = 12; //Enable pin for DRV8825
pinFan = 26; //Pin for the fan output (Goes to ULN2803)
pinLaunch = 4; //Can be overwritten below
pinFlex = 0; // Flex sensor (Must be external interrupt enabled)
pinVSS = 2;[/i][/i][/i]
Thanks for helping me to fix this.
Best Regards
I developed a board with Teensy 4.1 and compile the firmware and I have all the analog sensors reading in Tunerstudio and developed a wheel decoder too for test and the Tunerstudio read my RPM, but the problem is that the output LED´s not flashing according to RPM increase or decrease, is all the time are off. When I open the Hardware test and switch 50% for all injectors and coils the Leds turn on and turn off, with this I conclude that I don´t have problems with hardware, maybe some configuration or something in firmware.
How I using the Teensy 4.1, in file init.ino, I added these lines in ITALIC:
case 3:
//Pin mappings as per the v0.4 shield
pinInjector1 = 8; //Output pin injector 1 is on
pinInjector2 = 9; //Output pin injector 2 is on
pinInjector3 = 10; //Output pin injector 3 is on
pinInjector4 = 11; //Output pin injector 4 is on
pinInjector5 = 12; //Output pin injector 5 is on
pinInjector6 = 50; //CAUTION: Uses the same as Coil 4 below.
pinCoil1 = 40; //Pin for coil 1
pinCoil2 = 38; //Pin for coil 2
pinCoil3 = 52; //Pin for coil 3
pinCoil4 = 50; //Pin for coil 4
pinCoil5 = 34; //Pin for coil 5 PLACEHOLDER value for now
pinTrigger = 19; //The CAS pin
pinTrigger2 = 18; //The Cam Sensor pin
pinTPS = A2;//TPS input pin
pinMAP = A3; //MAP sensor pin
pinIAT = A0; //IAT sensor pin
pinCLT = A1; //CLS sensor pin
pinO2 = A8; //O2 Sensor pin
pinBat = A4; //Battery reference voltage pin
pinDisplayReset = 48; // OLED reset pin
pinTachOut = 49; //Tacho output pin (Goes to ULN2803)
pinIdle1 = 5; //Single wire idle control
pinIdle2 = 6; //2 wire idle control
pinBoost = 7; //Boost control
pinVVT_1 = 4; //Default VVT output
pinVVT_2 = 48; //Default VVT2 output
pinFuelPump = 45; //Fuel pump output (Goes to ULN2803)
pinStepperDir = 16; //Direction pin for DRV8825 driver
pinStepperStep = 17; //Step pin for DRV8825 driver
pinStepperEnable = 24; //Enable pin for DRV8825
pinFan = 47; //Pin for the fan output (Goes to ULN2803)
pinLaunch = 51; //Can be overwritten below
pinFlex = 2; // Flex sensor (Must be external interrupt enabled)
pinResetControl = 43; //Reset control output
pinBaro = A5;
pinVSS = 20;
pinWMIEmpty = 46;
pinWMIIndicator = 44;
pinWMIEnabled = 42;
#if defined(CORE_TEENSY35)
pinInjector6 = 51;
pinTrigger = 23;
pinTrigger2 = 36;
pinStepperDir = 34;
pinStepperStep = 35;
pinCoil1 = 31;
pinCoil2 = 32;
pinTachOut = 28;
pinFan = 27;
pinCoil4 = 29;
pinCoil3 = 30;
pinO2 = A22;
#endif
#if defined(CORE_TEENSY41)
pinTPS = A2; //TPS input pin
pinIAT = A5; //IAT sensor pin
pinCLT = A4; //CLS sensor pin
pinO2 = A8; //O2 Sensor pin
pinBat = A3; //Battery reference voltage pin. Needs Alpha4+
pinMAP = A6; //MAP sensor pin
pinInjector1 = 32; //Output pin injector 1 is on
pinInjector2 = 30; //Output pin injector 2 is on
pinInjector3 = 29; //Output pin injector 3 is on
pinInjector4 = 28; //Output pin injector 4 is on
pinCoil1 = 36; //Pin for coil 1
pinCoil2 = 35; //Pin for coil 2
pinCoil3 = 34; //Pin for coil 3
pinCoil4 = 33; //Pin for coil 4
pinTrigger = 1; //The CAS pin
pinTrigger2 = 3; //The Cam Sensor pin
pinTachOut = 25; //Tacho output pin (Goes to ULN2803)
pinIdle1 = 24; //Single wire idle control
pinBoost = 9; //Boost control
pinVVT_1 = 10; //Default VVT output
pinFuelPump = 27; //Fuel pump output (Goes to ULN2803)
pinStepperDir = 5; //Direction pin for DRV8825 driver
pinStepperStep = 6; //Step pin for DRV8825 driver
pinStepperEnable = 12; //Enable pin for DRV8825
pinFan = 26; //Pin for the fan output (Goes to ULN2803)
pinLaunch = 4; //Can be overwritten below
pinFlex = 0; // Flex sensor (Must be external interrupt enabled)
pinVSS = 2;[/i][/i][/i]
Thanks for helping me to fix this.
Best Regards