K
Klaus Kragelund
Guest
On Thursday, August 27, 2020 at 10:01:48 PM UTC+2, Phil Hobbs wrote:
When doing approvals they can inject a fault in both standard circuits and protection circuits. So normally you need duplicated protection circuits to get a product approved
Cheers
Klaus
On 2020-08-27 11:18, Tom Gardner wrote:
On 27/08/20 16:11, Mike Perkins wrote:
On 27/08/2020 06:57:58, Ricketty C wrote:
I have been working on some circuitry to pull the plug on a motor on
reaching an overload condition before it can tear up the gears or
break the shaft (which the others on the project have done several
times). This shut down was measuring the motor current and pulling
the plug, then allowing the MCU to restart it when needed.
Later it was realized a new motor should not be run over 12 volts, so
we need something to limit the voltage. A regulator often requires
significant head room to work, so I used the same pass transistor to
add a voltage output limit.
Now it looks like the entire circuit can be done in an FPGA along
with a bunch of other stuff, and not cost any more. The design time
will be a lot less as well although the analog circuit is already
done in simulation.
Four transistors, two comparators and a pocket full of passives
replaced by a few FF and gates inside a chip where they will never be
seen, just chug along.
My policy is simple, anything where real time is measured in ns is
best done in a FPGA. Anything in ms is best done in a MCU.
Most timings in the uS region can be done in a MCU and given this is a
motor with a slow build up to failure this sounds eminently doable in
a MCU where development time is much faster. Most MCUs have good build
in ADCs.
I guess this decision was made by someone who only has experience on
FPGAs?
I suspect the last point is correct. However...
With an MCU, it would be necessary to ensure that the
motor protection was running correctly at all times.
That\'s not only in operation but also when a processor
hits a breakpoint (of any kind) during debugging.
An LM393 and a MOSFET are very comforting sometimes. I always have an
analogue backup for mission-critical things like that.
A single circuit is not enough for safety
When doing approvals they can inject a fault in both standard circuits and protection circuits. So normally you need duplicated protection circuits to get a product approved
Cheers
Klaus