USB-C UPS designed by the community for Hubitat

@JohnRob and I have started a new project to design and build a USB-C UPS specifically for Hubitat.

This project will be fully open source - it’s heavily based on the design by Beyond Logic.

This is the place for discussion on this project.

First draft of the schematic;

33 Likes

Design goals:

  • sit under Hubitat hub
  • hold the hub in place without it getting hot
  • compatible with USB-C chargers - DONE
  • add a Status OK LED - DONE
  • circuit to sense the Hub is powered down (just the red led) and remove power from the hub until mains power is back. This would allow the hub to be self starting.
  • Zigbee Module
    • to enable onboard power loss monitoring and graceful shutdown
    • enable battery state reporting

Feedback on these goals is very welcome, we fully intend to try and keep costs down as much as possible, so expensive suggestions may not get added to the list.

Ps this is the Existing shutdown method - hopefully we can remove the guess work.

18 Likes

Just so you know...

...very excited to see what great minds will create.

2 Likes

Thanks mate, I’m grateful that John is involved as my knowledge of EE is at hobbyists levels.

1 Like

Can we have a spot for this on the top of the hub ?

3 Likes

@njanda sure, let’s get the eCad design locked down, then I’ll take a swing at case designs.

Just keep in mind that the light pipes are 3D printed from transparent PETG, so they do have more limitations than injection molded plastic.

2 Likes

They’re Friday night ideas and you know, I’m sure some of the best ideas were Friday night ideas.
Unfortunately most get thrown out with the empties :beer: :beer: :beers: :rofl:

2 Likes

Everything sounds like a good idea after 4 of these! :rofl:

4 Likes

I might keep that Harmony photo as nostalgia, for when they are no more, and I'm buried beneath a pile of remotes in my Living room

2 Likes

Harmony, dude, harmony remotes aren’t in the same league as my URC MX-980’s + MRF-350’s RF Base Stations .,.,

… And because I’m cheap, I bought them 2nd hand for a 1/10th of their retail price.

6 Likes

very cool idea.

I've seen some projects where power failure triggers a safe shutdown routine on the hub.

would the power failure monitor have enough juice to run a tiny relay output to drive external contacts? That way you could hook up an external Zigbee/Zwave contact, without having to build it into the device.

2 Likes

A solid state relay could certainly do that, John and I have just started down the rabbit hole, so we’ll have to see what we can come up with.

Ahh my bad. I'll have to take a look at those...

2 Likes

All good, I’ve just polished off half a litre of JD 40 Vol so I might be less comical than intended. :stuck_out_tongue_winking_eye:

PS the loss of harmony sucks, that’s why I’ve been buying URC remotes from the used market.

2 Likes

Need more than a relay. Need some kind of battery life reporting so hub can be shutdown gracefully before battery expires.

4 Likes

Quite true, currently you need to guess how long the batteries will last, there’s also the shutdown time for the hub which can be around a minute or so.

We’ll certainly see what is possible without making this drastically more expensive than the OG version.

3 Likes

Interested also. Plus, I would be even more interested if you plan on an expandable/modular design.

  1. Ability to communicate with the Hubitat itself (over the network, WiFi would be fine in my book). This could alleviate the need to watch the status LED. Plus the Hubitat could monitor it's own power supply status and determine when to shut down (and thus if it needs to shut down OTHER stuff first).
  2. Ability to have added battery packs or a readily changeable pack if someone wants to give it more battery life.
  3. Two RGB LEDs. 1 for "system status" (is it on/charging/draining/faulted). 2nd is for "battery status" (green = good, shades of yellow-orange as it drains, red is basically empty). Is these are controllable/configurable (see 1 above) all the better.

I have more ideas but I think the 1st of these is problematic enough but also the most important in my book.

EDIT:
For the casing, feel free to look at my thingiverse Hubitat wall mount or such. The OpenSCAD file is posted there so it has dimensions and other information that might be useful.

5 Likes

Just a word about the UPS controller for this project.
The core "brains" of the UPS is an full ups system IC PN: LTC4040 from Linear Technology/Analog devices.

This device is the "Cadillac"** of UPS controllers.

What I appreciate most is the ability to limit battery charge voltage. By reducing the charge voltage a little power is lost but is much better for the battery life. All the other battery charge IC's charge Li-on to the battery max of 4.2 volts. Then they hold it there for basically forever (as long as input power is present). This is a worst case operation for a Li-ion battery.

Other leading particulars:

  • Step-Up Backup Supply and Step-Down Battery Charger
  • 6.5A Switches for 2.5A Backup from 3.2V Battery
  • Input Current Limit Prioritizes Load Over Charge Current
  • Input Disconnect Switch Isolates Input During Backup
  • Automatic Seamless Switch-Over to Backup Mode
  • Input Power Loss Indicator
  • System Power Loss Indicator
  • Selectable Battery: Li-Io(3.95V/4.0V/4.05V/4.1V) or LiFePO4 (3.45V/3.5V/3.55V/3.6V)
  • Regulated charge current
  • Low battery shut off

** this may be a dated reference :slight_smile:

John

5 Likes

Even "down under", we get the reference. :sunglasses:

3 Likes

Not for this audience.

:joy:

8 Likes