5
\$\begingroup\$

I have a hobby project that's been on the backburner for about 3 years now. It's very simple - just a solar-powered oscillator hooked up to a speaker, that changes frequency in response to the level of sunlight.

This is the circuit I'm using right now. It's mostly designed by Wilf Rigter from the BEAM circuits mailing list:

schematic

The thing is I'd like to invert the frequency/sunlight response. At the moment in dark light it's a quiet tone with low frequency, and in bright light it's a loud tone with high frequency. Instead, I'd like to have a high-frequency tone in low light and a low-frequency tone/pulse train in bright light.

I'm really up against my knowledge limit in understanding this circuit as it is. What I do understand is that the 10nF capacitor charges through the 22k resistor until its voltage reaches the Vbe threshold for the NPN transistor on the bottom left, at which point the transistor opens and the capacitor discharges through the speaker, making a click. Then something happens to reset the system and it starts again. With more light the capacitor charges faster and so the tone has a higher pitch.

Inverting the frequency/light level response, though, is beyond me. I think I'd need to somehow slow down the charging of the timing capacitor here as the light increases by diverting the current somehow, and I suspect that I'd want to be storing this diverted current in another storage capacitor to be discharged through the speaker, instead of discharging the timing capacitor through the speaker. Actually building this into a schematic, though, is too difficult for me right now.

Any help much appreciated!

\$\endgroup\$
3
  • 1
    \$\begingroup\$ How is it solar powered? Is one of the resistors actually a photoresistor? Or are Vcc and ground hooked to a solar cell? \$\endgroup\$
    – pingswept
    Commented Sep 13, 2010 at 16:36
  • 1
    \$\begingroup\$ The latter -- Vcc and ground are hooked to the solar cell. \$\endgroup\$
    – damian
    Commented Sep 14, 2010 at 10:17
  • \$\begingroup\$ This is taking voltage from the cell, the larger it is the slower the system switches states, this causes lower frequency. I will take a shot in a simulator and see if I can swap it up from you. I am mostly EM, so I have not played with BJTs in a while and have forgotten how to quickly hotswap without a simulation double check. \$\endgroup\$
    – Kortuk
    Commented Sep 14, 2010 at 19:49

1 Answer 1

1
\$\begingroup\$

I was able to simulate this circuit and play around with it a bit. The relationship between the voltage of the solar cell, the 330k resistor and the 10nF cap sets the operating frequency of the circuit. The difficulty in inverting this relationship is that the condition in which you want highest frequency (low light) also corresponds to the condition where VCC is lowest. Unless you can introduce an additional voltage supply independent of the solar cell, I don't see how you can achieve what you want. Sorry...

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.