Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ [1] 2 3 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: serial/parallel/usb control of appliances< Next Oldest | Next Newest >
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Feb. 04 2008,01:50 QUOTE

I've been googling for sites that might be able to help me understand what is needed to create interfaces to appliances that can be controlled from a personal computer, but so far have come up with little results.

Can someone point me in a direction where I might get started? This isn't something I have any knowledge about at all at this time...I know nothing about how com ports work, and nothing about creatng controllers. I'm just hoping to begin learning about these things but so far have found nothing but commercial products.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Feb. 04 2008,07:18 QUOTE

Depends very much on what you mean with "appliances", and which port you will use.

Anyway, have a look at the Coffee-howto at tldp.org, and the self-built Cir transmittor for serial port at lirc.org. The lirc driver also has source code for using it.

I haven't attempted any of this, but I believe you just output a stream to the data pins, using kernel functions..


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
u2musicmike Offline





Group: Members
Posts: 149
Joined: April 2006
Posted: Feb. 04 2008,22:08 QUOTE

I haven't tried this but maybe using a microcontroller might work for you.  Say you wrote a program that sent a hex number to the com port to turn on a light or coffee maker.  A piece of hardware would have to take the hex number and activate a relay:  

AVR microcontroller

Getting a number out to the com port can be done with an echo command and redirection:



Code Sample
echo "27" >> /dev/tty?
Back to top
Profile PM 
lucky13 Offline





Group: Members
Posts: 1478
Joined: Feb. 2007
Posted: Feb. 05 2008,00:02 QUOTE

Not sure if anything in the FAQ or wiki (I see a little bit about serial ports there) or docs in the link below will be useful to you, but I came across this the other day. It's a perl/cpan script to automate, well, a house. Maybe search through the code and see how its author does it?

http://misterhouse.sourceforge.net/


--------------
"It felt kind of like having a pitbull terrier on my rear end."
-- meo (copyright(c)2008, all rights reserved)
Back to top
Profile PM WEB 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Feb. 05 2008,02:03 QUOTE

Quote
Depends very much on what you mean with "appliances", and which port you will use.
I'm sure details depend on these factors, but I'm not really talking about specific projects at this point. I just can't seem to find anywhere to even start. All I'm interested in at this time is *possibly* working toward a very simple project, something like lighting an external LED by clicking something...a starting point from where I can decide if I even want to go further with it. It's mainly the basic concept that I find interesting, but I'm not sure whether it's something I want to get into.

Thanks for the links, I'll check those out soon.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
12 replies since Feb. 04 2008,01:50 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ [1] 2 3 >/
reply to topic new topic new poll
Quick Reply: serial/parallel/usb control of appliances

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code