The brake output it actively pulled low when the brake light is not active. The 220R series resistor will always "win" against the 47k pull-up and the at least 2k7 pull-down.
Plus, to be honest I don't know if anyone even uses the output.
The brake output it actively pulled low when the brake light is not active. The 220R series resistor will always "win" against the 47k pull-up and the at least 2k7 pull-down.
STM32 has around 45-65 ohms when driving a gpio high depending on current. I'll do a simulation of what it's looking like at the mosfet with this stuff.
See here: https://openinverter.org/wiki/Mini_Mainboardjrbe wrote: ↑Tue Oct 03, 2023 6:16 pm What is OUT_OUVTG? Pin 19, JP2 on mini main board. This is labeled CS_ADC on the i3 adapter board. Google site search only finds the wiki pages, no info on either there.
Should the 3 SOT-353 buffers from the i3 board be on this leaf board as well?
If so, C85397?
Yes perfect as it is. Reverse powering only happens with a regular diode with cathode tied to 12V.added a SMB TVS diode (D1 & D2) across the source / drain in case the diode in the mosfet can't take the flyback hit from a contactor releasing. Its a unidirectional 18v. johu mentioned some diodes can reverse power the board on some installs, should this go to a bidirectional 18v TVS? Currently LCSC C80394
Not sure why I picked 3k3 there, probably had one handy. "Standard" is 1k2. Still need to map out the sensor.T_SINK got a 3.3k pull down, mentioned in johu's notes getting the previous to me version of this running. Not sure if this needs to be optimized.
Most USB uart adapters have a 5V outlet but no 3V3J4 is the ESP32 programming header. This connects to 5V instead of 3.3v as I'd expect. I copied from the updated (V6 & V8) Tesla boards
That's just general purpose outputs of all OI boards but I think they are not brought out to the round connector anyway. If exported the should go through a similar circuitry as the other outputs, maybe with smaller FETs 2N7002 or so.OUT_OVTMP on J6 seems to be a Nissan thing. Not sure if anyone uses this. If anyone knows a use / where it should connect please share.
OUT_TEMP on J6 seems to be a Nissan thing. Not sure if anyone uses this. If anyone knows a use / where it should connect please share.
With the older mainboard R2 was GND. Now it needs to be connected to R2 of the main board (pin 20 of J2 presumably)R2 isn't connected, not sure it's needed.
It seems to be some automotive standard that current sensors have redundant outputs. I was never sure how to make use of these so one pair remains disconnectedIL1 & IL2 are connected to 2 terminals each. This seems wrong. Might be one of each needs ground or?
They are indeed plainly mechanical and can be connected to anythingNot sure the Nissan connector's mechanical pins matter if they connect to ground or not. Connecting to ground helped the ground plane flow so its setup that way for now. I'm assuming they don't really go anywhere and just hold the plastic of the connector
I'm happy to contribute. Thanks for helping make all of this possible and thanks for your patience with my million questions.
I removed the 4K7 and wired it straight to 12v but something seems off here.I looked through the schematic, only thing that popped up was the pull-up of mprot. That should be hard wired to 12V without the 4k7 resistor because there is one on board already.
I added a reminder note in the schematic to verify it. Its the annoying one that's going off the page in the pdf. Was this post that mentioned it, viewtopic.php?p=23175&hilit=3k3#p23175Not sure why I picked 3k3 there, probably had one handy. "Standard" is 1k2. Still need to map out the sensor.
These are currently only labeled on the 40 position Nissan connector that I'm seeing.That's just general purpose outputs of all OI boards but I think they are not brought out to the round connector anyway. If exported the should go through a similar circuitry as the other outputs, maybe with smaller FETs 2N7002 or so.
I think I see this now. Pin 20 of the Nissan 40 pos. connector is labeled as R2 but goes to GND in Kelju's previous work. I removed that 0R to GND and connected it to JP1, pos. 12 / R2.With the older mainboard R2 was GND. Now it needs to be connected to R2 of the main board (pin 20 of J2 presumably)
I wonder if this is a connector resistance / connector mechanical failure redundancy? I left one of each with a 0R footprint as DNP, removed the other footprint on each and ran a trace across the missing spots.It seems to be some automotive standard that current sensors have redundant outputs. I was never sure how to make use of these so one pair remains disconnected
Ok, I pulled the solder jumper and the connection to 12v. Just leaving a test point to the nissan connector.
Having a hard time following. Do you mean the schematic Kelju started is incorrect? Can you include a marked up picture or Nissan connector # to OI pin so I can follow better?I also found the OI pin mapping doesn't quite line up with the OEM pin mapping, for some reason emcystop is connected to resolver S1 (this should connect to mini mainboard S4S1) just like Pin 15. You could also swap R1 and R2 to line up with the OEM board.
I'll leave them in for now, It will help test these theories as there's time or a user who wants to. Can just leave them unpopulated if decided later.I think the traditional output signals won't be used by many. If you prefer you could even omit them for now. I omitted them on the Gen2 board as well.
Thanks. I corrected PWM_USER <-> OUT_TEMP and have it driven by a 2N7002.Anyway, OUT_TEMP has been renamed to PWM_USER. Likewise OUT_BRAKE doesn't make much sense to be exported without a FET. I guess omit it completely on the outside connector.
I would love to see a table of pin mapping / info for all of the boards available. Alternative pin labeling should be part of this too I think. This would have helped making this adapter board a bunch. I think part of this table should be voltage level / address. Is there a spot in the wiki that exists already that you think this would fit best?I wonder should we just add a table with assigned voltage levels/resistor values on the mini mainboard page?
It is somewhat incorrect as he connected emcystop to the resolver. Check the pinout.pdf in the second post to see what I mean.jrbe wrote: ↑Thu Oct 05, 2023 9:04 pm Having a hard time following. Do you mean the schematic Kelju started is incorrect? Can you include a marked up picture or Nissan connector # to OI pin so I can follow better?
*edit and does this mean you can swap some pin functions around on the mini mainboard?*
You'd have to ask someone who actually uses it Normally they use switched 12V so a relay is needed. Like said I consider all the outputs as priority Z as the wire harness doesn't export them anyway.
I guess this comes closest, even though it doesn't 100% apply to the mini mainboard. Could be repeated there. https://openinverter.org/wiki/Main_Board_Version_3jrbe wrote: ↑Thu Oct 05, 2023 9:04 pm I would love to see a table of pin mapping / info for all of the boards available. Alternative pin labeling should be part of this too I think. This would have helped making this adapter board a bunch. I think part of this table should be voltage level / address. Is there a spot in the wiki that exists already that you think this would fit best?
I have updated the table with from-to values. Noticed with +-5% tolerance they overlap, 3% would work. So 1% resistors then.jrbe wrote: ↑Thu Oct 05, 2023 9:04 pm *edit I saw your mini mainboard info about addressing. Some of the voltages are close together. I think we need to define a target for each (you did already) and a voltage range for each. Likely need to keep these at 1% or better resistors but should define that as well.
I'll change 5v to 5.3v in the voltage divider area.
It might make sense to have a simple and deep dive version of info. Simple is I don't want to know why, just want it to work. Deep dive is I want to understand and maybe develop things further / help out. There should be a place for openinverter footprints, logos, common components, circuit references, etc. as well.*
You mean this? (my quick photoshop) I missed that wires / pins were repurposed..johu wrote: ↑Fri Oct 06, 2023 5:44 pm It is somewhat incorrect as he connected emcystop to the resolver. Check the pinout.pdf in the second post to see what I mean.
Yes, yes and yesjrbe wrote: ↑Fri Oct 06, 2023 6:52 pm
- So from that it looks like R1 & R2 need to swap places (as you mentioned.) I'm broken, I needed the visual.
- And E-stop needs to be removed. But I'm unsure if S1 / SIN/S1&COS/S4 stays where it is (there's no ground there.) Do S1 & S4 wires connect together for S1 / SIN/S1&COS/S4?
- On the mini mainboard connector for signal e-stop, that needs 12v, correct? If so, I'll likely add a shorted solder jumper and a via on each side in case someone wants to use it.
Thanks for these.
I'd personally be fine with either smd or thru hole. There are some resellers I'd trust to actually have the thru hole version,I wonder if it would be more DIY friendly to use the through hole part? https://www.digikey.de/de/products/deta ... -2/2273492
EDIT: that said it has 0 availability. But so has the SMT part
I compared the actual connector at hand to the diagram Kelju had created that is attached to the second post. I don't know about the outside wire colours as I don't have the harness.
Yes, same family
That would be genius. Otherwise not sure what to default to. THT is easier to solder for the "layman" while SMT could be harvested from the OEM board with a heat gun. Given the poor availability this might make sense...
Ok, I'm likely going to backtrack the wires because I'm broken. The orange dots are where terminals were added for open inverter features, SMD / Thru hole connectors..
Agreed. If one isn't available the other might be. I'll see if I can make a merged footprint to fit either smd or thru hole...not sure what to default to. THT is easier to solder for the "layman" while SMT could be harvested from the OEM board with a heat gun. Given the poor availability this might make sense...