Howdy everyone. I am stuck on a project and would really appreciate some help.
The project consists of 2 arduinos communicating with eachother using sound at 40kHz.
The setup: I have 2 Arduino Nanos. One is a reciever, one is transmitter. Each has an identical 40kHz piezo transducer attached. The transmitting circuit utilizes a transistor to power the piezo, and the recieving one has an analog amplifying and digitizing circuit. (Please see attached diagrams.) These are slightly modified versions that I got from Eduard Zola http://www.zolalab.com.br/eletronica_projetos/ultrasonic_talk.php
I am having trouble getting a clear back and forth, until i decided to carry out some tests, having the arduinos share a button, ground, and a digital pin (See circuit 2).
In this case, the signal transmission worke perfectly, where the Rx was able to determine length of signal independent on the range (This is unerwater btw).
The signal wasa definetely from sound, not shorting, as when I took the 2 transducers out of water, signal transmission ceased, as it should.
Can someone please explain WHY the system works when the arduinos share buttons but not when they are separate?? Is it a grounding issue? I am completely lost.
Thanks
Circuit2: