but as my Mum said, 'there is more than one way to skin a cat'.
On the good ship Meridian, we have to show a white light while at anchor. There is a 10W incandescent at the top of the mast, but nearly 60' up in the air isn't where most people are looking.
Anyway, long ago I made one to hang lower down using the tower LED globe sold by Jaycar. It has 5 legs plus 3 on the end., runs on 12V naturally. I also made an automatic switch to turn it off and on at daylight/evening. Mind you, the miniscule power used is a drop in the ocean compared with the 120 - 150 Ah/day. (Still only 1800W, so pretty green household for 2 people). The main incentive for turning it off was to increased the longevity.
The auto switch was simply a PN100 with the LED in the collector, 2.7K resistor to base with the CdS cell base to earth. I couldn't get it to turn off completely but that was OK.
The other day it stopped and in testing with direct 12V I noticed it was noticeably brighter with 12V direct, without the transistor. So I thought 'I know, I'll use a Picaxe'. The '08M can read the ADC from the CdS, and turn on a relay at exactly the value I want. I then looked up the Jaycar catalogue for the specs on 5V and 12V reed relays. The 5v will hang in til 3.5 and the 12v down to 8.4V. I then thought, 'Hang on, the transistor setup will work with that'.
So with resistor wheel in place on the base of the BC548, and with the CdS cell between base and ground, I twirled it around until the relay closed and opened with a slight change in ambient light. Turned out to be 22k.
Now it turns on the relay which gives the LED the full 12V. It is quite sensitive, moving my outstretched fingers over the cell produces a noticable flicker.
All of this was constructed on a small piece of veroboard about 1.5" by .5". The relay probably cost the same as an '08, but I didn't have to worry about sockets, voltage regulation, etc, etc.
The moral is that you don't *have* to use a chip for simple tasks.
paulr
On the good ship Meridian, we have to show a white light while at anchor. There is a 10W incandescent at the top of the mast, but nearly 60' up in the air isn't where most people are looking.
Anyway, long ago I made one to hang lower down using the tower LED globe sold by Jaycar. It has 5 legs plus 3 on the end., runs on 12V naturally. I also made an automatic switch to turn it off and on at daylight/evening. Mind you, the miniscule power used is a drop in the ocean compared with the 120 - 150 Ah/day. (Still only 1800W, so pretty green household for 2 people). The main incentive for turning it off was to increased the longevity.
The auto switch was simply a PN100 with the LED in the collector, 2.7K resistor to base with the CdS cell base to earth. I couldn't get it to turn off completely but that was OK.
The other day it stopped and in testing with direct 12V I noticed it was noticeably brighter with 12V direct, without the transistor. So I thought 'I know, I'll use a Picaxe'. The '08M can read the ADC from the CdS, and turn on a relay at exactly the value I want. I then looked up the Jaycar catalogue for the specs on 5V and 12V reed relays. The 5v will hang in til 3.5 and the 12v down to 8.4V. I then thought, 'Hang on, the transistor setup will work with that'.
So with resistor wheel in place on the base of the BC548, and with the CdS cell between base and ground, I twirled it around until the relay closed and opened with a slight change in ambient light. Turned out to be 22k.
Now it turns on the relay which gives the LED the full 12V. It is quite sensitive, moving my outstretched fingers over the cell produces a noticable flicker.
All of this was constructed on a small piece of veroboard about 1.5" by .5". The relay probably cost the same as an '08, but I didn't have to worry about sockets, voltage regulation, etc, etc.
The moral is that you don't *have* to use a chip for simple tasks.
paulr