Relay switch to detect power source

Click For Summary

Discussion Overview

The discussion revolves around the design of a power switching mechanism for a device that can operate on both a 9V battery and a 5V USB power source. Participants explore various methods to safely switch between these power sources without damaging the device, considering both relay and non-relay solutions.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant seeks a switch to detect and switch between a 9V battery and a 5V USB source, questioning potential damage when connecting to a computer while running on battery.
  • Another participant asks whether the 9V source is internal or external, suggesting that this distinction could influence the design choices.
  • Some participants propose using a Schottky diode in series with the USB power to protect the system, but note that this could drain the battery when USB is connected.
  • There is a suggestion to detect the USB power supply to switch a relay, with alternatives mentioned that do not require a relay if the device is low power.
  • One participant mentions using a voltage boost circuit to elevate the 5V to a higher voltage, allowing for automatic selection of the highest available voltage without a relay.
  • Another participant clarifies that the device operates at 3.6V, which leads to further discussion about the implications for voltage regulation and power sourcing.
  • There are suggestions to drop both the 5V and 9V to a common voltage using diodes, but concerns are raised about battery loading and the feasibility of boosting the USB voltage.
  • One participant proposes using AAA batteries as an alternative, but acknowledges the requirement to use a 9V alkaline battery.
  • A separate query about recommending a relay for a different application involving a 6V DC mini air pump motor is introduced, leading to a brief discussion about thread etiquette.

Areas of Agreement / Disagreement

Participants express multiple competing views on the best approach to switch power sources, with no consensus reached on a single solution. Various methods are proposed, but the discussion remains unresolved regarding the optimal design.

Contextual Notes

Participants mention specific components like voltage regulators and flyback circuits, but there is uncertainty about the commonality of the circuits used for both power sources. The discussion also highlights potential limitations in the proposed solutions, such as battery loading and the need for a relay.

vikum123
Messages
8
Reaction score
0
I need to find a switch that can detect whether it should go from 9v source or 5v Source. I am making a tool that has a battery power of 9v and it can also get powered from a USB device, which is 5V.
If the customer need to connect the tool to a computer while its running from the battery, will it harm the system? i was asked to use a relay switch. Please help.
 
Engineering news on Phys.org
Is the 9V an internal source (eg battery) or an external source (eg "wall wart")? I might make a difference as to what choices you'd make.
 
9V is coming from the Battery and 5V from USB
 
BTW. The solution can be as simple as a schottkey diode in series with the USB +5V, depending upon the exact configuration.
 
vikum123 said:
9V is coming from the Battery and 5V from USB
Ok, then the simple diode soln works (protects the usb), but has the disadvantage of continuing to drain the battery after the usb is connected. So no good. (that's the reason I needed to know how the 9V was sourced BTW).
 
You can certainly detect the USB powersupply and use it to switch a relay, but there still might be some simple "relayless" options.

If your device is fairly low power (should be so if running from USB) then you could consider a simple voltage boost circuit, say 5V to 9.8V, and then a simple diode solution would select the highest available voltage automatically (without a relay).

Will the circuit that normally runs on 9V run satisfactorily on 5V anyway?
 
Yes, its a Low power device. The system runs at 3.6V. I had to drop 5V to 3.6V and 9V to 3.6V.
 
So what you are suggesting is to boost the 5V to 9V, so then there won't be a system damage and i don't need to use a relay switch?
 
vikum123 said:
So what you are suggesting is to boost the 5V to 9V, so then there won't be a system damage and i don't need to use a relay switch?
No the 3.6V information adds new light to the problem. What circuitry are you using to drop the voltage, and is it common circuitry for both 5V and 9V? If not common then the solution is trivial, drop each to 4.3/4.4 volts and add series diodes (or 4.0/4.1 volts and add series Schotkey diodes).
 
Last edited:
  • #10
uart said:
If not common then the solution is trivial, drop each to 4.3/4.4 volts and add series diodes
Sorry scrub that idea, it doesn't necessarily remove the loading from the battery (or only partially removes it). Unless it's feasible to boost the USB +5 to slightly higher than the battery then you may need to use a relay.

One other idea. Have you thought about powering it from 3x AAA 1.5V cells? This makes the USB voltage slightly higher than the battery voltage and passive diode switching/selection really does become trivial.
 
  • #11
I am using a voltage regulator to drop 5V to 3.6V and a Flyback to drop 9v to 3.6V. So its not a common circuit for both.
 
  • #12
I was thinking 3xAAA batteries too. But the requirement is to use a 9V alkaline battery.
 
  • #13
vikum123 said:
I am using a voltage regulator to drop 5V to 3.6V and a Flyback to drop 9v to 3.6V. So its not a common circuit for both.

Well you could replace the 5V to 3.6 regulator with a crude voltage boost circuit (probably doesn't need to be very well regulated as I assume your flyback has some regulation) and then just use the one common power supply (your 9V to 3.6V flyback) to power the device. Diodes can automatically select the higher of the two voltages (ie the boosted usb pwr if it's there) as the input to the flyback.

Take a serious look at my previous comment about using AAA batteries though (if space permits), because it might be a much simpler solution (depending upon how loose are the requirement for the 3.6 volts though).
 
  • #14
vikum123 said:
I was thinking 3xAAA batteries too. But the requirement is to use a 9V alkaline battery.

OK missed that before (posting at the same time).
 
  • #15
Thank you for your help. I will try what you suggest.
 
  • #16
Can somebody recommend a relay for me?

Hi there,

I have to drive a 6V DC mini air pump motor for a portable blood pressure monitor from my PC. I am not sure about the current rating of this motor but I imagine it should be within 500 mA.

I want to drive the above motor using National instruments DAQ system (NI 9263). My DAQBook can give me +/- 10V supply. However, the current drive (output current load) of the DAQBook is only 1 mA.

Therefore, I will need a relay.

Can someone please suggest the right one for me? The smaller the better.

The many relays that I have seen online are bulky looking and have higher than 1 mA switching current requirements.

Thanks in advance!



Saif
 
  • #17
Hi Saifnobel
welcome to the PF forums
its not a good thing to hijack some one elses thread

mods would you like to move post to his own thread please :)

Dave
 
  • #18
uart said:
Well you could replace the 5V to 3.6 regulator with a crude voltage boost circuit (probably doesn't need to be very well regulated as I assume your flyback has some regulation) and then just use the one common power supply (your 9V to 3.6V flyback) to power the device. Diodes can automatically select the higher of the two voltages (ie the boosted usb pwr if it's there) as the input to the flyback.

Take a serious look at my previous comment about using AAA batteries though (if space permits), because it might be a much simpler solution (depending upon how loose are the requirement for the 3.6 volts though).

I tried to find a Crude voltage boost circuit but could not come up with that. Also i am wondering what do you mean by use a common power supply. the issue is, i have to use a USB to connect the device to the computer and the USB gives 5V. At the same time the system is running at 9V with a alkaline battery. I was asked to use a relay so then it will detect which power to use. Please Help me with this issue. Thank you
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
1K
  • · Replies 5 ·
Replies
5
Views
869
Replies
37
Views
7K
  • · Replies 31 ·
2
Replies
31
Views
5K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 22 ·
Replies
22
Views
2K
  • · Replies 9 ·
Replies
9
Views
4K
Replies
12
Views
3K
Replies
22
Views
3K