On my actual project i just have a digital pin left so i decided to search just for a Voltage->Digital 0/1 solution. Otherwise i need another MCU to send the results from the A/D converter over I2C (No UART left) which leads to cable lenght problems etc.
Probably not the same chip because the 4049UBE is not buffered, does not have the 'B' series output circuit. The 4049 is not a good good choice for slow moving waveforms or linear operation because it tends to draw too much current in those circuits.
Careful, hex inverters from different suppliers can have very different characteristics. I designed a gadget years back that used a CD4069 in quasi-analogue mode, and found that only Motorola parts had the right thresholds for it to work.
Well, I bought (long overdue) a HANTEK 6022BE scope - its a canny piece of kit - and I've done some testing.
The problem is that what you are seeking is a detector that will give a positive and reliable digital result - but the field strength you are working with can be very unpredictable. The circuit above is extremely sensitive - so picks up mains and all sorts of other EM.
Now that I can see what its doing I'm playing around with values to make the indication more reliable
I think the problem with any circuit is that mains signal is "everywhere." If you make the circuit too sensitive it will always detect something and if you make it less sensitive you may not detect even if the wanted signal is present. Setting the thresholds may be very tricky.
I'm really pleased with my new Hantek 'scope
Revised diagram, tested (and proved working_) as best I can in my office with mains everywhere.
Needed a LOT less gain than I had anticipated.
I breadboarded the schema. It pulses with or without antenna, with AC near the antenna i can see with analog read a difference in the waveform, i can detect when i touch the antenna, i can't detect AC. The digital signal is nice but i'm not able to build a reliabale detector. Do you have a hint or it's just me?