Connect with us

Only Power circuit when switch is depressed

Discussion in 'Power Electronics' started by BenG, Jun 22, 2020.

Scroll to continue with content
  1. BenG

    BenG

    4
    0
    May 3, 2017
    I'm having a bit of a brain fog here (and I'm a software guy by trade - this is just a home brew project).

    I've got a simple remote control unit (circuit diagram below). Basically; there's two switches, pressing each one sends a message over the air. It's powered by a 9V PP3 battery, regulated down to 5V. I need the remote control to last for serveral hours and even turnign the radio module off when it's not needed. I'm not gettign the battery life I want/need. The uC is an Arduino Nana and the switches I'm using are https://uk.rs-online.com/web/p/push-button-switches/9131706

    [​IMG]

    So in my next revision of the board, I only want the system/circuit to be powered when one of the buttons is being held. So my thought was I'd route the battery connection via each switch then somwhow workout which of the switches was being depressed. Sadly I've not got very far as my mind has gone blank on the logic for this (below is as far as I've got)
    [​IMG]

    I'm sure there ust be a simple way of achieving this (and I may even realise over a G+T tonight). But at the moment my mind is blank.
     
  2. BenG

    BenG

    4
    0
    May 3, 2017
  3. Harald Kapp

    Harald Kapp Moderator Moderator

    10,025
    2,138
    Nov 17, 2011
    A DPDT switch may work. The issue is whether the arduino and the radio chip "wake up" fast enough to send the command before you release the button.
    A better option may be to put the arduino and the radio into sleep mode when not in use. Configure the arduino such that an interrupt from an activated button "wakes up" the arduino. The sequence of events to handle in software would be along these lines:
    • After waking up, the arduino wakes up the radio
    • Arduino sends a command
    • Arduino puts radio to sleep
    • Arduino puts itself to sleep
    You should also use a very low power voltage regulator (your image is too small to identify which one you're using).
     
  4. Bluejets

    Bluejets

    4,054
    847
    Oct 5, 2014
    Using these with Arduino for all but the lowest power drain projects is asking for trouble.
    Use some decent AA cells at least during initial project tests.
    You can always revert back to the PP3 if you really must once you determine it is of sufficient capacity ( which is always questionable) especially when you quote "want it to last for several hours".
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-