4

I want to make a circuit to do something that is relatively simple but I need to find the optimal way to do it in order to take as little current as possible. Here is what I want to do:

When a trigger is activated, it launches a cycle. A cycle is:

  1. 1 second "on" (let's say it closes a relay)

  2. 1.5 second "off" (opens the relay)

  3. 1 second "on" (closes the relay)

  4. Turn "off" and then wait for the event to initiated the circuit to happen again. (relay is open).

The time "on" for step 1 and 3 needs to be the same but they are not necessarily the same as in step 2. The trigger that activates the circuit will probably be a short pulse. I thought about using one or two 555 timers and counters but I am not sure exactly how and not sure if that is the best way.. What would be the best way to do something like that to use as little current as possible? The circuit will run with batteries(4*AA or one 9V)...

  • 3
    MCU. If "as little current as possible" then MSP430-based. 555 ICs will require many orders of magnitude more quiescent current. Depending on how often it is activated, you may be able to run the MCU with less average current than the self-leakage of the battery technology you are using. – jonk Dec 22 '17 at 19:02
  • 3
    I would love to know the backstory for these rather unusual requirements. Who knows, maybe there is an entire other solution to your problem. - Either way, what kind of answer do you seek? Pure analog? Transistors? IC solution? Pure digital? Either? There's so many options.. to a problem that we don't know the backstory to. – Harry Svensson Dec 22 '17 at 19:04
  • 2
    @HarrySvensson I'd also like to know what this is for. I can't speak for the OP, of course, but when OPs appear to speak English well I often wonder then if questions withhold important information because the OP imagines they have the next best thing to sliced bread and they don't want to "give it away." (If they don't speak well, other reasons arise, of course.) For those who think so, the truth is that *good ideas* (not just *any idea* but just the really good ones) are a dime a dozen. It's all the work required afterwards that is the truly limited resource and makes things worthwhile. – jonk Dec 22 '17 at 19:08
  • That's not a very English name though. – Passerby Dec 22 '17 at 19:38
  • @Passerby No. But the English is respectable. I wish I could produce nearly as good quality in German. (I can read it fairly well, but my production is stilted and not very conversational.) – jonk Dec 22 '17 at 20:04
  • @jonk Don't worry, I'm German, born and living in Berlin, and prefer to read and write notes in English. To me, it makes not much sense to speak a geographically local language - and most in larger cities speak English. And I hope nobody writes comments in program code or so in German... – Volker Siegel Dec 22 '17 at 21:15
  • @VolkerSiegel Hi! I do not like to only get news from US sources. It is all "one note," as though it was being read from a piece of paper shared by all news agencies. So I broaden out my exposure two ways: (1) by listening to world broadcasts in English on shortwave, to get a range of provincial news out of which I can piece together a better average picture; and (2) by listening directly to news in German from Germany for Germans. (With the recent elections I caught a case where the English translation dropped the very most vital and powerful part of a quote. I'm glad I knew German, then.) – jonk Dec 22 '17 at 22:52
  • @VolkerSiegel Thanks! I'll give them a try. When I was aware while still growing up (say, late 1960s through early 1970s) the news in the US was researched, put into decent background context, and at least made reasonable attempts to meet some standards of quality. But that was also when there were tens of 1000s of independent owners. I watched as this consolidated over the late 70s and 80s and finally early 90s under Clinton when the FCC shucked any pretenses about "public good" and also allowed cross-mediatype ownership inside single markets. News in an entire market owned by one owner!! – jonk Dec 23 '17 at 00:32
  • @jonk, I didn't give all the information because I felt it would make an unnecessary long post and I might get some answers that are more about the whole idea than the circuit. The idea is to make a circuit to control the temperature off of a "vegetable preservation" room. It doesn't have access to electricity. I already figured out the part to measure the temperature and send a pulse but the part that I need to figure out is the circuit that controls a motor to open a valve. – Pierre-Luc Dec 23 '17 at 03:49
  • If you are measure the temperature with analog components, you should probably just switch it to completely done by microcontroller. And add some hysteresis so it doesn't trigger more often then needed. – Passerby Dec 24 '17 at 02:47
  • @Pierre-Luc ["*I might get some answers that are more about the whole idea than the circuit.*"] That's the problem then. You need to allow others to examine whether or not you are chasing down the right path in the first place. Not try and get around that by channeling people in a ditch of your own making. Besides, even if you were right to do so (and you are not), there still isn't enough context except to tell you that you should use an MCU here. Which was the first comment you got from me. So if you want more, you have to give more. I'll leave it there. – jonk Dec 24 '17 at 18:31

3 Answers3

5

Based on your need for arbitrary on and off times and a small fixed cycle, as well as low current, then as mentioned in the comments, a micro controller will do what you need with minimal code.

Pseudo code

While(1){
    sleep;
}

Interrupt on input high to low{
    output on;
    wait 1000ms;
    output off;
    wait 1500ms;
    output on;
    wait 1000ms;
    output off;
}
Passerby
  • 72,580
  • 7
  • 90
  • 202
5

This is something you want to do with a microcontroller. Get one that uses very little power when sleeping, like a 16F PIC with the XLP (extra low power) feature.

After initialization, the micro goes to sleep. It is then woken by a particular edge on a pin. Make sure no current is required to keep the pin in the unasserted state. For example, if using a pullup, have the high to low transition wake the micro. That means during the long off time when power consumption matters, no current goes thru the pullup.

When the micro is woken, it produces the on-off-on-off sequence on one of its output pins, which is used to drive a relay. During that time, power consumption in the micro doesn't matter much since it will be swamped by any relay you can find. Even so, running a XLP PIC from its internal oscillator will take very little current.

When the micro finishes the on-off-on-off sequence, it goes back to sleep looking for the next wakeup event.

If the sleep time is long and even tiny amounts of current matter, use a BJT to turn on the relay, rather than a logic level FET. Both will work fine, but the BJT will likely have less leakage. Some FETs, particularly those that turn on with low gate voltage, can have surprisingly high leakage currents. This is just a general guideline, and you have to check the datasheets of any particular parts you consider using.

Olin Lathrop
  • 310,974
  • 36
  • 428
  • 915
0

As pointed out, your best option is an MCU. You didn't point out your level of experience in the area so I don't know if you have access to an MCU programmer or not.

If not, I would suggest looking into commercially available MCUs with pre-configured/installed boot loaders/programmers (i.e. Arduinos) that could easily achieve the task you are looking to complete.

James
  • 119
  • 2
  • Thanks for you answer but I think that an Arduino consumes too much power for what I want to do. – Pierre-Luc Dec 23 '17 at 03:52
  • Are you sure? Correct me if I'm wrong but I'm pretty sure the unit comes with a 2.1 mm power jack for running the unit off 9 V DC. Last I checked the specs (a while ago) the unit required about 250-500 mA to run about 10 LEDs which is on par with your particular application. – James Dec 23 '17 at 04:27