s i s t e m a o p e r a c i o n a l m a g n u x l i n u x | ~/ · documentação · suporte · sobre |
Next
Previous
Contents
2. Electronic circuitA general diagram is like this:
The concept is that we take a controling voltage from the computer, which drives an electrically isolated circuit with a Relay or Triac.
You must choose a Relay circuit, if you have a coffee-machine greater than 200W. You can use a triac-based one if your coffee machine isn't high power. All circuits presented are tested, but the results are YOUR RESPONSIBILITY. If you have no experience with electronics you should NOT try these, otherwise you may get a bad one...
You should be very careful while experimenting with 220V, and using an appropriate fuse is advisable.
2.1 Driving voltage 0-5V from the computerHere is a simple example to get a voltage 0-5V from the parallel port of the computer.
Pin 1 is Strobe (inverse logic) Pins 2-9 is DATA BUS's signals, exactly what was written to the parallel port's latches with an OUTB command. Pin 10 is the acknowledge signal (ACK), controlled by you, so that you can produce an interrupt to the CPU. Pins 18-25 are short-circuited and this is the ground (GND).
In detail:
2.2 Controlling with a Relay
The simplest circuit that one can build is:
Connect Vcc with the same voltage as the relay type (usually 5 or 12V).
Obviously, the relay's specifications should be scaled for your
coffee-machine.
Barmen, tend to put the relay AFTER the transistor, at the emitter (E) pin instead of the collector (C) pin. This is bad practice because it biases the transistor badly, and may result in bad coffee :-). Diode 1N4002 is useful to protect the transistor from the relay's currents. If you don't use it the transistor will become dark and smelly...
2.3 Controlling with TRIAC #1If you only want a simple circuit, you can use Motorola's triac driver MOC301[012], together with a general purpose TRIAC like SC141D. This method has the advantage that you don't need an extra power supply.
For non-inductive loads, this is the circuitry:
If you are going to work with 220V, try to obtain a 3021. Inductive loads should be used in conjuction with bypass capacitors, see Motorola Application Note AN-780. Coffee-machines are mainly resistive loads and not inductive (like a motor), but who knows what yours is!
2.4 Controlling with TRIAC #2
Circuit description: The MC3032 is an optoisolator TRIAC driver. The 180-ohm resistor sets the current for the LED emitter in the optoisolator. Change the value of this resistor - if necessary - to get a reasonable current (e.g., 15 mA). Note that you cannot test this circuit without a load. The TRIAC will not switch unless connected to an AC voltage source, so you can't test it for simple switching without applying AC and a load. Note the 500V rating on the .01 cap.
Next Previous Contents |