Without the highpass and lowpass filters, you could get away with one transistor (or paired transistors) to turn the LED on.
Electronics and filters and things, help please!
- Little stoned kiwi
- Baaaaaa!

- Posts: 4598
- Joined: Mon Oct 27, 2003 6:05 am 0
- Location: Christchurch
Re: Electronics and filters and things, help please!
Exactly what you've got, but with the capacitor on the base side of the first transistor. That would need a resistor first, the resistor would then limit the charge time of the capacitor and dictate the capacitor size...basically a low pass filter.
It would take out the frequency from the signal, just leaving the signal. Then you amplify the signal when there is one.
Without the highpass and lowpass filters, you could get away with one transistor (or paired transistors) to turn the LED on.
Without the highpass and lowpass filters, you could get away with one transistor (or paired transistors) to turn the LED on.
If they think you're crude, go technical; if they think you're technical, go crude. I'm a very technical boy.
Re: Electronics and filters and things, help please!
Hmm I tried working out the values for that, but I don't think I've got it working anywhere near right. Could you draw it and give me a hint where to start working out the values?
-- maybe I can use a 555 for this somehow instead...
-- maybe I can use a 555 for this somehow instead...
- Little stoned kiwi
- Baaaaaa!

- Posts: 4598
- Joined: Mon Oct 27, 2003 6:05 am 0
- Location: Christchurch
Re: Electronics and filters and things, help please!
I mocked something up in LTSpice. There's not enough power for those sorts of shenanigans and then trying to turn a transistor on. With the priority to draw as little current as possible and protecting the source from feedback it's probably best to go through a transistor ASAP.
That was with 1000Hz lowpass RC filter, 1.6MOhm and 100pF.
.
That was with 1000Hz lowpass RC filter, 1.6MOhm and 100pF.
.
If they think you're crude, go technical; if they think you're technical, go crude. I'm a very technical boy.
- Little stoned kiwi
- Baaaaaa!

- Posts: 4598
- Joined: Mon Oct 27, 2003 6:05 am 0
- Location: Christchurch
Re: Electronics and filters and things, help please!

It takes 10ms (I decreased R2 to 1600, at 16000 it took 50ms) for the capacitor to charge up, then gives me a little over 7mA across the diode. R2+C1 at 1600+10uF make a filter with a cutoff of 10Hz.
This is with a consistent square wave as the input at 10kHz (I think). Different frequencies out of tune with the capacitor creates a small amount of noise or pulsing that's more obvious at 100Hz.
If they think you're crude, go technical; if they think you're technical, go crude. I'm a very technical boy.
Re: Electronics and filters and things, help please!
Thanks
I'll look into that more closely later.
Though I'm going to make a note here for myself that any microcontroller with at least 8 gpio pins would be able to do this with a single part for about 50p (if I have a compatible programmer between my pickit and my eeprom cooker).
Though I'm going to make a note here for myself that any microcontroller with at least 8 gpio pins would be able to do this with a single part for about 50p (if I have a compatible programmer between my pickit and my eeprom cooker).
