fredag den 18. marts 2022 kl. 05.08.35 UTC+1 skrev DJ Delorie:
if you skip the short circuit sense resistor, does it have to be differential?
three opamps with ~60x gain and a pull up to center the output at 2.5V with zero current diode or the output and use an opamp as comperator for the short circuit detect
I thought of just outputting a square wave from the MCU into a charge pump inverter, but 4.6v minus two diode drops is only a few volts, and not a lot of milliamps (you're limited by the pin's max output). It might be enough, but if a solid 1A buck/boost negative rail is cheap and easy enough...
That sounds like multiple op amps per leg... either both signals need an opamp to offset them, plus a third to difference them, or if you try to reduce the opamps, you can't offset them enough *and* amplify them at the same time (which is what I'm seeing now).
The IKCM15L60GAXKMA1 power module has a design without the separate short sense (just three resistors) but it uses diodes to "or" the signals into the sense pin. The side effect of that is you need larger sense resistors (36mR instead of 5mR, and 3W instead of 0.5W) which creates a larger voltage swing, which means the negative swings are much larger. This kind of design assumes the motor will always be "running" which is not true in my case (a hard stop caused the fault in the last design)
You kinda want differential anyway to avoid ground drops, with that much current.
Yup, but that doesn't stop the sensed value from going negative...
Yeah, the choice of a gain-of-one current sense amp isn't great. There's gain-of-20 and gain-of-60 available, ST.com shows TSC2010, TSC2011, and for gain-of-100 TSC2012. They don't claim accuracy for big sense voltages, though.
Things I've used for similar setup depending on accuracy need. BLDC driver does not sound like metrology application ;-)
- Large negative rail
- LM7705 to generate -0.23V rail
- Resistor divider (one or two sided) from sense resistor to 3.3V (say, 40 ohms and 3.3V cause the -40mV to show up at 0mV, increase 40ohms to 'lift' the signal).
- Instrumentation amplifier
- Hall current sensor
- Opamp with negative input CM (TL27L4 and successors, TS921...)
One other thought: set the processor adc input to have a slightly positive offset and then counter that offset in the "ad conversion complete" interupt handler.
Interesting idea, but I'd lose some precision in the adc. I saw some solutions that biased the sense the *other* way too - more adc range on the useful side.
When you're trying to hold a 0.09 degree step, it might as well be.
One poster had a clever idea for generating this with a charge pump off the main switcher.
That's a new one on me!
I'm not sure I want all the motor power potentially travelling through the MCU's vcc bus.
One poster hinted at these, and I've been looking at the TMCS1101 which would let me move the current sense to the three BLDC wires instead of the negative rail, so I could sense the positively-driven phases as well. It causes some layout issues, but I think it will be the most useful.
A typo from me - I meant 40 (or 400) ohms to shunt non-GND-end and 3k3 (or 33k) to 3.3V so you're running roughly constant 1mA through. This causes a small gain/offset error, but that's easy to compensate.
I understood. I don't want the high voltage side connected to the 5v (not 3v3) bus at all, even through a 33k resistor, for both safety and noise reasons.
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.