jumper2high
Full Member level 3
hcpl-7510 schematic
I am building an electronic (PIC controlled) timer for my car turn indicators (blinkers). The problem is, unlike some more modern cars, mine had an old timed relay that was 'before' anything else, and it only had three pins - two for it's power and one output. So, it was Relay -> Switch Behind Wheel -> Bulbs. The relay would only work when there is a load on it (it would only tick when the bulbs are connected).
The new one uses a transistor to create the timed signal, which means there is absolutely NO aural indication of the blinkers being on. For this, I would need to test whether the current IS flowing through the power transistor, and if it is - put some output onto a small speaker.
Because the relay was always powered, the MCU will also always be powered (when the key is inserted), so I can't have it just buzzing all the time. I need to sense when it's actually running (ie: when the switch lever is moved out of the neutral position).
My original idea was a simple shunt resistor, but I wasn't sure how would the 12V voltage on the transistor work with the 5V maximum of the MCU's ADC or Comparator.
N.B. The room for this circuit is quite limited, I need to use a minimal amount of components, and SMD isn't an option.
I am building an electronic (PIC controlled) timer for my car turn indicators (blinkers). The problem is, unlike some more modern cars, mine had an old timed relay that was 'before' anything else, and it only had three pins - two for it's power and one output. So, it was Relay -> Switch Behind Wheel -> Bulbs. The relay would only work when there is a load on it (it would only tick when the bulbs are connected).
The new one uses a transistor to create the timed signal, which means there is absolutely NO aural indication of the blinkers being on. For this, I would need to test whether the current IS flowing through the power transistor, and if it is - put some output onto a small speaker.
Because the relay was always powered, the MCU will also always be powered (when the key is inserted), so I can't have it just buzzing all the time. I need to sense when it's actually running (ie: when the switch lever is moved out of the neutral position).
My original idea was a simple shunt resistor, but I wasn't sure how would the 12V voltage on the transistor work with the 5V maximum of the MCU's ADC or Comparator.
N.B. The room for this circuit is quite limited, I need to use a minimal amount of components, and SMD isn't an option.