Hello there, Check out this question: http://raspberrypi.stackexchange.com/questions/24052/what-is-a-failproof-method-for-testing-a-gpio-pin on raspberry pi stack exchange that I have both asked and answered. I was having exactly the same problems you talk about, try this solution and come back to m...