sinara-hw / Stabilizer

2-channel microcontroller servo with EEM and Ethernet based on STM32 CPU
Other
22 stars 5 forks source link

PoE vs. EEM power conflict #72

Closed sbourdeauducq closed 3 years ago

sbourdeauducq commented 4 years ago

Currently the behavior of Stabilizer when installed in a Kasli crate is rather nasty:

I propose:

gkasprow commented 4 years ago

This can be done easily with ideal diode (2 transistors + 2 resistors) opamp and a few lines of code.

gkasprow commented 4 years ago

@sbourdeauducq the Stabilizer can also be powered by a barrel connector or Molex connector.

sbourdeauducq commented 4 years ago

Okay, we probably want a diode there so it only acts as a current sink, e.g. when PoE is connected at the same time.

gkasprow commented 4 years ago

OK

gkasprow commented 4 years ago

I prefer ideal diodes over standard diodes :)

sbourdeauducq commented 4 years ago

Sure :)

gkasprow commented 3 years ago

I added an ideal diode circuit. It also enables powering the EEM from PoE on request. obraz I'm not sure if latched overcurrent protection in the case of firmware malfunction is really needed. It would complicate the design and cause additional confusion to the user. The PoE will switch off after exceeding the allowable power, nothing should break here. I can also add a simple current monitoring circuit that will warn the CPU that we are exceeding the safe current operation - let's say 90% of the PoE module max current. The Stabilizer consumes 160mA of idle current. With Pounder it consumes 552mA. Let's warn the CPU when the EEM current exceeds 2A. One solution is to use the current sense amplifier like in the Booster. It adds 3$ to the BOM. obraz

Another solution is to use 4BJTs and MOSFET RDSon - it's very low cost but not precise. It may also cause issues bypassing disabled FET. obraz

gkasprow commented 3 years ago

@sbourdeauducq are you happy with such a solution?

sbourdeauducq commented 3 years ago

I'm not sure if latched overcurrent protection in the case of firmware malfunction is really needed. It would complicate the design and cause additional confusion to the user. The PoE will switch off after exceeding the allowable power, nothing should break here.

Okay, fair enough. Let's just go with the ideal diode + Force_EEM_Source circuit then, without additional current limit or monitoring.

gkasprow commented 3 years ago

OK, done