rosmo-robot / Rosmo_ESC

Dual brushless motor ESC in #M5Stack module format
Other
28 stars 3 forks source link

Rosmo power supply concept? #7

Closed runger1101001 closed 2 years ago

runger1101001 commented 2 years ago

The power supply concept for Rosmo needs more attention.

The motors chosen are for 12V. They will run with less, but since they have quite high resistance the current, and hence the torque will be low. m5stack power concept is very unclear to me. I can't find good documentation. The schematic I can find has part of the power circuitry labeled "Speaker" :-( .

The general idea with m5stack seems to be that the core provides power to the rest, it has a 5V buck/boost converter with battery charging and 3.3V rails. It has a HPWR rail on the M5 header but it doesn't seem to connect to the core. The buck/boost converter is powered by the battery and the 5V_USB rail, and I assume will manage switching between these.

Currently the Rosmo ESCs 5V_USB rail connects into the 5V rail of the M5 header via a protective diode, so powering the core should would providing the Buck/Boost module doesn't mind this configuration (having its output back-powered).

An alternative could be to connect the 5V_USB to the VBAT on the m5 header, i.e. pretending to be a battery. Not sure if the buck/boost module will like that one either.

In any case the input to the ESC board should be at least 6V. The current design is for 4x1.5V battery, so this is just enough, but only when they're more or less charged up. Once they become empty the voltage would drop below 6V which is not ideal.

Note that the m5 core's battery charging is for 4.2V lipos or Lions, not for NiMH batteries in 4S. So I currently don't see how the m5stack itself is powered. The little battery in the base of the core module? – but the 3D design doesn't account for that...

Some ideas:

runger1101001 commented 2 years ago

Hmmm... this schematic for Core2 is a bit better: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/schematic/Core/CORE2_V1.0_SCH.pdf

It shows clearly that HPWR isn't connected to the core. The other issues around VBAT 5V_BUS are the same.

samuk commented 2 years ago

Just to clarify my current thinking is to use 3x 3.2v lifepo4 cells: https://m.aliexpress.com/item/1005002959027031.html

They share the same physical dimensions as Aa batteries.

I think adding a 5v buck & 3.3v regulator to the board would be the best solution if you can find space for it?

runger1101001 commented 2 years ago

Ok, I will try to find space for it! I'm more optimistic about that than the CAN bus TBH. I can't really fit another port around the outside.

samuk commented 2 years ago

On board canbus would be nice, but would also add cost. Don't we get similar functionality from plugging in a M5comm module for those use cases that need it?

runger1101001 commented 2 years ago

Ok, I've spent about 10h on the buck converter and I'm changing my mind on this:

So the new plan to is to release the board as it is, adding only a 3.3V regulator so it is self-sufficient when plugged into USB. For the prototyping, we can use one of the many cheap and tiny buck regulator modules ("BECs") that are available on AliExpress or eBay. There will be space for it in the Rosmo body. Then I can design a new buck converter for the Rosmo board v2, prototyping it separately, and then integrating it into the v2 design. At that point we'll also have a clearer idea what we want - maybe with battery charging? Or maybe more basic, just for the ESC board and seperating it from the whole complexity of the m5 power?

samuk commented 2 years ago

Great, thanks for investigating! This sounds like a sensible way forward. I'm happy to spend a bit of time looking at existing open-source buck designs to see what we could make in the current chip situation.

Closing this, for now, we can create a new ticket when we want to look at this again.

runger1101001 commented 2 years ago

No, the regulator is still missing and the m5 header... I'll export it again today if I can, but certainly before I order it.