[mdlug] Relay controller
David Wood
dwood169 at gmail.com
Sun Dec 9 22:06:45 EST 2012
I was looking into some home automation and wanted a way to do it that was
all hardwired. I found
http://www.relaypros.com/Relay/Device/R220PL_ZETH-ME#.UMVQVVstvhI this.
You can use telnet to change the state of the relays. Its pricey but I
like that it is hardwired rather then using power lines or wireless.
The CPOI pins on the raspi board can be controlled very easily with bash
scripts:
# Set up GPIO 4 and set to output
echo "4" > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio4/direction
# Write output
echo "1" > /sys/class/gpio/gpio4/value
Check out http://elinux.org/RPi_Low-level_peripherals for how to do it in
different lang which is where I got the commands above from.
On Sat, Dec 8, 2012 at 11:07 PM, Michael ORourke <mrorourke at earthlink.net>wrote:
> Dan,
>
> Good suggestion. Initially I had planned on using an old laptop (because
> I have one handy), but a raspberry pi board would probably work fine too.
> For my project, I need it to monitor 2 temperature sensors and control 2
> relays. I guess I'll do some more research on interfacing relays and
> sensors with the raspberry pi.
>
> Thanks,
> Mike
>
> -----Original Message-----
> >From: Dan Pritts <danno at dogcheese.net>
> >Sent: Dec 8, 2012 12:45 PM
> >To: MDLUG's Main discussion list <mdlug at mdlug.org>
> >Subject: Re: [mdlug] Relay controller
> >
> >catching up on email and found this. One thought: Arduino or raspberry
> pi's GPIO ports. Depending what you're doing, raspi in particular might be
> a reasonable option...
> >
> >On Nov 26, 2012, at 12:50 PM, Michael ORourke <mrorourke at earthlink.net>
> wrote:
> >
> >> I'm looking for a relay controller interface for an old laptop, could
> be USB or serial port, and some Linux based software to interface with it.
> >> I thought about getting some X10 appliance modules, but then I would
> need a X10 firecracker (serial interface) and a X10 wireless transceiver.
> Searching on Ebay, I found all the X10 parts for around $60. But then I
> did some more searching and found several sellers that have just the relay
> boards. The project I'm thinking of would probably be well suited for a
> dual relay board.
> >> Does anyone have any recommendations or experience with interfacing
> relay boards to a PC/Laptop?
> >>
> >> -Mike
> >> _______________________________________________
> >> mdlug mailing list
> >> mdlug at mdlug.org
> >> http://mdlug.org/mailman/listinfo/mdlug
> >
> >_______________________________________________
> >mdlug mailing list
> >mdlug at mdlug.org
> >http://mdlug.org/mailman/listinfo/mdlug
>
> _______________________________________________
> mdlug mailing list
> mdlug at mdlug.org
> http://mdlug.org/mailman/listinfo/mdlug
>
More information about the mdlug
mailing list