model lighthouse beacon light

Thread Starter

Scott G.

Joined Apr 14, 2015
4
Tried building LED circuit that ramps slowly, pulses, then fades repeatedly like a beacon light for the miniature lighthouse that I built.. I used lm2904,2n7000. Has anyone tried this lately, maybe I'm over my head here. Any help would be great.
 

Bernard

Joined Aug 7, 2008
5,784
Go back a few pages & review " lighthouse in a bottle", 4-7-15, & " Flash Speed" , 4-4-15.
Tomorrow I will have breadboarded my version of slow rise, fast fall, single 1 W LED.
 

djsfantasi

Joined Apr 11, 2010
9,163
Is it National Lighthouse month? I think this is the third thread on the topic.

I've seen it done with a pair of 555 timers; one to trigger the light half the time and the second to fade an LED in and then out. But I haven't used it, yet.
Throb2.PNG

Second, here is a thread posted by a gentleman with similar objectives (click on the link). Or here is another one (the search function of this forum is great!)

Third, have you considered using a microprocessor? Here is an Arduino sketch that fades an LED like a lighthouse beacon.
Code:
/*
* Throb
*
* A variation on Blink.  This sketch presents the concept of PWM or
* Pulse Width Modulation. It "throbs" the brightness of an LED, making it
* gradually brighter and dimmer.
*
* From Blink: We use pin 13 because,
* depending on your Arduino board, it has either a built-in LED
* or a built-in resistor so that you need only an LED.
*
*/

int ledPin = 9;                // LED connected to digital pin 13

// once this is working, reprogram with a cycle time of 100 to see more clearly how the throbbing works
int cycleTime = 30;             // the total duration of a PWM cycle
int cycleRepeat=3;              // repeat each cycle to slow PWM effect
int changeSpeed = 1;            // throb speed, or the number of milliseconds to change the onTimePerCycle per Cycle

boolean brightnessGoingUp = true;     // whether the brightness is going up or down
int onTimePerCycle = 0;      // the number of milliseconds to turn the LED within a cycle

void setup()                    // run once, when the sketch starts
{
  pinMode(ledPin, OUTPUT);      // sets the digital pin as output
}

void loop()                     // run over and over again
{

  for (int i=0;i<cycleRepeat;i++) {
    digitalWrite(ledPin, HIGH);        // sets the LED on
    delay(onTimePerCycle);             // wait for onTimePerCycle milliseconds
    digitalWrite(ledPin, LOW);         // sets the LED off
    delay(cycleTime - onTimePerCycle); // waitfor the rest of the complete cycle
  }   

  // Now adjust the brightness up or down depending the the current state
  if (brightnessGoingUp) { 
    onTimePerCycle += changeSpeed;
  }
  else {
    onTimePerCycle -= changeSpeed;
  } 

  // if we are at full brightness, where the LED is on for the complete cycle
  if (onTimePerCycle >= cycleTime) {
    brightnessGoingUp = false;       // switch mode to brightness going down
    onTimePerCycle = cycleTime;      // make sure brightness did not go over
  }
  // if we are at zero brightness, where the LED is not on at all in a cycle
  if (onTimePerCycle <= 0) {       
    brightnessGoingUp = true;      // switch mode to brightness going up
    onTimePerCycle = 0;            // make sure the onTime didn't go bellow zero
    delay(3000);   
  }

}
 

Bernard

Joined Aug 7, 2008
5,784
Here is first cut of a lighthouse light ckt; wanted to mimic reverse of RC discharge curve by building charge curve in segments to allow slow buildup, fast peak light then just RC discharge. Total cycle time set by U2 @ about 10 sec. U1 , segment time of about 1/2 sec. ORd first 3 times for slow rise, 4 th transition, & 5 th final rise.. Timing Rs set with R- substitution box. More time slots could be made available by using 4017 with 8 available time slots, 0 saved for reset, 9 for discharge. Pinout different from 4022.
 

Attachments

djsfantasi

Joined Apr 11, 2010
9,163
Here is first cut of a lighthouse light ckt; wanted to mimic reverse of RC discharge curve by building charge curve in segments to allow slow buildup, fast peak light then just RC discharge. Total cycle time set by U2 @ about 10 sec. U1 , segment time of about 1/2 sec. ORd first 3 times for slow rise, 4 th transition, & 5 th final rise.. Timing Rs set with R- substitution box. More time slots could be made available by using 4017 with 8 available time slots, 0 saved for reset, 9 for discharge. Pinout different from 4022.
Did you simulate this and maybe have an LTSpice circuit?
 

Thread Starter

Scott G.

Joined Apr 14, 2015
4
Hey.....Thanks everybody for your replies.. I have some 555's . I like the PWM idea too, a little over my head but I have some knowledge in this stuff. I just want to do something with all these parts I've had for years and years (since '83).. Thanks again-- good people.
 

Thread Starter

Scott G.

Joined Apr 14, 2015
4
How bright do you want, something like 20 mA, white LED? Power source ?
Yes, that's what I had on hand. I was trying to make a slow ramping intensity then quick strobe then ramp back down and repeat. Maybe I should just settle for ramping on and off type setup. Thanks for your help. I have a 12v LED driver circuit.
 

Bernard

Joined Aug 7, 2008
5,784
That is what i'm planning for my lighthouse ( 21 in tall, 1 W LED @ only 120 mA. Spent time on tower & not light today. ) Will breadboard yours tomorrow. With a 12 V supply , RC ramp up should look reasonable, ramp to about 10 mA then jump to 20 mA for 200 ms. Will use 555 & 2- 2N3904's.
 

Bernard

Joined Aug 7, 2008
5,784
This works on breadboard. The 555 up & down time can be individually selected by R1 & R2. Ckt is in 3 parts, 555, C3 charging with LED driver U2, & U3, pulser. so can be built & tested in sections.Ramping up to desired brightness controlled by R5 . When U1-3 goes low, neg. edge passes thru C2, is inverted by U3, collector then briefley pulls U2 base high giving bright pulse.. R8 keeps C3 from swamping the short pulse. Will try to answer any questions>baacon light 00000.png
 

Thread Starter

Scott G.

Joined Apr 14, 2015
4
This works on breadboard. The 555 up & down time can be individually selected by R1 & R2. Ckt is in 3 parts, 555, C3 charging with LED driver U2, & U3, pulser. so can be built & tested in sections.Ramping up to desired brightness controlled by R5 . When U1-3 goes low, neg. edge passes thru C2, is inverted by U3, collector then briefley pulls U2 base high giving bright pulse.. R8 keeps C3 from swamping the short pulse. Will try to answer any questions>View attachment 84442
Man, lot a stuff going on in that circuit. That looks exactly like what I was looking for. Can I use any common transistors within reason? I should have almost everything else. Wish I had more equipment (besides multi-meter and cheap breadboard) My lighthouse is only 10" tall. What kind of LED are you using? I do very little electronic stuff, obviously. Went to tech school 30 years ago in T.O. and never worked in this field so I'm kinda slow. Thanks very much for sending this and I'll take a stab at it (going to take a while) and let you know how it went, if your interested. Kinda cool getting help from 5300 km away. N.S.
 
Top