Turning on a Light Bulb
bushy
Posts: 3
Hi,
I'm trying to make an photoresistor turn on a lamp/bulb. I'm working with the BASIC Stamp Activity Kit so the photoresistor shouldn't be a problem, but I don't know how to turn the lamp on and off aside from using a servo to flip the switch. I'm a total newb and I don't know the proper terminology to search for this.
Any help would be much appreciated.
Thanks!
I'm trying to make an photoresistor turn on a lamp/bulb. I'm working with the BASIC Stamp Activity Kit so the photoresistor shouldn't be a problem, but I don't know how to turn the lamp on and off aside from using a servo to flip the switch. I'm a total newb and I don't know the proper terminology to search for this.
Any help would be much appreciated.
Thanks!
Comments
Please provide some details about the lamp…is it AC or DC? How many volts/amps/watts? All of this depends on how you would go about controlling it.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
I·would reccomend a solid state relay for switching an AC light.
Jonathan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.madlabs.info - Home of the Hydrogen Fuel Cell Robot
Also, what would I use if it was DC power?
· Solid State Relays are made to switch either AC or DC, but the same one won't work interchangably with both AC and DC.· SSRs use different types of internal electronics dependant on whether they are designed to switch AC or DC, so you need to make an appropriate selection based on what you plan to switch.
· For switching an AC light bulb, an SSR based on "Triac" technology is what you'd need, while for switching a DC load, you'd be using one based on "mosfet" technology. When you look in an electronics catalog for SSRs, you'll see in the description whether it's for AC or DC.
· As for dangers to the board, there's always danger when you have 120VAC where an errant figer can come in contact, plus the danger of working with unfamilliar components and the inherent·increased possibility of miswiring them.·The basic stamp doesn't respond well to 120vac.
·· Darlene
Post Edited (Geekgirl) : 10/2/2008 11:36:57 AM GMT
You can get authentic X10 gear on ebay for cheap, thier website is way over priced
ULN2803A relay driver chip (Darlington array), Mouser 757-ULN2803APG. This is $0.89 from Mouser, and it will drive eight relays from eight Stamp outputs.
Song Chuan 12v SPNO relay, 12v coil, contacts rated 25A. This will switch a heckuva lot more than 60 watts, can be driven directly from the ULN2803A, and I'm holding one in my hand as I write. Makes it hard to type. Mouser 893-852W1AFC112VDC, $3.16 each. You'll need one for each light.
You can power all the relays through the ULN2803A from a 12vdc wall wart. The coil current is about 90 ma, so even the wimpiest wall wart can handle several of them, and most will handle as many as you have outputs from a Stamp.
Pay no attention to the people who urge you to spend big bucks for solid state relays. The cheapest solid state relays are over ten bucks, and are no better. At all! They have their appropriate uses, in explosive atmospheres for example, but your applicatiion is not among the appropriate uses for solid state relays. Mechanical relays are among the most reliable hardware on the planet, right up there with ball-peen hammers.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i
I think You have enough Idea's from the other post's on this thread...But like allanlane5 said Be very carefull of Your wireing when working w/ high voltage "120vAC" This can hurt or possiable kill You!!!!!i if You made contact w/ this voltage "120vAC"... If at any instance the "120vAC" makes its way to the $stamp$ it will most certaintly let all of the factory smoke out.And like allanlane5 said "snap crackel pop".....
______use caution_________________________$WMc%_______________________fire extinguisher in hand_____
"How do you turn on a light bulb?"
"Stroke it gently, and tell it you love it."
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i