model lighthouse beacon light

Discussion in 'The Projects Forum' started by Scott G., Apr 14, 2015.

  1. Scott G.

    Thread Starter New Member

    Apr 14, 2015
    4
    0
    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.
     
  2. Bernard

    AAC Fanatic!

    Aug 7, 2008
    4,176
    397
    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.
     
  3. djsfantasi

    AAC Fanatic!

    Apr 11, 2010
    2,811
    834
    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 (Text):
    1.  
    2. /*
    3. * Throb
    4. *
    5. * A variation on Blink.  This sketch presents the concept of PWM or
    6. * Pulse Width Modulation. It "throbs" the brightness of an LED, making it
    7. * gradually brighter and dimmer.
    8. *
    9. * From Blink: We use pin 13 because,
    10. * depending on your Arduino board, it has either a built-in LED
    11. * or a built-in resistor so that you need only an LED.
    12. *
    13. */
    14.  
    15. int ledPin = 9;                // LED connected to digital pin 13
    16.  
    17. // once this is working, reprogram with a cycle time of 100 to see more clearly how the throbbing works
    18. int cycleTime = 30;             // the total duration of a PWM cycle
    19. int cycleRepeat=3;              // repeat each cycle to slow PWM effect
    20. int changeSpeed = 1;            // throb speed, or the number of milliseconds to change the onTimePerCycle per Cycle
    21.  
    22. boolean brightnessGoingUp = true;     // whether the brightness is going up or down
    23. int onTimePerCycle = 0;      // the number of milliseconds to turn the LED within a cycle
    24.  
    25. void setup()                    // run once, when the sketch starts
    26. {
    27.   pinMode(ledPin, OUTPUT);      // sets the digital pin as output
    28. }
    29.  
    30. void loop()                     // run over and over again
    31. {
    32.  
    33.   for (int i=0;i<cycleRepeat;i++) {
    34.     digitalWrite(ledPin, HIGH);        // sets the LED on
    35.     delay(onTimePerCycle);             // wait for onTimePerCycle milliseconds
    36.     digitalWrite(ledPin, LOW);         // sets the LED off
    37.     delay(cycleTime - onTimePerCycle); // waitfor the rest of the complete cycle
    38.   }  
    39.  
    40.   // Now adjust the brightness up or down depending the the current state
    41.   if (brightnessGoingUp) {
    42.     onTimePerCycle += changeSpeed;
    43.   }
    44.   else {
    45.     onTimePerCycle -= changeSpeed;
    46.   }
    47.  
    48.   // if we are at full brightness, where the LED is on for the complete cycle
    49.   if (onTimePerCycle >= cycleTime) {
    50.     brightnessGoingUp = false;       // switch mode to brightness going down
    51.     onTimePerCycle = cycleTime;      // make sure brightness did not go over
    52.   }
    53.   // if we are at zero brightness, where the LED is not on at all in a cycle
    54.   if (onTimePerCycle <= 0) {      
    55.     brightnessGoingUp = true;      // switch mode to brightness going up
    56.     onTimePerCycle = 0;            // make sure the onTime didn't go bellow zero
    57.     delay(3000);  
    58.   }
    59.  
    60. }
    61.  
    62.  
    63.  
     
    Bernard likes this.
  4. Bernard

    AAC Fanatic!

    Aug 7, 2008
    4,176
    397
    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.
     
  5. djsfantasi

    AAC Fanatic!

    Apr 11, 2010
    2,811
    834
    Did you simulate this and maybe have an LTSpice circuit?
     
  6. Bernard

    AAC Fanatic!

    Aug 7, 2008
    4,176
    397
    Solderless breadboard & hand full of parts. I wanted to see the actual LED light.
     
  7. Scott G.

    Thread Starter New Member

    Apr 14, 2015
    4
    0
    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.
     
  8. Bernard

    AAC Fanatic!

    Aug 7, 2008
    4,176
    397
    How bright do you want, something like 20 mA, white LED? Power source ?
     
  9. Scott G.

    Thread Starter New Member

    Apr 14, 2015
    4
    0
    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.
     
  10. Bernard

    AAC Fanatic!

    Aug 7, 2008
    4,176
    397
    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.
     
  11. Bernard

    AAC Fanatic!

    Aug 7, 2008
    4,176
    397
    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
     
  12. Scott G.

    Thread Starter New Member

    Apr 14, 2015
    4
    0
    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.
     
Loading...