Hey guys!
At first I would like to greet everyone on the forum, as this is my first post.
I found some anomaly during the work on my project, impossible for me to understand.
I was making my furnace controller project. I was playing with connecting of RTC to I2C bus, but then I got idea to check work of square wave generator output attached to the clock.
I prepared the software, using library bounce.h and function of it- fallingEdge().
Before even I connected the SQW to the digital output, amazing thing happened.
I don't even had to plug the the wire, clock was working and measuring the rising edges!
What was even more suprising, rising edges are couting when I touch the output, with any wire. Even unplugged. Or even when I put that wire close to output. Or even, when instead of wire I put my hand close to output. Without touching it.
When I take my hand away, it just stops.
There is around (hardly measuring) 12 rising edges per second. Anyway, 10 rising edges are visible faster then second.
Can somebody light for me that issue? Thank you very much for any help. I'm very fresh at Arduino. This destroyed my mind.