Bug / Audio Reciever

Hi, new to the community, I was wondering about the feasibility of using an UNO with Ethernet shield to transmit audio from a Mic down a network for say pick up by a pc? And the same in reverse, receive an audio stream over the network and play it (presumably through an audio shield)?

I appreciate the low processing power but I imagine if it was simply analog rather than an actual stream and it was interpreted at both ends (rather than having to decode/buffer etc)?

What do you think?

The analog sample rate isn't great but should be good enough for voice. You can set the A/D converter to free-run (take sample after sample) and interrupt when each sample is ready. Using that to fill alternating buffers and signal the Ethernet code when a buffer is ready to send.

You should probably use UDP because otherwise any lost packet will cause traffic to stop until the packet gets re-transmitted.

Can an Arduino/Ethernet interface handle a rate of 8000 bytes per second?

Pete

el_supremo:
Can an Arduino/Ethernet interface handle a rate of 8000 bytes per second?

The slowest Ethernet is a 10 megabits per second, very roughly 1 million bytes per second so 8000 bytes would be roughly an 0.8% load.

The Arduino executes 16 million instruction cycles per second so that would be 2000 cycles per byte.

I don't expect that speed be a problem.

The slowest Ethernet is a 10 megabits per second

Yep, but I meant the interface between the Arduino and the ethernet shield. I've never used one so I'm wondering how the data is transferred between the two and how fast it can be done.

Pete

SPI hardware on the ATmega can run as fast as 1/2 the processor clock (SPI_CLOCK_DIV2): 8 megabits per second. I don't know what the maximum speed of the Ethernet module is.

Thanks.

Pete