logo elektroda
logo elektroda
X
logo elektroda

Wireless digital audio transmission.

piotr_go 44583 59
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • Wireless digital audio transmission.
    I used Nordic Semiconductor's NRF24L01 as wireless communication systems, they operate in the 2.4GHz band. Audio is compressed to MPEG1 layer3 format.

    Transmitter:
    It was built on the AT91SAM7S64 microcontroller.
    As the transmission speed of NRF24L01 is about 400kbps (with acknowledgment and error correction), the LAME MP3 Encoder was used as the audio encoder. Bitrate set to 320kbps. Compression is done on the computer. As an output module for PulseAudio has been written, all sounds from the system can be redirected to the wireless speakers. You can also adjust the buffering delay.
    The transmitter is seen by the system as a serial port / dev / ttyUSBx
    Wireless digital audio transmission. Wireless digital audio transmission.

    Receiver:
    Procek is AT91SAM7S512 (decoder requires a lot of ram), Helix decoder, I used TDA1543 as DAC.
    Wireless digital audio transmission.

    Scheme:
    Wireless digital audio transmission.

    Range:
    Works through the wall, diagonally across the load-bearing wall between the floors, with the appropriate antenna arrangement.




    Here is a test version of the transmitter in micro size:



    A reprogrammed Logitech Unifying receiver was used.
    Unfortunately, I didn't manage to squeeze high speed out of it, so its bitrate is only 128kbps. The range is also correspondingly smaller.

    You might ask "Why not A2DP?".
    I know from my own experience that A2DP is not very stable, LAME also has better sound quality.




    ================================================== ==
    ================== UPDATE 31.08.2010 =====================
    ================================================== ==

    Photos of the newer version with the DAC CS4344:
    Wireless digital audio transmission. Wireless digital audio transmission.

    Here is a comparison of the dimensions with the older one with an external DAC:
    Wireless digital audio transmission.

    The transmitter is a reprogrammed Logitech Unifying with an antenna added:
    Wireless digital audio transmission. Wireless digital audio transmission.

    PulseAudio screen:
    Wireless digital audio transmission.

    The newer version has the ability to measure the supply voltage.
    Power consumption:
    ~ 60mA during playback
    ~ 14mA while waiting for transmission
    Available on the connector are: I / O, PWMy, RS, I2C, LEDs, USB.
    Instead of the audio jack, you can mount the standard 4x goldpin.

    Receiver diagram:
    Wireless digital audio transmission.

    Cool? Ranking DIY
    About Author
    piotr_go
    DIY electronics designer
    Offline 
    piotr_go wrote 2835 posts with rating 3187, helped 91 times. Been with us since 2003 year.
  • ADVERTISEMENT
  • #2 8262977
    mateusz77892
    Level 17  
    I'm impressed :D I like :D full professionalism! Well done :) and what range of such a gem ?? how many meters in the open space ??
  • #3 8262996
    piotr_go
    DIY electronics designer
    9m, I still did not check.
    I also checked whether it would break through 2 floors. When I set the antennas properly, it worked.
  • #4 8263070
    piotrva
    VIP Meritorious for electroda.pl
    and what are the costs of implementation?
  • #5 8263100
    piotr_go
    DIY electronics designer
    Prototype? Don't even ask. With a few pieces, it will probably be PLN 150-200 per set.
  • ADVERTISEMENT
  • #6 8263133
    KJ
    Level 31  
    I've always wanted to build something like this. I will ask why so expensive in the sense of what raises the price the most? and is it planned to go into production? ;) Because I would like to buy such a set and built the receiver into my future amplifier.
  • ADVERTISEMENT
  • #7 8263180
    piotr_go
    DIY electronics designer
    What drives the price up the most is the fact that you have to buy items in several stores. To get some of them you have to do some research. So far I have not been able to find a suitable RP-SMA connector, I had to use the standard + pin to put it inside.
    Sale of kits? I'll think about it.
  • #8 8263187
    KJ
    Level 31  
    I am most interested in the set with a micro transmitter ;) Is it possible to replace the SMA connector with a fixed antenna or with another type of this connector - in the case of a device, such as an amplifier, the best option would be the cable screwed to the housing - if it is to work within one room, it's probably not a problem. How is the programming of these ARMs? You need a programmer for ~ several hundred zlotys or you can do it yourself? Honestly, I don't sit in ARM at all.
  • #9 8263212
    Mat_91
    Level 25  
    You write that the whole thing works on 2.4GHz, hmm interesting ... It does not interfere with Wifi? For example, I would like to put it in an amplifier, and I keep a router on the amplifier, how will it work together?
  • #10 8263220
    piotr_go
    DIY electronics designer
    Still regarding this price. I recommend looking for the price of the "SAM7-nRF24-64" Olimex kit. Similar structure, but no signals from Prock are available.
    A transmitter would be fine.

    Micro transmitter, I do not recommend, too slow transmission. You would have to design something of your own not on nRF24LU1 +

    @ Mat_91
    You can program any 2MHz channel in the 2.4-2.5GHz range.
  • #11 8263243
    Mat_91
    Level 25  
    piotr_go wrote:

    You can program any 2MHz channel in the 2.4-2.5GHz range.


    I missed that in the description:] Thanks.
  • #12 8263249
    KJ
    Level 31  
    I can buy AT91SAM7S64B-AU for PLN 23, AT91SAM7S512 for PLN 40 ... design and making tiles for this is probably not a bigger problem, unless there is a top-down order to use double-sided boards. The problem is these NRF24L01 bones, there is nowhere to buy from what I can see. Apart from the housing, which is quite difficult to solder, there is probably no problem with printing, even though it is 2.4G.
  • #13 8263260
    Mat_91
    Level 25  
    NRF24L01 is available from farnell.com
  • #14 8263270
    piotr_go
    DIY electronics designer
    On one-sided it is better not to do this, the manufacturer of the NRF does not recommend it.

    Added after 5 [minutes]:

    @ Mat_91
    And they sell single pieces to ordinary mortals without foreign transfers?
  • #15 8263295
    Mat_91
    Level 25  
    piotr_go you still write that you have not found the right sma connector and that you have been up to something with the pin inside. Whether the connector you are looking for is not something like that Link ?? Is there something I don't understand?

    As for the sale in farnell, yes, they sell to mere mortals, payment is made by credit card with the possibility of making foreign internet transactions as far as I know.
  • #16 8263297
    KJ
    Level 31  
    They do not sell, but I had the opportunity to buy from them through a friend. Payment by credit card only and charged in British pounds.
  • #17 8263324
    piotr_go
    DIY electronics designer
    @ Mat_91
    These are a bit too big, it needs something edge-on, in SparkFun they have but I am not happy to pay several times more for a transfer and shipping as for connectors.
  • #18 8263970
    pawelr98
    Level 39  
    I could use a nice gadget to make sound 4.0 with computer speakers and you used my favorite movie for the presentation
  • #19 8264468
    arcichowski
    Level 12  
    A very interesting structure. Have you made any radio measurements? (network analyzer, spectrum analyzer) How did you choose the elements in the radio path?
  • #20 8264569
    DooBLER
    Level 12  
    Wow nice design.
    I wonder how latency is there. Can't see lag in videos between audio and video? After all, it has to go through these compressions and decoders. I mean when you don't regulate the delay.
  • #22 8264643
    piotr_go
    DIY electronics designer
    I did not take radio measurements, I have nothing. Elements according to PDF.
    The latency can be set freely in the output module so that the delay cannot be seen.
  • #23 8264765
    Uszol 1990
    Level 29  
    Hello
    really interesting design, congratulations on the idea and performance, not so long ago I was looking for something similar, but I was wondering if you could play audio via bluetooth?
    many laptops have built-in bluetooth, which would significantly reduce costs.
    greetings, Marek
  • #24 8264971
    avatar
    Level 36  
    Uszol 1990 wrote:
    Hello
    really interesting design, congratulations on the idea and performance, not so long ago I was looking for something similar, but I was wondering if you could play audio via bluetooth?
    many laptops have built-in bluetooth, which would significantly reduce costs.
    greetings, Marek

    You can, in the first post, the author writes about a2dp - this is sending via bluetooth, ready modules cost about PLN 70
  • ADVERTISEMENT
  • #25 8265315
    master_pablo
    Level 16  
    Elegant design!

    I think that if it does not use an antenna on a PCB, the NRF24L1 + should work well even on a single-layer board.

    What problems did you have with A2DP? Just dropping calls? I don't quite understand the statement that LAME has a better sound. Isn't it that the same data is sent to it irrespective of the selected audio playback device (e.g. a decoded MP3 stream)?

    How did you reprogram this Logitech Unifying receiver to work as a transmitter?
  • #26 8265434
    piotr_go
    DIY electronics designer
    Quote:
    This PCB has a ground plane on the bottom layer.
    Additionally, there are ground areas on the component side of the board to ensure sufficient grounding of
    critical components. A large number of via holes connect the top layer ground areas to the bottom layer
    ground plane.

    From PDF

    In A2DP, it breaks off the sound, sometimes for a few seconds, sometimes permanently, the frequency of breaks depends on the device to which the connection is made. Surprisingly, with just one phone, I was able to get sound without any clipping.
    A2DP uses the SBC codec. http://soundexpert.org/encoders-320-kbps
    I also have a Nokia headset that only works with one "receiver" on the computer, I connected several others to the same computer and there was no sound at all :(

    I made a usb programmer for atmega8 for reprogramming. Programming after SPI, description in PDF from nRF24LU1 +
  • #27 8267216
    master_pablo
    Level 16  
    I understand that this Logitech receiver only contains the nRF24LU1 + chip :) . A very clever dice must be admitted!

    What's the deal with the development environment for this built-in '51? Did you use SDCC for compilation?
  • #28 8267356
    piotr_go
    DIY electronics designer
    Wireless digital audio transmission. Wireless digital audio transmission.
    As the SDK was under Keila, I wrote soft in it. It was possible to register and extend the demo to 4KB of the program for free.
  • #29 8267997
    wilkolaski
    Level 18  
    I have a question.
    Why are there so many 100nf capacitors connected in the diagram for the legs (7,59,18,45,58) and (8,64,12,24,54)?
  • #30 8268055
    piotr_go
    DIY electronics designer
    Power filtration.

Topic summary

The discussion revolves around a wireless digital audio transmission system utilizing Nordic Semiconductor's NRF24L01 module operating in the 2.4GHz band. The transmitter is based on the AT91SAM7S64 microcontroller, employing the LAME MP3 Encoder for audio compression at a bitrate of 320kbps. The system allows for audio redirection to wireless speakers via PulseAudio, with adjustable buffering delay. The receiver uses the AT91SAM7S512 microcontroller and the Helix decoder, with TDA1543 as the DAC. Users inquire about range, costs, potential production, and compatibility with existing devices, while the author shares insights on component sourcing, programming challenges, and latency management. The conversation also touches on alternatives like Bluetooth A2DP and the feasibility of using different microcontrollers for similar applications.
Summary generated by the language model.
ADVERTISEMENT