No video

We Built a UPS for Hardware Hackers!!

  Рет қаралды 122,619

Interrupt Labs

Interrupt Labs

8 ай бұрын

Protectli is a company with values similar to ours, so we decided to collaborate on a project building an open-source UPS!
Product Info: protectli.com/...
Firmware: github.com/o7-...
Schematic: github.com/o7-...
Follow Me on Socials!
My Engineering Site - interruptlabs.ca
Twitter - / machinehum
Instagram - / interruptlabs
Reddit - / machinehum
Github - github.com/o7-...
Discord - / discord
LinkedIn - / 91427175
Design help from @qyx

Пікірлер: 224
@Gengh13
@Gengh13 7 ай бұрын
I like the idea, I would remove the STM32 and just isolate/level shift the i2c of the BMS to the RP2040, if you can remove 1 MCU from the equation it would be much better in my opinion.
@JensChrBrynildsen
@JensChrBrynildsen 6 ай бұрын
Yeah. An ESP32-S3 should be able to drive the entire system actually, but great project! Looking forward to see testing of it!
@darekmistrz4364
@darekmistrz4364 6 ай бұрын
@@JensChrBrynildsen That is something I have trouble understanding. I have a robot project controlling 8 servos with ESP32. I don't understand why ESP32 isn't handling whole board
@oliverer3
@oliverer3 6 ай бұрын
​@@darekmistrz4364I'm not entirely sure I'm understanding their implementation correctly but if I am they're using the RP2040 to act as a PMIC i.e handling voltage regulation, battery charging and power pathing rather than using dedicated ICs for it, ostensibly for flexibility and to some degree cost. Since this is very time critical stuff it makes a lot of sense to use a dedicated MCU. The rp2040 being a dual core with some rather unusual peripherals on board probably also helps a bit, the esp32 then handles connectivity and housekeeping. I can't however figure out why the STM is necessary.
@aliismail2962
@aliismail2962 5 ай бұрын
​@@oliverer3he is using a BMS IC and using the stm chip to control and configure the IC... I don't know what the rp2040 is doing
@philipegoulet448
@philipegoulet448 7 ай бұрын
Thank you for making it open source! 😊
@interruptlabs
@interruptlabs 7 ай бұрын
:-)
@mitchellmnr
@mitchellmnr 7 ай бұрын
I would def like to see less ICs but I understand the 3. Would much rather have 2 STM32's and an ESP vs 3 different boards - just for consistency - any reason you couldn't use an STM to replace the RP? There is a significant cost difference between the 2. (borked - completely broken/unusable) Onto the structure - remove the batteries from the board - have a battery connector block (you can use the screw terminal block or anything like that. If you want batteries like you have where they are on a board - make a battery board - it means if we wanted to use an external pack we can - also decreases mobo size. Actually, what I think you can do is actually separate this circuit completely onto a add-on board (board to board connector could be used here) - so lets say someone wanted to use LiFePO4 - you can just change the mod board (which contains the STM and all battery management components) for something that can manage/handle the diff battery type - you would have a std communication proto between that and the RP but gives flexibility and lowers board size. That then just has a connector that has either the battery board, or just connectors for an external pack - but fully managed. Or say the LiFePO4, then you can use that or any other tech later on without having to replace the whole mobo. Power inputs - same thing - screw terminal input. Keep the barrel jacks standard for ease of use - heck you could use std molex type connectors if you wanted - also for the battery side to keep it physically different. I also think remove the ESP as well - put on another daughter board - and have the connectors here carry the USB aspect for programming the other boards. Also, use a USB controller instead of a mux, so all devices would show up same time. - that then can be brought directly to the feature board - or you could just have a feature board that has a USB-C connector on it if someone wanted to program the other chips without an ESP involved. The BMS board can just have a programming header that is USB but unpopulated so for production easy to just program itself during testing - or via the USB controller on the main board. This brings more features since if you changed the ESP to like an H5 or whatever (heck even a rasp pi) - you could have the management OS be able to deploy firmware updates easily to any of the controllers. - since you want the STM as a core controller here - I think maybe a transistor or some way to 'enable' programming that forces the isolation of battery pack. - so eg: you want to push a firmware upgrade to the STM from the micro or just via USB, you pull a programming pin high on the RP or whatever, and it enabled programming mode on the STM and disconnects the batteries so programming doesn't disable the protections - I say this if its even required - if once the BMS has its registers set, can it function autonomously - then its fine - if it cannot, then you want something like this so if the STM gets borked, then batteries stay off. Just for ease of ref, I will call the add-on boards like so: BMS board (with STM), mobo (with RP) and monitor (with ESP) Then for your OLED display - have it a connector from the monitor board instead. Overall you want to make the main mobo as small as possible - lowers production costs as well as makes testing easier. Also means you can replace a borked board without replacing the whole thing. Means it's modular so you can also change things up over time where they may just need a firmware upgrade of one part to use something else. Like say for old style giggles, we wanna use a lead acid battery pack ... we could - it's just the BMS board that would change. We wanna use an Intel SOC with a full OS, NUTS and the likes to monitor and report ... we just replace the monitor board. Or you have now changed things up to handle more current or more connectors .... change the mobo (ofc current to a certain degree - but the BMS board could shut itself down if too much current was drawn - since the flexibility here) You can also make the main mobo simpler and keep it 12v - similar to the chinese mini-UPS units. And then if you want a variety of connectors avail (or 24/48v) - you just have an add-on board with the circuitry to add those features. - this is where an I2C/ISP/CAN connector could come in from the mobo to these expansion boards. You could then have an expansion board for 24v/48v and have it report it's voltage, state and current draw - and even allow control of it from the monitor board. ... think PoE switch - you could make a switch board with PoE ports (or just even passthrough connector for simplicity) - and each port can be monitored back without any hardware changes) The biggest thing is things will change, so why not make it as easy as possible to adapt to those changes ;)
@jonathanfulcher602
@jonathanfulcher602 8 ай бұрын
Love the schematic explanation!
@interruptlabs
@interruptlabs 8 ай бұрын
:) Thanks! I spent quite a while on it.
@ParthBhat
@ParthBhat 8 ай бұрын
Now that’s really amazing, I was busy designing a circuit for my vending machine control board where I’d want when the main power to the board goes off, the esp32 to run on battery for certain amount of time and then shut off itself.. I didn’t want to but had to use the fricking diode mainly a ss34, but looking at your circuit for the input and output protection using the mosfet and a dedicated driver to handle that. I just loved it. Made my own life a lot more easier haha. Thanks a ton for sharing this and how you’ve used the whole logic, it’s absolutely amazing. Cheers to the hard work and efforts! Hats off. 🎉
@interruptlabs
@interruptlabs 8 ай бұрын
Awesome! I'm glad you could benefit :)
@hgbugalou
@hgbugalou 8 ай бұрын
I would love to be able to get this piecemeal or complete. Itd be nice to be able to get the board with the smd stuff pre installed and leaving the rest of the assembly to me including providing the cells. I have a few of this low volt lion ups I got online and they are all trash with lots of ripple, they don't transition from mains to battery seamlessly without briefly interrupting power, or they just eat lion cells after 6 months. I also second the suggestion to have an option to support LiFEPO batteries as they are even better suited for duty in a UPS.
@Snowsea-gs4wu
@Snowsea-gs4wu 7 ай бұрын
Make it stackable with more 18650 modules to expand the capacity! Thanks for the video!
@interruptlabs
@interruptlabs 7 ай бұрын
This is certainly a topic of discussion for us!
@DeadCat-42
@DeadCat-42 7 ай бұрын
Or a connection for an external bank of larger cells.
@GoatZilla
@GoatZilla 7 ай бұрын
hrm don't like using barrel jacks for output. if ur gonna do that, at least separate them by a large, obvious physical distance.
@lazerusmfh
@lazerusmfh 6 ай бұрын
What a cool project! My favorite diy ups is a meanwell drc100a or drc100b with an appropriately sized lifep04 battery. Just tune the output to the correct top voltage and for 100-200 bucks you can get 20-40ah of capacity at 12 or 24v. Ive put fifty or so of these together and theyre a great alternative if you dont need the fancy stuff. You can just tap off a 12v to usb c adapter or whatever else you need too
@minhhungnguyen7867
@minhhungnguyen7867 7 ай бұрын
The Mosfet power loss also contains switching loss in addition to resistive loss Rds(on). When evaluating them you need to consider switching time as well, not just choosing the one with lowest on-resistance.
@interruptlabs
@interruptlabs 7 ай бұрын
Hey thanks for saying this, you've hit on a critical point of power supply design. For a system like an ideal diode where switching happens very seldom Rds-on is the most important metric. HOWEVER if you were building a switching power supply where the fet is going at 500Khz+, of course you need to look at the gate capacitance and gate drive of the FET :)
@cdoublejj
@cdoublejj 7 ай бұрын
does anyone even do linear power supplies anymore?
@unknown8088928
@unknown8088928 7 ай бұрын
@@cdoublejj Yeah, simple 3.3V LDO is commonly used to drop from 5V where efficiency isn't a concern. If you're talking about a linear power supply powering electronics ie: wall charger, nah I don't think so.
@MrPDawes
@MrPDawes 7 ай бұрын
@@cdoublejjYes, they're simple and reliable. Sometime a little heat for low current circuits are good for outdoor applications top stop condensation/mildew formation, like camera projects.
@conorstewart2214
@conorstewart2214 6 ай бұрын
@@unknown8088928 LDOs are often used because they can be low noise. Use a back converter to get down to 5V, even potentially lower, and then use an LDO to get down to 3.3 V with low noise.
@anon_y_mousse
@anon_y_mousse 7 ай бұрын
It's neat watching SMD's shift into place as heat is applied. It's almost like they're alive and crawling to their assigned place. This might be a project I need too, since my office UPS is doing funky things. The other day it just beeped once and I have no idea why, but then just a few days later it completely shut off with no warning.
@interruptlabs
@interruptlabs 7 ай бұрын
The idea is with a device like this you'll have a full understanding of what's going on with your hardware :) I hope it can one day solve your problems.
@joeventura1
@joeventura1 7 ай бұрын
@@interruptlabs We understand now we need enough batteries to back up something bigger than a cell phone.
@conorstewart2214
@conorstewart2214 6 ай бұрын
I get your what you were going for with the different sized input and output jacks but you should have gone with a more significant size difference. A 5.5x2.5 mm plug can be inserted into a 5.5x2.1 mm jack and can make intermittent connection, so it is still possible to plug the input power supply into the output. A jack with a different outer diameter would have been better but even better would have been to use a different kind of connector, like an XT60 or XT30 where they have different input and output connectors, then you should have used a female connector for the input and a male connector for the output, then there is no way that the user could plug the input power supply into the output.
@irfannafiz
@irfannafiz 6 ай бұрын
I'm currently in my final year of Electrical and Electronics Engineering and I wish this much depth and explanation was available in class. This is infinitely more exciting seeing an explanation of a schematic of an entire application basis, makes learning a lot more engaging and interesting.
@paulkelly2863
@paulkelly2863 8 ай бұрын
Two features I'd be curious about: Can it work with LiFePO4 cells? Can it cease charge at 80% to prolong the lifespan of the cells?
@interruptlabs
@interruptlabs 7 ай бұрын
Hey thanks for the comments :) Since it's all software-defined, LiFePO4 and cease charge at 80% could work with some simple firmware changes. Niche application requests like what you ask are what this device strives to do; if you want a simple hardware UPS that only does one thing, look elsewhere! We can't be cost competitive with those device.
@varunkoganti9067
@varunkoganti9067 7 ай бұрын
BQ76920 works with Lithium cell chemistry.
@artursmihelsons415
@artursmihelsons415 8 ай бұрын
Nice project with some great ideas! Excellent video! Thanks for sharing! 👍
@interruptlabs
@interruptlabs 8 ай бұрын
Hey thanks :)
@sjaguarmx
@sjaguarmx 8 ай бұрын
So inspiring to keep finding people who not only believe but invest energy in innovative, open source hardware/projects. Thanks so much! A DC-DC UPS project has been on my mind for a long time now. Additions like a wide input DC/DC converter (60W 75V to 12V) could result in a more robust design with a wider application range. Just like yourself, my time is limited and so collaboration would be a better way of moving forward. What do you say interruptlabs?
@interruptlabs
@interruptlabs 8 ай бұрын
Yes! Thanks for your comment! We believe in developing products that enable users to modify and upgrade while reducing e-waste; this device hits the nail on the head. If you're interested in working with me, send me an email! walker@interruptlabs.ca
@niokolabs
@niokolabs 8 ай бұрын
​@@interruptlabs +1 for the input Voltage, but Higher output voltage could also be interesting. I for myself run a single 19v PSU to power my Home Server (Intel NUC), DSL Modem (using a stepdown to 12v), and my Reolink doorbell. Of course I could boost the 12v to 19v for the server, but that wouldn't be very efficient.
@thesimbon
@thesimbon 7 ай бұрын
Nice project but why not using LFP batteries? Much less hassle for protection and no fire risk.
@exgenica
@exgenica 7 ай бұрын
Would definitely prefer modular, especially the battery mounting and containment strategy. I prefer to keep (non-LiFePO4) lithium cell battery packs in a packages that can be isolated from expensive devices (e.g. motherboard is high cost in terms of time) and keep risk of damage minimal to non-existant in the event there is a failure that causes the battery pack to explode or burn. In your design I'm unsure how difficult it may be to compartmentalize and safely contain the lithium cells without causing ventilation/cooling issues for the rest of the circuitry. In any event, catastrophic battery failure would seem likely to damage the motherboard and possibly requiring replacing it as well.
@ChannelingGames
@ChannelingGames 8 ай бұрын
Looks amazing! One question: are you looking at ways for users to expand capacity? That would be a killer feature!
@interruptlabs
@interruptlabs 8 ай бұрын
Thanks for the comment. This is definitely something on the table for later revisions of the product!!
@ChannelingGames
@ChannelingGames 8 ай бұрын
@@interruptlabs Awesome, can't wait to see what you come up with!!
@esra_erimez
@esra_erimez 7 ай бұрын
@@interruptlabs Yes, please!
@lambda7652
@lambda7652 8 ай бұрын
You relay dont’t want to uses DC bales sockets as Output. They can easily be shorted while trying to insert a plug and user's could insert an power supply into the output
@hojnikb
@hojnikb 7 ай бұрын
For simple low power 5-12V projects (like microcontrollers,single board computers, up to ~2A), aliexpress sells UPS boards for less than 1.5$. Yeah, they might not have the efficiency and fancy displays, but they work and they're dirt cheap. If you want battery holders (lke this project) you can find variants with 2 or more holders as well. Just throwing it out there, that an UPS doesn't need to be needlessly complex.
@timmturner
@timmturner 7 ай бұрын
It has to be complex enough to be safe, the batteries need to be balanced. It's not as simple as you seem to think
@hojnikb
@hojnikb 7 ай бұрын
@@timmturner A 1S configuration doesn't need to be balanced. Complexity doesn't necessery mean more safety For simple projects that require low 5V power, a simple UPS, that can be bought already works just fine.
@timmturner
@timmturner 7 ай бұрын
@@hojnikb A 5v UPS is not what this is.
@mspencerl87
@mspencerl87 7 ай бұрын
A ready made control board for a DIY UPS would be a killer product. Where you bring your own batteries. A UPS for say 1K watts
@therealjamescobb
@therealjamescobb 8 ай бұрын
Great little board. I love the efficiency focus and logic of the design. Id love to see another version to do up to 24v.
@interruptlabs
@interruptlabs 8 ай бұрын
Thanks James ! :) we might have something like that coming out later! If you're interested check out the email list in the video description that will keep you updated!
@terjeoseberg990
@terjeoseberg990 7 ай бұрын
Yeah. The USB-C output needs to power my laptop.
@nikitaskyriazis
@nikitaskyriazis 7 ай бұрын
I've been looking for such a device for long! Great project. Please consider 24v version it would be perfect for all the 24v 3d printers out there (this is what I want it for). Also, if this can be connected with a raspberry pi for monitoring in paralleler or replacing the esp32 (I.e. Klipper 3d printer) it would a perfect component for a lot of printers
@jakehop-
@jakehop- 6 ай бұрын
Super cool project, Ryan! Designing something like this is no small feat! While there might be areas of improvement, going through the process of designing and building this thing, end to end, is a difficult job indeed. Thanks for sharing!
@interruptlabs
@interruptlabs 6 ай бұрын
Thanks for the support :) !
@andrew2004sydney
@andrew2004sydney 8 ай бұрын
Excellent work!
@interruptlabs
@interruptlabs 7 ай бұрын
Thanks :) !
@mand6029
@mand6029 7 ай бұрын
this video is pretty much informative , thank you for assembling the circuit, you are very good at explaining the stuff which you made with good voice , indeed i got details from this video, thank you very much once again
@interruptlabs
@interruptlabs 7 ай бұрын
Hey no problem, thanks for the kind words :)
@DLSDKING
@DLSDKING 8 ай бұрын
Thank you for your effort and making it opensource. Design wise its amazing, especially that one multipurpose circuit block to charge, discharge with batteries. I am gonna try that one. I did made my own ups for powering my home router and pihole and it is in its 3rd revision and is based on 2S4P configuration but its not smart one. Only thing i didnt figure out was what led you to use 3 mcus and i believe it can be optimized to use 1 mcu. If there are options for collaboration in development, i am interested to join.
@interruptlabs
@interruptlabs 8 ай бұрын
Thanks for the comment :) ! I appreciate your support. ESP32 - For hacking and customizing your applications. RP2040 - For controlling the realtime elements for the PMIC. STM32 - Battery protection configuration must be on a separate circuit from the other MCUs. There's a good reason to have all three parts: the ESP32 can be safely removed from the device if you don't need WiFi or the screen, but it cannot take the place of the RP2040 or STM32.
@andrew2004sydney
@andrew2004sydney 8 ай бұрын
Is there a temperature sensor near the batteries? I can't see it on the diagram.
@interruptlabs
@interruptlabs 7 ай бұрын
Yes. PN TH1 on page 3 of the schematic.
@aleksandrmusiienko9845
@aleksandrmusiienko9845 7 ай бұрын
Will there be USB support like in a regular UPS?
@interruptlabs
@interruptlabs 7 ай бұрын
Yes! I will have support for NUT over USB.
@kevingallineauii9353
@kevingallineauii9353 8 ай бұрын
Need to be able to plug in battery banks for longer run time. Just make the charging and battery management part of the UPS separate and chain-able (have the primary built in and a plug to expand with daisy-chain style connections). 9 amps is plenty of power the 90 Wh is way too small (especially if you are drawing 9 amps @ 12 volts, that's less than an hour!). There is plenty of resources in the chips to run almost an unlimited amount of expansion storage.
@jwshields
@jwshields 7 ай бұрын
Awesome video & awesome UPS/thought process! A+ stuff here! Thanks for sharing it And, I'm sure you're aware, but this got shared on Hack-A-Day
@interruptlabs
@interruptlabs 7 ай бұрын
Thanks :) Yeah I was delighted to see that!
@SiBex_ovh
@SiBex_ovh 7 ай бұрын
Good Idea will be use a 2x INPUT (or one PoE) who give us option to use input from TWO differ PHASE source adapters. Then this UPS will be perfect for many of my clients setups.
@Daddy-Samy
@Daddy-Samy 7 ай бұрын
You need to have two mosfets at the entrance with a logic to check the 12V input when both mosfets are OFF, if one of the mosfets is still conducting, this trip the failsafe and not turn any mosfet on. This will prevent a dead mosfet from conducting continuously as their failure mode is usually ON rather than OFF
@lonniehowell2360
@lonniehowell2360 7 ай бұрын
Schottky diode only has a forward drop of .2v
@michaelcummings7246
@michaelcummings7246 6 ай бұрын
Depends on how much current it is passing but yes can be only .2v for some
@trippycat
@trippycat 7 ай бұрын
Nice explaining! Would love to see more explanation videos like this to boost my knowledge of what are good ways to do something. I do hardware as a hobby so it would be a great resource.
@ihohor
@ihohor Ай бұрын
Can't wait when it will be available for purchase.
@merzougbouhamdi8352
@merzougbouhamdi8352 7 ай бұрын
A great work, thanks
@bnelsey
@bnelsey 7 ай бұрын
What is this designed to power exactly? I know routers can be powered with just 3x lithium ion batteries, so seeing 12 of them here is pretty surprising - but this also means i have no idea if this is designed to be back up power for laptops since I couldn't find any mention of maximum power output
@interruptlabs
@interruptlabs 7 ай бұрын
Anything you want! By routers and mini PC's were some of our first ideas.
@voed
@voed 7 ай бұрын
It would be great to have a "solder iron-friendly" version without(or with minimal usage) SMD components.
@3nertia
@3nertia 8 ай бұрын
Now if we could just get someone to do the same with [touch]screens in general - open source hardware would be lovely. Same deal with camera sensors!
@boxcutter0
@boxcutter0 7 ай бұрын
Camera sensors price improvements & open source usability would be awesome, but many profitable companies hide behind “security/military” arguments & lobbying it seems.
@3nertia
@3nertia 7 ай бұрын
@@boxcutter0 Mostly CrApple and Samsung lol
@tinu5779
@tinu5779 8 ай бұрын
I wonder why they forgot to add an AVR, a PIC, a HC11, an 8051, a M68000 and a LEON, that would be the perfect multi CPU kit ;-)
@interruptlabs
@interruptlabs 7 ай бұрын
The next version will strive to have every single MCU ever made, don't worry.
@terjeoseberg990
@terjeoseberg990 7 ай бұрын
@@interruptlabs, LOL
@jwshields
@jwshields 7 ай бұрын
We're also gonna need some PLCs too 😂
@BaffledBelief
@BaffledBelief 7 ай бұрын
@@interruptlabs i want a sid chip too no 2x sid chips
@DrFiero
@DrFiero 7 ай бұрын
NEEDS 555's! Lots of them. Blinky LED's as well.
@sammorris2721
@sammorris2721 7 ай бұрын
Absolutely INCREDIBLE! AND Open Source!
@NavinF
@NavinF 7 ай бұрын
Very cool! Is the RP2040 absolutely necessary? The ESP32 has decent PWM capabilities
@interruptlabs
@interruptlabs 7 ай бұрын
The idea was the user should be able to fearlessly flash the ESP32 without any possibility of changing the control loop on the rp2040.
@JJFX-
@JJFX- 7 ай бұрын
Great work guys, this is very promising. Apologies if I've overlooked it but have you made any pcb files public or have plans to do so?
@defenestrated23
@defenestrated23 8 ай бұрын
Really cool! How many watts is the parasitic drain from the control uC and PS circuit?
@luciferofazaroth
@luciferofazaroth 8 ай бұрын
Are you going to sell the boards in the future? I would be interested in one to test.
@interruptlabs
@interruptlabs 8 ай бұрын
Right now we're gathering interest and feedback, but the plan is to sell complete devices in the future.
@Tom_Azin
@Tom_Azin 7 ай бұрын
This is so cool! For the final product I'd love to see it customizable. So one can select how many outputs at what voltage they need and how many battery packs they need! I for example need 12V (NAS), 19V (router) and 6V (ISP modem). You can't get this on the market. And I really don't need a lot of battery life. Just enough to gracefully shut down the NAS and router. So please, PLEASE, give us the option to configure the product to our needs and take our money :)
@sergeantseven4240
@sergeantseven4240 6 ай бұрын
My only beef with this design is that it uses 18650 cells. Lithium batteries aren't designed for the long term UPS environment. Sealed lead acid batteries are much safer and are better suited for long term charge storage. Lipos form dendrites internally that damage the cells when holding a full charge for a long period of time without being discharged. You could overcome this by doing a maintenance routine where it discharges the cells at regular intervals but for me, the risk of a lipo fire inside my SOHO panel is too much risk. Also, I don't see a need for two microcontrollers. You could use just an ESP32 to handle everything. I love the other aspects of this project though and I feel like this would be a great toy to play with and add to my smart home projects but I would figure out a way to use something other than lipo cells.
@thee_onderwyser
@thee_onderwyser 7 ай бұрын
This is a cool circuit is it's unnecessarily expensive and overengineered you can achieve better efficiency with even more features using just the esp32 as the microcontroller.
@LLL-tj4mq
@LLL-tj4mq 8 ай бұрын
I like how you used a lot of TI ICs :))))
@interruptlabs
@interruptlabs 8 ай бұрын
I find they strike a nice balance between cost, functionality and availability
@weirdsciencetv4999
@weirdsciencetv4999 6 ай бұрын
This is amazing!!!
@quartzofcourse
@quartzofcourse 7 ай бұрын
Love seeing things like this!
@tariqsingh3747
@tariqsingh3747 8 ай бұрын
Why would you use two micro controllers? What was behind this choice?
@interruptlabs
@interruptlabs 8 ай бұрын
Hey! The RP2040 is acting as a PMIC while the ESP32 is user facing, meaning the user can really hack around with it without fear of disrupting the core functionality. The PID loop for the power delivery (RP2040) is very resource intensive and can't run on the ESP32 while hosting a webserver, screen, NUT etc.
@tariqsingh3747
@tariqsingh3747 8 ай бұрын
​@@interruptlabsThanks for the speedy reply! That makes a lot of sense, and definitely improves the 'hackability' for people who aren't 100% sure of what they're doing.
@philipegoulet448
@philipegoulet448 7 ай бұрын
​​​​@@interruptlabsWhat kind of calculations are you running before / after that PID loop that require a lot of time? After checking the firmware I don't see why it couldn't be ran on the esp32! Cool project man!
@mylesl2890
@mylesl2890 6 ай бұрын
sorry if i over looked it, but where can i buy either a kit or the pcb?
@interruptlabs
@interruptlabs 6 ай бұрын
Nothing yet! If you subscribe to the channel, or the Protectli mailing list you will be the first to know.
@user-dr2pg8fk2i
@user-dr2pg8fk2i 8 ай бұрын
Okay, pretty cool! But can it be scaled up?
@interruptlabs
@interruptlabs 8 ай бұрын
Not yet, but thanks for this input.
@jacknlogic6500
@jacknlogic6500 7 ай бұрын
I've been looking for this type of UPS board and it's small. looking forward with this. it would be good to put it on Modems/routers
@martingerken7094
@martingerken7094 8 ай бұрын
Cool, but why THREE microcontrollers? More cost, more complexity...
@interruptlabs
@interruptlabs 8 ай бұрын
Yup! Three MCUs :) ESP32 - For hacking and customizing your applications. RP2040 - For controlling the realtime elements for the PMIC. STM32 - Battery protection configuration must be on a separate circuit from the other MCUs. There's a good reason to have all three parts: the ESP32 can be safely removed from the device if you don't need WiFi or the screen, but it cannot take the place of the RP2040 or STM32.
@marcinbieli
@marcinbieli 8 ай бұрын
Intersting perspective in case of multiple uC :) Maybe next iteration needs one FPGA with a few RISC-V cores...it will be super fine to watch this kind of challenge ;) Thanks for sharing this +1
@ketas
@ketas 8 ай бұрын
at larger ups you might as well replace esp with allwinner h5. get actual os in there so you can run shellscripts like big server admin. i would, it's simpler
@emielv7677
@emielv7677 8 ай бұрын
​@@ketasyour reliability goes out the window then though. OS'es are generally easier to crash then a program running on a uC.
@emielv7677
@emielv7677 8 ай бұрын
​@@marcinbielivery cool but pretty complex and extensive 😅
@mskiptr
@mskiptr 7 ай бұрын
Cool! We need more open source hardware. Will you be submitting it to OSHWA?
@TheBussaca
@TheBussaca 7 ай бұрын
Are you going to sell these as a kit the customer assembles, or just as a PCB the customer must populate, or as an assembled kit.
@interruptlabs
@interruptlabs 7 ай бұрын
Not sure yet. But if you subscribe to our email list you'll be the first to know.
@jensschroder8214
@jensschroder8214 8 ай бұрын
Why do you need three microcontrollers? do you want to fly to the moon with it? The batteries are monitored by the BQ, OK An ST to set the BQ, OK. Why an RP2040? All three microcontrollers could set the BQ. The ESP32 could also set up Wifi and the BQ and host a web server all in one IC. This would make the PR204 and ST obsolete.
@interruptlabs
@interruptlabs 7 ай бұрын
Hey thanks :) The TI BQ76920pw battery manager needs a companion to set it up. The MCU needs to be on a bus created by the bq76920 so that when a fault occurs, the MCU can do something reasonable to clear the fault before the entire system power has been cut out. This MCU must be completely isolated from the rest of the system (IO and power). Additionally, this bus is 3.3V at 90mA, which isn't enough for the RP2040. The ESP32 is a "user-facing" component, meaning the user can fearlessly flash this device without harming the core functionality of the UPS. The ESP32 can be safely removed if the user doesn't need a screen, WiFi or NUT.
@Dylan_Lanckman
@Dylan_Lanckman 8 ай бұрын
If they would be daisy-chain-able I would certainly buy this
@interruptlabs
@interruptlabs 8 ай бұрын
Thanks for the feedback.
@rafaelraimer
@rafaelraimer 6 ай бұрын
Hey, you should minimize the use of zoom in / out. Thank you.
@unknown8088928
@unknown8088928 6 ай бұрын
Certainly for the next video :)
@yunodiewtf
@yunodiewtf 7 ай бұрын
Hey guys, why not one-up the idea and make somewhat like a reference design for repurposing retired 400V EV batteries (or some 96-180V sections) as household UPS? I'm actually on this quest as a hobby project but it's not moving well since most of my electrical engineering is below 48V. The rough idea is to shove 400V directly into SiC full H-bridge for high efficiency and high surge resistant transformerless sine output. BMS and balancing would be "outsourced" to external boards and comms being CAN or preferably just a bunch of dry contacts for greater compatibility.
@FreeTheUyghurs
@FreeTheUyghurs 6 ай бұрын
Prototype board shows six 18650's but I guess that will be changed to twelve in the final board?
@mjmeans7983
@mjmeans7983 7 ай бұрын
How is this a UPS when it doesn't have mains in and out, near sign wave output, and power factor correction? This seems to be trivially more than a simple DC BMS.
@xani666
@xani666 7 ай бұрын
Is there a way to use wired ethernet ? UPS is just about the last device I want to see in WiFi network...
@DarkySabertooth
@DarkySabertooth 6 ай бұрын
i love this how ever i would like to be able to use a combination of batteries
@andrew2004sydney
@andrew2004sydney 8 ай бұрын
It's great that you are monitoring individual battery voltages and balancing them ... but don't you still have the problem with each bank of batteries that having three in parallel will still need balancing? Can you explain this?
@vigneshb5347
@vigneshb5347 5 ай бұрын
Hi, I have a question (not exactly on UPS, but) similar field. I have home entertainment system (< 800w) that operate at 120v @ 60Hz but when I move to a country where its 220v @ 50Hz, I want to be able to use it. Step down transformer will provide 120v but retains the 50Hz, there by decreasing the efficiency on the power supply in the electronic instrument (if they have transformers). So, I was thinking of using a Pure Sine wave Inverter (12v to 120v @ 60Hz, 1200w) and feed it with some sort of Power supply that can deliver 12v at 100A !! .. So was thinking of a 1200W rated SMPS, do you think this is feasible?
@spoddermansweg9077
@spoddermansweg9077 7 ай бұрын
if i may, which program did you use for the schematic, love the video thx i liked and subribed
@interruptlabs
@interruptlabs 7 ай бұрын
Hey thanks for the support! Schematics we're all done with KiCad.
@spoddermansweg9077
@spoddermansweg9077 7 ай бұрын
thx mate i love your passion and wish that i too one day can share my experience with you@@interruptlabs
@Aurelian0610
@Aurelian0610 7 ай бұрын
looks nice , where you can get the pcb design and the boq ? , is it possible to send this to pcbway and get the board completely done ?
@joelsmith1072
@joelsmith1072 8 ай бұрын
Will this drive 12v 8a draw? Or any option to have this possible, such as high drain 18650s
@interruptlabs
@interruptlabs 7 ай бұрын
Yes it will.
@omercelebi2012
@omercelebi2012 28 күн бұрын
Can we see test video? Thank you
@SB-qm5wg
@SB-qm5wg 7 ай бұрын
This is really cool.
@paulf1071
@paulf1071 7 ай бұрын
I was wondering if this was modified or pure sinewave, but then realised there was no inverter, as the o/p was 12v dc!
@arashyusefi1889
@arashyusefi1889 7 ай бұрын
Thanks 🙏👍💯😊
@Electronzap
@Electronzap 7 ай бұрын
Nice build.
@superhero1
@superhero1 7 ай бұрын
Will you also publish the Gerber files so we can order the pcb and a BOM?
@mmakam3
@mmakam3 7 ай бұрын
Now lets make this scalable to handle however much load we want
@bob_mosavo
@bob_mosavo 7 ай бұрын
Thanks 👍
@phpnotasp
@phpnotasp 7 ай бұрын
Only 12V? So I can't use this for my server, or router/switches, as they all require north america 120v input. Did I misunderstand?
@interruptlabs
@interruptlabs 7 ай бұрын
For that, you would use a 120V UPS.
@DiomedesDominguez
@DiomedesDominguez 7 ай бұрын
great work bro!!!! do you have an store where I can buy from you 2 or 3 of those UPS?
@shourovpal2168
@shourovpal2168 7 ай бұрын
I want to learn more about the electronics part. can anyone suggest me any article or video?
@TouYubeTom
@TouYubeTom 7 ай бұрын
audio is either mismixed or echo chambered
@WilliamWallace14051
@WilliamWallace14051 7 ай бұрын
Thoughts on using NiMH instead of Li-ion?
@interruptlabs
@interruptlabs 7 ай бұрын
This is certainly a possibility in the future!
@gidomareyt
@gidomareyt 7 ай бұрын
Will You share pcb design or part list to make one
@johnbash-on-ger
@johnbash-on-ger 6 ай бұрын
Plz fix too low audio levels. Use good audio normalization.
@eboy536
@eboy536 7 ай бұрын
Which software you use for schematic diagram design purposes
@interruptlabs
@interruptlabs 7 ай бұрын
KiCad
@eboy536
@eboy536 7 ай бұрын
@@interruptlabs thank you very much, I have not tried
@ihohor
@ihohor 17 күн бұрын
Guys, when? Or tell me at least how much it will cost to buy (without batteries).
@OdisHarkins
@OdisHarkins 7 ай бұрын
Why Barral Jacks? They are the worst! no locking at all if it gets bumped power is out. I would love to see these projects use locking connectors.
@retsamyar
@retsamyar 7 ай бұрын
now i CLEARLY have not enough knowledge on this subject but is it not that lithium batteries like 18650 are happiest when stored at a not full charge so wouldnt it better to have a few extra batteries and keep them at 3/4ths charge? or is it only bennificial if they are stored at like 30% which makes it not useful at all to try and do that? i dont have a clue but im sure there are reasons that i am just not aware of. obviously very smart people have asked such questions before. but if someone could entertain me i would be greatful.
@firenado4295
@firenado4295 7 ай бұрын
Personally I would not have used 18650 cells. They are Li-ion and if left fully charged for more than 3 months they will lose their capacity and if continually treated like that they probably wouldn't even last a couple years with any meaning power output. I would have either used NiMH cells or LiFePo4 cells as they can deal with being fully charged for much longer and are much less volatile. I would say "just use lead acid gel cells" but that is what everything else uses and where is the innovation there. One possibility could be to have 1 spare 18650 and have a micro controller cycle through all the cells discharging one and then recharging it so that they are not left fully charged for long enough to cause damage. However that is much to much complexity for my liking and could probably be fixed just by using other battery chemistries.
@tamaskozma2487
@tamaskozma2487 6 ай бұрын
Can I buy this fully assembled?
@interruptlabs
@interruptlabs 6 ай бұрын
Not yet, but if you subscribe to the email list in the description you'll be the first to know!
@SaranaAlat
@SaranaAlat 6 ай бұрын
what name your software design Schematic ?
@Scrogan
@Scrogan 7 ай бұрын
You wouldn’t be leaving those cells at 4.2V constantly, would you? If so that’s a recipe for needing new cells in a year or two. Either keep them at 4V or swap to LiFePO4.
@SeanHarlow
@SeanHarlow 7 ай бұрын
I love the concept of a modifiable/repairable UPS, but this implementation really does not do it for me. As others have pointed out the choice of battery is really less than ideal. If you want to stick with compact, energy dense cells then LiFePo is the way to go, and of course there's a reason lead acid remains the standard when size and weight aren't significant factors. The use of a DC barrel plug as an output is just asking for problems, especially with it placed right next to the input where someone fumbling around in a cramped rack could easily plug in to the wrong one. WiFi-only networking is also a weird choice, considering that UPSes tend not to move very often and tend to be near things they can be wired to. In the event of a power outage I'd be willing to bet that wired ports stay online longer than wifi. Not saying don't support WiFi, obviously the ESP32 has it so you may as well allow it, but WiFi-only on a device that's expected to be plugged in to the wall during most of its operating life is a strong turnoff.
@zyxwvutsrqponmlkh
@zyxwvutsrqponmlkh 7 ай бұрын
Needs prismatic lifpo4 beefy ups, or even better fedex
@mariuszp2318
@mariuszp2318 7 ай бұрын
"UPS" but in reality 12V, would be still nice if you name it in title, now t looks like clik byte
@Savan_Triveda
@Savan_Triveda 7 ай бұрын
This is amazing. Can you tell us, how did you learn all this things. Are you an electronic engineer? Did you study that for a long time? I mean for us hobby electronics thats far to advanced to understand. Finally I would like to ask you how can I learn this? Let's say I'm above average intelligence but not a genius.
@DerekWoolverton
@DerekWoolverton 7 ай бұрын
For any kind of reactive load, you actually do want current to flow from the output to the input. Most good power inverters and UPSs can handle current flowing both ways.
I Made a Secure USB Drive for Journalists and Hardware Hackers!
1:36
Parenting hacks and gadgets against mosquitoes 🦟👶
00:21
Let's GLOW!
Рет қаралды 12 МЛН
Survive 100 Days In Nuclear Bunker, Win $500,000
32:21
MrBeast
Рет қаралды 158 МЛН
а ты любишь париться?
00:41
KATYA KLON LIFE
Рет қаралды 2,5 МЛН
Get 10 Mega Boxes OR 60 Starr Drops!!
01:39
Brawl Stars
Рет қаралды 15 МЛН
477 Use the very attractive new ATTINY chips for your projects
14:34
Andreas Spiess
Рет қаралды 204 М.
Modifying broken UPS for long endurance BACKUP POWER!
32:39
MetaphysicalEngineer
Рет қаралды 127 М.
Your Powerbank has 1 BIG Problem! (That we can "Hack")
12:13
GreatScott!
Рет қаралды 351 М.
Extracting Firmware from Embedded Devices (SPI NOR Flash) ⚡
18:41
Flashback Team
Рет қаралды 566 М.
5V UPS with 2.5A
16:38
Sorin - DIY Electrical Nerd
Рет қаралды 73 М.
Gamer power (for gamers) - Eaton Tripp Lite Gaming UPS
9:28
ShortCircuit
Рет қаралды 561 М.
Universal DIY DC UPS 1228-12 for 100 Watts - the best choice in its class
15:26
Alex Kvazis - технологии умного дома
Рет қаралды 40 М.
Parenting hacks and gadgets against mosquitoes 🦟👶
00:21
Let's GLOW!
Рет қаралды 12 МЛН