Ok in the spirit of this forum lets go to improve the "new" bit
electricity has 3 essential parameters - voltage - The pressure you drive the electrons round with- Units of measurement = volts, current - the rate at which the electrons flow- units of measurement = Amps and resistance the resistance to that flow - units of measurement = Ohms.
These are all related such that if you increase resistance you reduce the flow (current), If you increase the pressure (voltage) you increase the flow rate (current).
Ohms law related these three things together.
The relay will need a certain amount of current (flow) for it to work. This is a functions of its resistance and the voltage supplied. (ohms Law).
As the Picaxe can only supply up to 20 milliamps of current (thats 20/1000's of an amp. although this will turn on an LED it isn't enough for your relay. the relay will try to draw as much current as it needs and MAY kill the picaxe output - It burns out the transistor switch that drives the output in the IC.
This is why you may well put a resistor in series with an output to limit the ammount of current that can flow such as when you use an LED.
Because the Voltage/Current and resistance are related you can run an LED on different voltages if you put a suitable resistor in the circuit to reduce the current flow to a safe level.
The current that flows through a series resistor also flows through the LED - a difficult concept to get your head around at first.
Edited by - rickharris on 30/04/2006 19:51:42