Is there a simpler solution for highside current sensing here
Description: The loads consist of two or more solenoids connected in parallel, sharing a 12V supply. Each solenoid is individually switched to ground through the vehicle's ECU. The objective is to detect when any one of the circuits closes, ensuring that only one solenoid is activated at a time. This detection should be achieved using a single PIC digital input or a comparator, minimizing wiring due to the challenging access to the vehicle's wiring, which is often buried. The common 12V rail is easily accessible. It is essential not to disturb the ground planes or add significant load. Although high-side current sense ICs were considered, they are not available in DIP packages, and SOT packages are undesirable due to the need for hand-soldering on stripboard. The requirement is simply to determine if current is flowing, rather than measuring the amount of current.
To implement the circuit for detecting solenoid activation, a simple approach using a resistor and a transistor can be utilized. The circuit design involves connecting the solenoids in parallel to a common 12V supply, with each solenoid's ground connection routed through a normally open switch controlled by the ECU.
For detection, a resistor can be placed in series with the solenoid, connected to the ground. The voltage across this resistor will indicate whether the solenoid is activated. When the solenoid is energized, current flows through the resistor, creating a voltage drop that can be monitored. This voltage can be fed into a PIC microcontroller's digital input pin.
To ensure that only one solenoid operates at a time, the ECU should be programmed to sequentially activate each solenoid, allowing sufficient time for the PIC to read the voltage level and determine if the corresponding solenoid is active. The microcontroller can be configured with a simple threshold detection algorithm to ascertain if the voltage exceeds a predefined level, indicating solenoid activation.
If a comparator is preferred for detection, it can be configured to compare the voltage across the resistor with a reference voltage. When the solenoid is activated, the voltage will exceed the reference level, triggering the comparator output, which can then be read by the PIC microcontroller.
This design minimizes additional load on the system and avoids interference with the ground planes, fulfilling the requirement for a straightforward and effective detection mechanism while accommodating the constraints of the automotive environment.The loads (2 or more solenoids in parallel) share a 12V supply and are individually switched to ground through the car`s ECU. I need to detect when any one of the circuits close (only one closes at any one time), using a single PIC digital in (or comparator if I must), and with the minimum of wiring (the car`s wiring is buried and a pain to get to although the common 12V rail is easy to get to).
I can`t disturb the ground plane(s) and can`t add much load. I have looked at highside current sense ICs but can`t find them in DIP and don`t want to use SOT if I can help it as I will be hand-soldering to stripboard. Anyway, I don`t need to know how much current is flowing, just whether it is or not.
How to interface an LED with Microchip's PIC microcontroller. Connecting LEDs to a PIC microcontroller is fundamental for microcontroller development. This guide presents a simple embedded program for the PIC 16F877A to interface LEDs, making it suitable for beginners interested...
The 12F629/675 PICs are compact 8-pin DIP devices suitable for various applications. They feature an internal oscillator, a comparator, an analog-to-digital converter, and timers. The Microchip PICkit1 serves as an effective USB programmer. PicBasic Pro (PBP) is a user-friendly package...
When the comparator's output transitions from low to high, the rising edge of the output pulse, differentiated by the Cl/Rl chain, activates Ql. This action blocks the comparator via its strobing input and maintains its output state for a duration...
Most battery chargers lack provisions for current and voltage regulation. The step-down voltage is primarily utilized for charging purposes.
Many battery chargers operate on a straightforward principle of reducing the input voltage to a level suitable for charging a battery. However,...
This is a simple COM port-based Microchip PIC microcontroller programmer, which is based on the JDM programmer. The entire programmer is constructed using commonly available components, allowing the programming of various microcontrollers using this schematic. To program a specific microcontroller,...
This is a JENS MADSEN project I've built to program my PIC and EEPROM (16xXXX AND 12CXXX AND 24CXX). I use it with IC-Prog; it is little, simple to build, cheap, and gives few bugs. More: When I built it,...
The PIC/Generation 1 electronics lack any form of current limiting. They depend on the resistance of the stepper motors to maintain the current below 2 Amps at 12 Volts. Unfortunately, the more commonly available stepper motors of the size used...
The program loaded in the 12F675 device which has no osccal value will force a pulse on GPIO.4 and it will make a loop while increasing the osccal value internally. GPIO.5 will send the current osccal value used for each...
The AD8205 can be utilized to create a high-side current sensing circuit with a low-side switch. In this configuration, an inductive load (such as a solenoid) and a resistive shunt are incorporated. The resistive shunt is positioned on the high...
We use cookies to enhance your experience, analyze traffic, and (if you allow) serve personalized ads.
By clicking Accept All, you agree to our use of cookies.
Learn more