Chat
Welcome to Flux
Treat Flux like your intern. Tell it what you'd like to build and it'll get to work. You can also ask it questions, brainstorm ideas, and teach it your preferences. Learn More
Ready.
Reviews
Inspect
Cold Amethyst Point-of-view gun
Controls
Properties
Availability & Pricing
| Distributor | Qty 1 | |
|---|---|---|
| Arrow | $0.25–$0.97 | |
| Digi-Key | $1.31–$4.95 | |
| LCSC | $0.97 | |
| Mouser | $1.11–$11,203.17 | |
| Verical | $0.25–$1.64 | |
Assets
Welcome 👋
Flux helps you build PCBs faster with an AI teammate!
Create your account to collaborate, stay updated, fork your own version, and get instant answers from our AI agent.
tiger1987p
copilot
tiger1987p
copilot
tiger1987p
copilot
- A voltage comparator, like an LM339.
- A relay or a MOSFET to switch between the battery and DC source.
- A voltage divider to set a reference voltage of $10V$.
- Resistors for the voltage divider.
- R1, R2, and Q1.
Circuit Design:-
Voltage Divider: Use two resistors to create a voltage divider that provides a reference voltage of $10V$ for the comparator.
-
Comparator:
- Connect the non-inverting input of the comparator to the DC input.
- Connect the inverting input to the $10V$ reference voltage.
- When the DC input voltage is higher than $10V$, the comparator output will be high, indicating that DC is the preferred source.
-
Switching Logic:
- Use the comparator's output to control a relay or MOSFET to switch the load between the battery and the DC source.
- If the comparator output is high (i.e., DC $>$ $10V$), the switch connects the load to the DC source.
- If the comparator output is low (i.e., DC $\leq$ $10V$), the switch connects the load to the battery.
Example Circuit:Image
tiger1987p
copilot
- Comparator (e.g., LM339): To compare DC input with a 10V reference.
- Voltage Divider: To create a 10V reference using resistors.
- Relay or MOSFET: To switch the output load between sources.
- LED Load: 12V, 180W LED lamp.
- 12V Battery: Power source.
- 12V DC Input: Secondary power source.
Circuit Diagram:Image
- The comparator (LM339) compares the DC input voltage to the 10V reference voltage.
- The Voltage Divider sets a stable 10V reference.
- If the DC input is greater than 10V, the comparator outputs a high signal that activates the relay or MOSFET, switching the LED lamp to the DC source.
- If the DC input is 10V or less, the relay defaults to the battery source.
Additional Considerations: