I am not formally trained in electronics.....
I am designing a circuit to trigger a PIC using the brake light circuit on my motorcycle. The electrical system is really noisy, and the stray voltages are causing false inputs. I have measured the voltage levels at about 250-350 mv, and the frequency seems to be about 300 khz. I currently use a voltage divider on the 12v brake light lead to reduce the voltage to TTL levels. I have tried a low pass filter which seemed to work, but it introduced a lag in switching to the off state.
I am thinking about an opto coupler, and ideally I would like to have the optical side connect directly to the 12v feed. I also need the the circuit to switch on at about 10v. On the collector-emitter side, I am planning to use the PICs weak pullup, so current should be low at about 20ma.
So my 2 questions are:
1 - if the opto coupler is a good idea and if so, what component would you recommend.
2 - Any other ideas to do the conversion that would be reliable.
Thanks
I am designing a circuit to trigger a PIC using the brake light circuit on my motorcycle. The electrical system is really noisy, and the stray voltages are causing false inputs. I have measured the voltage levels at about 250-350 mv, and the frequency seems to be about 300 khz. I currently use a voltage divider on the 12v brake light lead to reduce the voltage to TTL levels. I have tried a low pass filter which seemed to work, but it introduced a lag in switching to the off state.
I am thinking about an opto coupler, and ideally I would like to have the optical side connect directly to the 12v feed. I also need the the circuit to switch on at about 10v. On the collector-emitter side, I am planning to use the PICs weak pullup, so current should be low at about 20ma.
So my 2 questions are:
1 - if the opto coupler is a good idea and if so, what component would you recommend.
2 - Any other ideas to do the conversion that would be reliable.
Thanks