I can help with a new revision in Kicad if you want once the bugs are found.
johu wrote: ↑Mon Feb 05, 2024 5:08 pm
Sometimes the STM32 does not start up, probably hangs in boot loader. More investigation needed
Odd. That should run with just +12v and ground, no?
The two fault signals were always low. Reason: R12 was 4R7 instead of 4k7. Removed it.
Definitely my mistake. JLC lists that resistor as a 4.7ohm resistor.
Voltage on DESAT is then 3V. I don't think R12 is needed at all
UDC signal is always low. Tried adding a pull-up to 3v3 which just offsets it to 1.1V (4k7) or 2.5V (470R). Not PWM. Is this the correct pin for udc?
UDC is just a straight shot from J1 / 32 pos. Nissan connector to the mainboard. Kelju seemed to get UDC working,
viewtopic.php?p=18630&hilit=udc#p18630
I added small vias next to all the unused terminals just in case some bodge wires are needed and hopefully left the traces long enough to cut if needed.
HS temp signal is always low. It needs a pull-up. I tried with 4k7 to 3v3 which results in 1.7V at room temperature. As temperature goes up, voltage drops. The OI "standard" is pulling up with 1k2 to 5V but anything is fine as it will be standardized on the adapter board
Thats strange, you mentioned swapping Kelju's board to a 3k3 pull down here,
viewtopic.php?p=23175&hilit=3k3#p23175
Do you think there is a missing power or ground to the drive section of the inverter? The above could make a lot of sense if there is a section that is not powered up. Might explain the low / missing UDC, the always low fault signals (- my 4.7ohm screwup), and the Temp (HS?) needing a pull up.
Also this is the list in the Wiki that needs to be verified. Adding it here so its all in one place (hopefully..)
-The board address needs to be checked with the brake circuit connected and disconnected (cut SJ4 to disconnect, solder to connect it.) Need to verify this does not skew the address voltage and change the address. There are vias to measure the voltage in the board address block to help.
-Verify different 32 & 40 position connector footprints - make sure the connector options and their footprints match up.
-The second part of the brake circuit looks like it should block 2.5v and below from turning on the brake lights. Above about 2.7v the brake lights should go on. This depends on if the STM32 can push enough power to overcome a few components. Trying to give a wider range of available addresses and still have the brake light output trigger in regen. The high side switch turns on at around 1.2v on the enable line, that's what the zener blocking diode is for.
-R3 and R9 are setup as 0R (jumper) resistors. Nissan has 2 lines for each current sensor signal. These should not be populated for now.
-R2 & R4 are unclear if they should be grounds and are 0R resistor / jumpers. Need to figure out if these are in fact required grounds.
-J1 connector (Nissan 32 pos.) on position 20 if using thru hole board to wire connectors it only has a .3mm trace to ground which likely won't last or work well. If this ground is required there is a large ground via right next to position 20 to solder to for a good ground connection. Will need to correct this in the next version once understood.
-R13 is a pull down resistor for the T_SINK input. This is at 3K3 in V0.0.1 but unsure if this is ideal. There are 2 plated thru holes on each side of R13 to use to make testing the ideal value easier.
-
L2 in rev V0.0.2 had an 0805 inductor rated for only 15ma. Changed to a Sunlord 4030 / AKA 4.0mm X 4.0mm inductor that can pass 700ma +. I don't think any V0.0.2 boards were made yet but not sure.
-What connector options to use for the Open Inverter connections to get out of the inverter.
-The capacitors on each contactor mosfet gate should be checked that they do not delay turn on or off too much and that they help eliminate chatter. If they are too large they could run the mosfets in the linear region and could cause damage.
*EDIT* Is it worth pulling the jumper resistors to what were thought to be required grounds? These are R2 & R4. R3 & R9 are the doubled up current sensor signal wires, those could likely be pulled too.