i check the voltage coming out of the pin at 5v when it is on, but once i connect it to the relay and check voltage again its only 2v and my relay needs 5v to switch. the relay has already got a diode in parallel with the coil for protection so chip isn't fried.