Jump to content
Electronics-Lab.com Community

Turning on +12V bulb with slow ramp opto device


Recommended Posts

I am designing a project where I would like to turn on a 12V bulb with a sensor, such as an opto-transistor or an LDR (or some other sensor).  I would like the bulb to ramp up in brightness at the beginning of the presentation, and ramp down in brightness at the end of the presentation (10 minutes after turning on to full brightness).  The ramping up and down time should be anywhere between 15-30 seconds.  I have thought of using a 555 timer or RC circuit, but I don't know if I could achieve the desired ramping time.  Can someone please help.

Link to comment
Share on other sites


Good decision, many people are scared of MCUs for some reason. It's possible to do this with a couple of 555 timers or some comparators but it won't be anywhere near as simple as with a MCU. The problem is the long 10 minute delay which isn't easy with a 555 timer because the RC values need to be high and large capacitors have poor tolerance and the leakage current becomes an issue.

I've never used PBasic before. I've dabbled a bit in MCUs a bit though using assembler and the simple PIC509. It shouldn't be hard to do. The lamp can be switched with a MOSFET or BJT depending on its power requirements. Google for some tutorials on PWM with PIC microcontrollers.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
  • Create New...