Hi everyone,
I want to design a simple circuit to detect voltage levels in a vehicle power line and generate a digital ON/OFF signal based on a threshold.
Requirement:
I want to design a simple circuit to detect voltage levels in a vehicle power line and generate a digital ON/OFF signal based on a threshold.
Requirement:
- Input voltage range: ~12V to 14.5V
- Condition:
- Above ~14V → Output HIGH (Ignition ON)
- Below ~14V → Output LOW (Ignition OFF)
- Use a comparator like LM393
- Power the circuit directly from the same 12–14V line
- Use a voltage divider to scale input
- Generate a clean digital output
- What is the best way to set an accurate threshold around 14V using LM393?
- How should I design the voltage divider for both input and reference?
- Do I need hysteresis to avoid flickering due to voltage fluctuations?
- Is LM393 the best choice, or is there a better comparator for automotive use?
- Any protection components recommended for long-term reliability (noise, spikes, etc.)?
- Simple circuit
- Reliable switching
- Stable output (no flicker)
- Works directly from vehicle supply



