Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case 3: //Pin mappings as per the androidcho's SimpleECU v1.0 PCB
- //High current outputs (exactly the same), ready for programmable outputs
- pinInjector1 = 6; //Output pin injector 1, PCB Pin - HC1
- pinInjector2 = 7; //Output pin injector 2, PCB Pin - HC2
- pinInjector3 = 4; //Output pin injector, PCB Pin - HC3
- pinInjector4 = 5; //Output pin injector, PCB Pin - HC4
- pinFan = 9; //Pin for the fan output, PCB Pin - HC5
- pinFuelPump = 8; //Fuel pump output, PCB Pin - HC6
- pinTachOut = 11; //Tacho output pin, PCB Pin - HC7
- //pinVVT = 10; //Enough high current outputs, we have place for dedicated VVT out, PCB Pin - HC8
- pinIdle1 = 2; //Single wire idle control, PCB Pin - HC9
- pinIdle2 = 3; //2 wire idle control, PCB Pin - HC10
- //Non-programmable low current outputs, used for coil outputs
- //PNP transistors, "Going High" in Tunerstudio
- pinCoil1 = 48; //Pin for coil 1, PCB Pin - IGN1
- pinCoil2 = 44; //Pin for coil 2, PCB Pin - IGN2
- pinCoil3 = 32; //Pin for coil 3, PCB Pin - IGN3
- pinCoil4 = 36; //Pin for coil 4, PCB Pin - IGN4
- //Inputs
- pinTrigger = 18; //The CAS(Crank) pin
- pinTrigger2 = 19; //The Cam pin
- pinTPS = A4; //TPS input pin
- pinMAP = A2; //MAP sensor pin
- pinIAT = A1; //IAT sensor pin
- pinCLT = A0; //CLT sensor pin
- pinO2 = A3; //O2 Sensor pin
- pinBat = A15; //Battery reference voltage pin
- pinStepperDir = 17; //Direction pin for DRV8825 driver
- pinStepperStep = 16; //Step pin for DRV8825 driver
- pinLaunch = A5; //Can be overwritten below, pulled up by 10k and protected, PCB Pin - D1
- //pinAnalogDigitalIn2 = A6; //Spare analog input, pulled up by 10k and protected, PCB Pin - D2
- pinDisplayReset = 48; //OLED reset pin
- break;
Advertisement
Add Comment
Please, Sign In to add comment