Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-27-2003, 12:06 AM   #1
Registered: Feb 2003
Location: Australia
Distribution: Slackware 7.1
Posts: 45

Rep: Reputation: 15
Making coffee with your Linux box

(probably posted before)

I have got a HOWTO that gives you a vague description to how to make coffee with your Linux box by attaching a coffe maker to your paralell port. Has anyone actually done this?

I have made a simple game that uses 8 LED's attached to the paralell port (very difficult), so there is no reason why someone couldn't do this. I am thinking about making a mini security system for my room. Maing noises when someone walks through the door, just to keep me amused and annoyed for a few days.
Old 02-27-2003, 02:12 AM   #2
Registered: Feb 2003
Location: Helsingborg, Sweden
Distribution: Slackware
Posts: 52

Rep: Reputation: 16
I guess you'd need some kind of relay that will pop the switch when it gets the signal from parallell? Get someone to make a bit of software for it and grab the patent for the cable..

With the right marketing.. Who knows?
Old 02-27-2003, 04:45 AM   #3
Can O' Beans
Registered: Nov 2002
Posts: 31

Rep: Reputation: 15
Have you read the RFC2324 ("Hyper Text Coffee Pot Control Protocol (HTCPCP/1.0)")?

Might help
Old 02-27-2003, 07:01 AM   #4
Registered: Aug 2002
Posts: 18,207

Rep: Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543
FYI: linux home automation projects
Old 02-27-2003, 10:04 AM   #5
LQ Guru
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
You are all crazy LOL!!!
I want a cofee pot on my parallel port too!!!
Old 02-27-2003, 10:25 AM   #6
Senior Member
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
LOL! i guess you'd have to write the code for that program in JAVA
Old 02-27-2003, 11:23 AM   #7
LQ Addict
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403

Rep: Reputation: 45 my fiancee is gonna hate this thread...

ideas floating in my head....several microphones...voice activated appliances....mmmmmmmmmm coffee from linux...

I smell a new hobby!! hehehe

Too bad my electronics skills sucks at the moment...
Old 02-28-2003, 12:11 AM   #8
Registered: Feb 2003
Location: Australia
Distribution: Slackware 7.1
Posts: 45

Original Poster
Rep: Reputation: 15
I would have thought more people would have seen that HOWTO. It comes with Slackware (

The schematic is quite simple (this is done for memory):

o +9v
) || 9v Relay
) || ---------------------------------------o
) || ^
) || |____________________________o
pin 2 lpt1 /
<------------\ NPN Transistor (BC548 will do)

If you can't see this, it is just a 9v relay (with a 250v contact rating if you are in Australia, otherwise 120v in America) connected to a transistor. The transistor must be attached to the negative so there isn't much bias on the transistor. When '1' is sent to the paralell port, it will turn on the transistor and therefore the relay, which will turn on the coffee machine.

I think a method for finding the paralell port is this (in BASIC so it's easy to understand, check the QBasic help files if you don't understand)

a = (PEEK(1032) + 256 * PEEK (1033))

DEF SEG = 0 must be there otherwise it won't detect the port at all, it will just return a strange number.

All instructions are in the HOWTO / FAQ section of the Slackware distribution.
Old 02-28-2003, 12:11 AM   #9
Registered: Feb 2003
Location: Australia
Distribution: Slackware 7.1
Posts: 45

Original Poster
Rep: Reputation: 15
OK then, that messed up
Old 02-28-2003, 01:57 AM   #10
Registered: Feb 2002
Location: Jerusalem, Israel
Distribution: Fedora Core 3
Posts: 154

Rep: Reputation: 30
very cool. you could use a old 386 without the HD
for the task, run off linux on a floppy. that way you have
a dedicated machine that dosn't burn power.
Old 07-29-2003, 03:22 PM   #11
LQ Newbie
Registered: Aug 2001
Location: New Jersey
Distribution: Red Hat
Posts: 6

Rep: Reputation: 0
I have a problem with my DSL line going up and down and sometimes I need to power cycle the DSL box. So I built a curcuit and tested it on my laptop by compiling a little c program called lptout which really just does an outb to the parallel port. The thing works perfectly on the laptop, but when I put it on a desktop and run lptout, I get a segmentation fault. I need help in figuring out why this doesn't work.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Making a linux box router with only one network card srinivasarajui Linux - Networking 12 09-28-2005 11:03 AM
Making my linux box a wireless router? jon_k Linux - Wireless Networking 1 12-26-2004 04:48 PM
making, checking secure linux box archish Linux - Security 8 05-11-2004 02:29 AM
Making Linux box a router eonblue4309 Linux - Networking 4 03-18-2004 05:17 PM
Linux controlling non-computer machines? Like a coffee machine or TV?! leeman_s Linux - General 8 01-27-2003 08:10 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration