PiDigital wrote:Can anyone tell me how can I conrol a relay just high or low a pin in python please help me Thanks.
From a python standpoint its no different than blinking an LED; there are lots of samples on-line, and lots of samples on this site (look around, if you don't see anything to help I'll send you something).
The main difference is that an inductive load (relay) needs a special driver circuit to protect the PI, and to handle the higher current... you can't just through a relay on your GPIO pins!
The ULN2803 chip (like the one on the Gertboard) is a great relay driver-- can handle up to 30v and up to 500ma on each of its channels. So, the PI drives the ULN2803 (in python it works just like driving an LED) and the ULN2803 handles the current; plus it has special clamping circuitry that protects the PI from the kick-back (back-EMF) from the coil on the relay.