Hello All,
After trying with different sensor, and switches, I have found out that the reason for the strange behaviour, or mal functioning of the code, it is due to the excess of current supply.
I have notice that when you have the "finger" on any of the conections, the systems works!!, but if you remove the finger, starts to go nuts again.
So at the moment i am supplying from 3v = 2xAA bateries. I will put a LM317 to allow only 250ma to go through.
See if that helps.
I will post my results.
Best regards.
And thank you all for your help.
Bookmarks