nitrousnrg wrote:As far as getting an accurate battery voltage, can't you just measure it during a "quiet" time (whenever there is minimal current - i.e. no injectors firing)?
I woke op in the middle of the night saying "es buena!" (its a good idea!)
Wait, I see a problem with this, the word "just". To sample like that would be fairly complex at best, and plain wrong when the correct approach is to eliminate the problem via good design. Doing fancy sampling, using overly big wires, filtering a lot, running excess corrections, etc, are all the same as banning fireworks because someone got burned. Patches! Better to fix the problem at the source. Mucho mejor!...
I suggest to wire grounds to pins labeled as GND. The 40 pin header has some of them, there are a couple more in the (kind of) header next to the bdm connector. The bdm connector has a ground pin too.
Its better not to use the 40pin header. Thats an analog plane and if you take gnd from it, high currents will be travelling through sensitive parts of the board. Not sure if you have the through hole capacitors populated, but those would be good ground sources too.
That is my point, I need to know WHICH grounds to connect to WHICH wires in my loom, because (HOPEFULLY) they aren't all the same... and you have the high current ones totally isolated from the cpu and sensor stuff. You had better, anyway, or its no better than a megasquirt...
If there aren't sufficient grounds available for what is needed (bdm, capacitor pins, etc are not acceptable in a final product) then they should be added. They should also be labeled clearly as being either dirty or clean. Instead of GND perhaps GDC and GDD or maybe GNC and GND? something unique.
Again, I encourage you to use kicad, you could highlight the GND net and see clearly where you have gnd pads :-)
I encourage you to treat me like a dumb user, despite the fact that I'm not. I've not been reading SeanK's loader source or MTX source or any other source I interact with, either. Grounding particulars are details that need documenting.
jharvey wrote:I agree that the gnd should leave the PCB from one common area of the PCB.
This sentence is broken. There are two completely separate grounds on the board, and if there are not, then spin 1 was a fundamental failure. Therefore "the" is not a valid specifier for "ground". Megasquirt is fcuked because they have a "the ground" which is very wrong for many reasons. NO oem ECUs ever ever have one ground.
I think MS is a good example of why multi gnd paths are bad. I seem to recall davebmw wrote an extensive gnd modification procedure to fix MS gnds.
As much as I know what you mean, I'm not sure you're clear on what he did to fix it, and what the main problem was. What he did was isolate some grounds from others. MS has multi wires from one pcb point to one ground point, however it should have two separate grounds with N wires each. It does not, and it fails for it.
nitrousnrg wrote:jharvey wrote:Having GND leave from a common place on the PCB prevents gnd loops and lowers the noise floor.
Thats true, try to keep the gnd connections in the board close to each other and keep the ground cables together to minimize ground loops.
Between the BDM and the zone of the TO220 reg is the best spot to put a ground connection(s).
OK, here's the thing, there will be a bunch of separate grounds connecting up. They will be grouped as follows:
Ground supply for heavy switching - dirty, injector drivers, fuel pump driver, ign drivers, gp drivers - conceptually seen as flowing into the box
Ground supply for cpu/sensors - clean, only handles cpu power draw and tps and map sensor, etc - conceptually seen as flowing into the box
Ground source for external sensors - clean, handles CAS ground, TPS ground, IAT ground, CHT ground, etc - conceptually seen as flowing out of the box
The second and third ones should connect to the same plane/location/circuit. The first one should be separate and isolated.
I need to know which pins are which, and I'd like to do it live in chat so I can fire questions at you as we go. If that's not possible, OK, but that's what I want.
I can find grounds, no problem, but I want to find the RIGHT grounds...
Fred.