HELP! Dimming lights with Stamp!
Ersatzzz
Posts: 2
Hi all,
I'm new to the Stamp module and I'm trying to find a way that I can program a flashlight battery to flicker in and out as well as dim in and out using the Stamp.· I can do the flickering in and out with the stamp, but I can't seem to dim the bulb unless it is a LED (which are too directional and not bright enough for my purposes).· I was also hoping to run the system off of a battery source-Does anyone know how I can dim incandescent bulbs electronically?· Or must I use a potentiometer?· If I use a potentiometer, how can I program it electroncially as opposed to a mechanical sequence?
Thanks!
I'm new to the Stamp module and I'm trying to find a way that I can program a flashlight battery to flicker in and out as well as dim in and out using the Stamp.· I can do the flickering in and out with the stamp, but I can't seem to dim the bulb unless it is a LED (which are too directional and not bright enough for my purposes).· I was also hoping to run the system off of a battery source-Does anyone know how I can dim incandescent bulbs electronically?· Or must I use a potentiometer?· If I use a potentiometer, how can I program it electroncially as opposed to a mechanical sequence?
Thanks!
Comments
Once you have a lightbulb that can be turned on and off with a Stamp PIN, then you need to write a program that will dim it. There are a number of ways to do this, but the one easy way to start would be to use the PWM command to send a rapid series of "on/off's" to the PIN -- the ratio of "off" to "on" time will give you different light intensities.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
http://forums.parallax.com/showthread.php?p=611887
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support