- Mon Feb 13, 2017 6:22 pm
#16685
PSIG wrote:There is no 'official' solution for outputs yet. My best answer for the combination of HC and LC outputs, is that:I get issues with the fuel pump - no matter what pin i assign it to in the TS setup, it will not change - however changing the thermofan pin in TS will change the fuel pump pin assignment automatically. ill show you a video of this in action. what i did was this:-
- Idle, VVT, and Boost should be on HC outputs for direct-drive of the devices by PWM. -- I agree with you, but configuring these just doesn't work......
- Other outputs (Fan, Fuel Pump and TachOut) can be either HC or LC, to external relay or direct (TachOut).Once again agree 100% - just doesn't work out -- ill upload a new video showing what i mean and how the code, pin assignments and TS settings make no sense ...... at least some of them don't.... I'm hoping i don't have something wrong with the hardware....
- LC outputs from Mega D43 to D51 require a clamped driver of some kind, such as transistor with diode, ULN2803, or similar to drive a relay.definately going to try this - ordered the chip already.
- All outputs except Idle are assignable in TS.
1) Assign TS pin5 for the thermo fan (IDC37) - and the fuel pump automatically changes to IDC38 - no matter what pin i assign to fuel pump in TS this IDC38 does not change unless i change the Pin assignment in TS for the thermofan (all this occurs with the utils.ino code with PinFan - 5 and Pinftuelpump - 4
2) Physical component connections as follows:- Q8 = IDC35, Q7 = IDC37, Q6 = IDC38, Q5 = IDC36
3) Schematic says that Q5 connected through Digital4 (arduino mega pin) should relate to HC_01_OUT - which is 100% correct BUT assign pin D4 to the Pinfuelpump -4 in the utils.ino file and in TS - and you don't get the same output - the fuel pump doesn't work on this pin for some reason...... it works on the IDC38 instead of 35 .....
4) Schematic says that Q7 connected through digital5 (arduino mega pin) should relate to IDLE_OUT - which is 100% correct BUT assign the D6 (according to the schematic) in the utils.ino code and/or in TS - and you can forget about the pin being your idle out pin -- Its actually your fuel pump pin ......
... and the tests i conducted stopped there, as I would like to understand how/why the assignments or code gets the physical outputs to behave in this way -
As for what to do about the LC output drivers, either discreet transistors/FETs of some suitable kind, or the ULN2803 type can be installed in the 'proto' area. If using the ULN2803 as listed in the v.04 BOM, it can be installed with ULN leg 9 in PCB GND on the board and up across the D51 to D43 outputs for the ULN inputs. Cut ULN leg 8 if A15 might be used on Speeduino. I would just cut it. Lift ULN leg 10 and solder a wire from the leg to raw (Vbat) 12V+ on J3 or other raw 12V+ point such as U2, C16, C15, or JP1. Diagonally across the board would probably be best to minimize induction of noise. DO NOT allow ULN pin 10 to touch any part of the board except the wire connection to +12V! Either spread the ULN legs to reach the points to connect to the IDC 40-pin outputs on IDC pins 14 through 18, or bridge the connections on the bottom of the board. Select the LC outputs active on D51 to D43 as-required, and verify no conflicts with other outputs designated. I would test the outputs for correct function and on the correct pin with 5V and a 'scope before attaching 12V or installing. Good luck!
Thanks a lot for the advise, i will try the ULN2803 as suggested and see how i progress, but the basics simply don't work, it seems that the effort and successfully at that, was put into the injection, and ignition, but there is either no documented instruction or layout of how to get the basic outputs working all at the same time.....
David