PDA

View Full Version : Lights on, Lights off



Casey Gross
11-25-2009, 05:35 AM
I want to use the bs2 to turn my house lights on and off what kind of relay can i use to do this?

PJ Allen
11-25-2009, 07:00 AM
I'd go with X10 modules.· Safe and sane and the Stamp has an XOUT command just for it.
www.x10.com (http://www.x10.com)
http://forums.parallax.com/showthread.php?p=787497
·

Mike2545
11-25-2009, 07:58 AM
I have written a VB 2008 program that will load on/off times to a uC for X-10 control the code has been transferred to a PIC because it allows 16 units to operate. with a little tweaking, you might be able to use a BS2 with program slots and make it fit.

the DS1340 clock module from Graivtech is used to keep time and the PSC05 is the x-10 power line interface used.

I have included a text file of Pic Basic Pro code that will show you the pins used for both and you will need to put the text files in your documents so the VB can find them.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Mike2545

This message sent to you on 100% recycled electrons.

JD
11-25-2009, 01:19 PM
Casey,

It is possible to also use a lighting controller from such companies as EFX-TEK; they have a good lighting board and really easy to use with Parallax products (FC-4).·They have a few styles and options you could use to control some lighting with the BASIC Stamp or other as the controller.

EFX-TEK:
www.efx-tek.com (http://www.efx-tek.com)

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Respectfully,


Joshua Donelson
www.parallax.com (http://www.parallax.com)

sam_sam_sam
11-27-2009, 09:25 PM
Casey,

It is possible to also use a lighting controller from such companies as EFX-TEK; they have a good lighting board and really easy to use with Parallax products (FC-4).·They have a few styles and options you could use to control some lighting with the BASIC Stamp or other as the controller.

EFX-TEK:
www.efx-tek.com (http://www.efx-tek.com/)

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Respectfully,

Joshua Donelson


Casey,

I have use (FC-4) and is very to use and work very well it is a little price but worth it in what you can do with it
I have even modify one of the board to work on 12··Volts· AC Please note that by do this you void the warranty
on the (FC-4) board

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
··Thanks for any·http://forums.parallax.com/images/smilies/idea.gif·that you may have and all of your time finding them http://forums.parallax.com/images/smilies/smile.gif

·
·
·
·
Sam

sam_sam_sam
11-27-2009, 09:31 PM
· This is what you can do with (FC-4)

It has four Channels and each channel is adj the the light level to fully on to fully off and any thing in between in 255 steps

they also have (RC4) which is a soild state relay board which is very nice to work with as well

I hope this helps

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
··Thanks for any·http://forums.parallax.com/images/smilies/idea.gif·that you may have and all of your time finding them http://forums.parallax.com/images/smilies/smile.gif

·
·
·
·
Sam

Post Edited (sam_sam_sam) : 11/27/2009 1:36:15 PM GMT

erco
11-30-2009, 10:49 AM
ONLY IF you know how to safely work with 120 VAC and just want simple on/off lamp switching, you can use one of many 5V relays. You need one SPST relay per light circuit, but you can also use SPDT or DPDT relays which are more plentiful. You'll also·need a 5V supply that can power the stamp plus all your relay coils, and you'll need to use one driver transistor per relay. See the FAQ sticky thread for a sample relay driver circuit.

You do need to be sure your relay contacts can carry the current required. You should measure the AC current required by your lighting circuit with an AC ammeter or a Kill-a-Watt device such as http://cgi.ebay.com/P3-KILL-A-WATT-LCD-ELECTRICITY-MONITOR-METER-P4400-NEW_W0QQitemZ200411928151QQcmdZViewItemQQptZLH_Def aultDomain_0?hash=item2ea97b5657

Definitely fuse ANYTHING you build that will carry AC power.

If you don't know how to use AC power safely, this would not be a good time to try to learn.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"If you build it, they will come."

Casey Gross
12-03-2009, 10:17 AM
Thanks everyone for the help!!!