designing a battery controller and power supply (and general design problems) - Page 1
Forum section: electronics / beginners

author: atsch
author_rank: Newbie
timestamp: July 15, 2016, 02:31:53 am
content: I am currently working on a project that involves multiple tiny differential drive robots.These tiny robots currently consist ofa small lipo 1s batterythis cheap china battery charging circuitthis cheap china boost converteran arduino minicheap 433mHz radio recieverstwo small (presumably stepper) motors with drivers (I have not found suitable motors yet, the ones I bough were to big)I'd like to unify most of this stuff into a single board, customizing and optimizing many things, because the current stack of at least five boards on each other is a really big mess.I hope for a single board (or maybe two stacked boards connected with headers) solution to be cheaper, easier and all-around better.There's one issue: while I have do know some high-level electronics stuff (connect a power supply to some stuff, connect an LED or pushbutton, etc), I have never designed actual circuits at a component level before.I expect I can just copy over the Arduino and the 433mHz reciever from somewhere and the motor drivers are probably just some passive components and a big H-Bridge (or dedicated stepper controller) chip, so the part I think I am going to be having the biggest problems with (and currently really stuck on) is designing the power supply/battery circuit.I'd like it to do the following:charge the battery in circuit (having the charger external isn't feasible because I plan to have a bunch of these, and the battery will likely be soldered on)do some decent battery protectionboost the voltage up to 5v with enough current to drive two small motorsnot spout so much ripple everywhere that my receiver has problems, in case that could be an issue (Could this even be an issue? No clue!)My first intuition is to find a chip that does all of that, but I can't seem to find any. So I think I will have to build the circuit using two chips. This is where I can't go any further. There are thousands of battery controller circuits, and even more switch-mode regulator chips. I don't know what to do, or where to start. As mentioned, I can't find any examples to go off of, or "How to design a [insert thing I'm working on]" tutorials anywhere.Is it even feasible that I try this? Will I manage to hand-solder parts at this scale? It certainly looks daunting.I know I'm not actually asking any specific questions, and that is likely a mistake, but any help on anything I wrote about is greatly appreciated!

author: Mosaic
author_rank: Regular Contributor
timestamp: July 15, 2016, 06:34:15 am
content: Hi,Sounds like you have a plan to make some type of product or custom device for a specific application and want to reduce the plug N play Arduino assembly to a single integrated module as a system.That requires a several key things including:1) Understanding of component level electronic design2) Understanding thermal design issues for power supplies3) Soldering and PCB making capability.4) Debugging capability for when things go wrong, which means a few test instruments like a basic logic analyzer or 'scope and decent DMM.If this is a commercial venture such as creating a product or product kit, well I think it may be a good idea to put a team together rather than try to DIY as there is much to learn.If this is just a DIY exercise so you can learn skills and enjoy your hobby, I suggest you just start with designing your system in block mode. Starting by developing the specs for your PSU and then developing and building that. With that done move on to the next block, get it working etc etc.At the end you will have several working system blocks which you can either connect via jumpers /headers or do a complete PCB layout to have the whole thing integrated as a system.Thus for forum help: specify the PSU you want (expected input supply & output voltage/current and possibly max ripple and max operating temp.)Then we can help by suggesting circuits or parts etc.

author: jeroen79
author_rank: Frequent Contributor
timestamp: July 15, 2016, 01:08:19 pm
content: How about reversengineering the layout of the off the shelf modules and then putting them on one single board?Then you would only need to shuffle them around for the best fit and route connecting traces between them.

author: atsch
author_rank: Newbie
timestamp: July 15, 2016, 04:42:48 pm
content: Quote from: Mosaic on July 15, 2016, 06:34:15 ampretty much.QuoteQuoteYes, this is a private project. Blocks is the way I am currently approaching this thing, with the power block being my biggest concern right nowQuoteMy current maximum current estimation with a lot of headroom is the following:Microcontroller: I have not measured this directly, but the figures I've read online lead me to estimate 30mABright RGB LED: I need to get higher-power ones than I currently have, so 100mAtwo tiny motors: 200mA433Mhz reciever: 10mAThis would be a total maximum of around 500mA at 5V output.So the boost converter would have the following specifications:IN: 3.2V-4.5VOUT: 5V 500mAI am unsure about ripple, because I don't how how much it will effect my radio reciever.Operating temps: nothing special. At 90% efficiency I'll only be dissipating 0.25W, so I don't think thermals is a big issue. However, I do not really have space for any heat sinking beyond using the copper. The robots will only ever be operating at room temperature.Thanks for your reply, I hope the specifics help!

author: atsch
author_rank: Newbie
timestamp: July 15, 2016, 04:59:35 pm
content: Quote from: jeroen79 on July 15, 2016, 01:08:19 pmYes, I could do that, but the thing is, if I'm rolling my own board, I might as well do stuff properly. Currently, while charging, the board gets 5V, which is stepped down to the charging voltage, then stepped up to 5V again and then regulated again by the Arduino. So I'll have to remove and improve some things. I think if I remove everything that is currently unnecessary, I have so little left over that it's probably just faster to design my own.Also, on the step-up converter board, I don't know what the SOT-23 is, and there is no obvious way to find out.

author: Mosaic
author_rank: Regular Contributor
timestamp: July 18, 2016, 12:11:40 am
content: Wel, unless you really want to design the thing....I'd go with this as a tiny piggyback.Ebay # 351421932376Ancel