I am doing project on acoustic communication. Two arduino mega 2560 modules are considered. Input is audio. First I have to develop transmitter with FSK modulator. Using 555 timer I have developed modulator by considering squre wave (101010...) from function generator at 40kHz and 60kHz for bits 0 and 1 respectively. Now the problem is to get the binary data from audio input to microphone.
I have connected microphone module to arduino. But don't know how to get binary data at the serial port so that I can connect it to FSK modulator.
Please help me in this regard.