![]() | ![]() | ![]() |
| | |||||||
| Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| I'm working with a circuit where I'd like to have a battery low charge indicator signal (to either drive an LED, or alert a uC of impending power problems so it can clean up, flash a warning and power off. The problem is, I'm only an electronic hobbyist, and have only four credit hours (two labs, Analog and Digital) in EE. Most of my experience is CS. I simply have no clue how to design such a circuit. The biggest problem is that I have only a single power source (6V battery pack connected through a 5V regulator circuit) to work with... How do I compare this voltage? I'd like to be able to trigger when I start dropping below 5V, so I don't end up with a system powering down unexpectedly. Additionally, if I want longer life for my system, would it be enough to build another 6V battery pack and connect them in parallel to the circuit?
__________________ -------------------- -Gandledorf Come visit http://groups.yahoo.com/group/laser_design a group dedicated to help designers build electronic games, and design optical combat systems. | |
| |
| | (permalink) |
| You might want to look at Maxim's uP supervisors. I'm sure there are other mfr's that offer similar products. Maxim is known for being generous with samples. You could probably get help here if you need application assistance. You could use a comparator and a voltage reference. The supervisors have those built in, along with some other functions (watchdog timer, etc.). What kind of regulator are you using? If you are using a switcher, OK. If you have a linear regulator, six volts is not much headroom. In fact, you will need a low dropout type (LDO) if you want to use linear regulation, and even then it's marginal. | |
| |
| | (permalink) |
| that CS, makes your eyes sting, and it gives you a sore throat. | |
| |
| | (permalink) | |
| Quote:
My project needs basic 5V supply for my uC's and support chips (a lot of them are CMOS), and probably a separate supply used to generate a high intensity beam. I'd like the device to have a battery life of around 8 hours or more (continuous use). Any suggestions on that? As for the battery charge indicator, I mainly want to alert the user, with something a simple as an LED, that the battery is low, and he ought to power down or risk running out while in operation.
__________________ -------------------- -Gandledorf Come visit http://groups.yahoo.com/group/laser_design a group dedicated to help designers build electronic games, and design optical combat systems. | ||
| |
| | (permalink) | |
| Quote:
As for regulators getting hot, it all depends on how much current you draw off them, the amount of voltage dropped across them, and how large a heatsink you have them mounted on. It's as well to measure the current taken, and if it seems high, try and find where it's going - you may find it's mostly going to one particular section, which you may then be able to redesign to reduce demand. | ||
| |
| | (permalink) |
| Thanks for all the help, I think I'm close to getting this nicked. I was looking through a book I picked up "Designing Embedded Hardware", by John Catsoulis (O'Reilly publishing), and I finished up the section on power sources. Let me give out some details on my system, and maybe this will help matters. I expect there to be around 2-4 processors (still working out the details), a 16x2 LCD with backlight, and an IR emitter with a 1 Amp peak current. According to the data I have on-hand, LM78XX's can source 1 Amp steady state, 2 Amps peak, but eat up 5-8mA of quiescent current. Good peak production, but bad for battery life. The book also recommends the MAX603, as it is a switching regulator, with no inductor needed (Maxim evidently builds it into the MAX603). The MAX603 also works over 2.7V - 11.5V, as opposed to 7V-25V. It also only uses less quiescent current. The only problem is, it sources a max of 500mA. My question is this: First off, where does one buy a MAX603? jameco, mouser, futurlec, all seem to lack that part. Digi-key says it can be special ordered, but only in units of 100 (I need one). Second, if I were to use this, what would be the best way to get 1 Amp(ish) to my IR emitter? I really want to dump a lot to it, as a stronger beam should boost my range. In any case, what is the best battery choice, for maximum of life of the system?
__________________ -------------------- -Gandledorf Come visit http://groups.yahoo.com/group/laser_design a group dedicated to help designers build electronic games, and design optical combat systems. | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) | ||
| Quote:
I assume your suggestion would include a transistor, which would be attached to an output from the processor to control when the current would flow, correct?
__________________ -------------------- -Gandledorf Come visit http://groups.yahoo.com/group/laser_design a group dedicated to help designers build electronic games, and design optical combat systems. | |||
| |
| | (permalink) | |
| Quote:
How IR remotes work (as described in my tutorial) is by sending out short pulses of 38KHz modulation, then a relatively long gap (giving time for the capacitor to charge back up) before the next pulse. You can buy (or salvage) simple IR receiver chips that do all the required work, and provide an inverted copy of the original pulses. The 38KHz is used to prevent interference, the receiver detects this to generate the output pulses. Obviously, regardless of the size of capacitor, if you are continually transmitting 1A current pulses it's going to be taking a similar amount of current from the supply - if the mark/space ratio is 50/50 then it will draw about half an amp. What actually are you trying to do? - you could easily send out individual device codes (see the Sony codes in the tutorial) to address different users, or to distinguish which user transmitted. | ||
| |
| | (permalink) | |
| Quote:
Why did you choose a BC337 transistor? I'm fairly unfamiliar with actual use for transistors, I've only used them in a lab setting where the whole task was to find breakdown voltage, etc. I'm actually working on two projects, the first is for some environmental monitoring equipment, we're going to have several IR probes sending signals underwater to a single detector. We want the detector to pick up the signal, figure out who it is listening to, and then calculate the percentage of transference of the signal. The second project is one I'm doing as a kind of "all encompassing" learning project to bring my basic EE skills up. The basic idea, however, is building a home brew laser tag set with all the bells and whistles, LCD, multiple weapons, all kinds of options. I want to be able to identify shooters in a similar manner to the way in which I identify emitter probes in the environmental experiment.
__________________ -------------------- -Gandledorf Come visit http://groups.yahoo.com/group/laser_design a group dedicated to help designers build electronic games, and design optical combat systems. | ||
| |
| | (permalink) | |
| Quote:
Interesting you picked AVR's for their FLASH capability - why?. In what way does that give you an advantage - aside from the fact that many 'so called' FLASH processors are/were in fact EEPROM. As far as I'm aware this applies to the early AVR's as well, FLASH was mainly a marketing ploy - which MicroChip also copied later on with some of their EEPROM chips. Now many processors are available with FLASH technology - any differences seem pretty slight, they might program slightly faster - mostly because you program them in blocks of bytes, rather than individual bytes. The BC337 was chosen because I'd got one!, and it's handles a fairly high current for it's size - 800mA. | ||
| |
| | (permalink) | |||
| Quote:
Quote:
Quote:
__________________ -------------------- -Gandledorf Come visit http://groups.yahoo.com/group/laser_design a group dedicated to help designers build electronic games, and design optical combat systems. | ||||
| |
| | (permalink) | ||
| Quote:
Quote:
| |||
| |
| | (permalink) | |
| Quote:
Back on the subject of battery power, I now think I'm good on firing an IR LED using the capacitor, and I suppose I can always use PWM to ensure the capacitor doesn't get drained during a prolonged firing, my other question I had asked is this: What is the best way to get long life out of my batteries then? I'm switching from a linear to a switching regulator, as per your advice, and if I understand drop-out voltage, under the new regulator I can now get 5V@500mA all the way down to 0.15V charge from the batteries (as opposed to tossing a 9V when it hits 6V on a linear regulator). Would I get better performance using a 9V, or a set of AA's tied together as a 6V source (or a 9V source). In addition, if I then connect up several 6/9V battery packs in parallel to my regulator, am I correct in assuming that this will give me more mAh, but the same 6V source?
__________________ -------------------- -Gandledorf Come visit http://groups.yahoo.com/group/laser_design a group dedicated to help designers build electronic games, and design optical combat systems. | ||
| |
| | (permalink) | ||
| Quote:
Quote:
If you study the Sony SIRC's system in my tutorials, you will see that they only send the code every 45mS, and the code itself consists of bursts of 2.4mS, 1.6mS or 0.6mS - with 0.6mS gaps inbetween. Also, there's no need to make the modulation itself (38KHz) 50/50 - if you make it 25/75 it's still 38KHz, but only using half the power. So even when you hold the 'Volume Up' key on a Sony remote it's only transmitting a small part of the time. For your application there's probably no need to transmit even that often, there's probably an optimum point - which you could either work out, or find experimentally. | |||
| |