Introduction: BOSEBerry Private investigator Internet Radio

I love listening to the radio set! I was victimisation a DAB radio in my house, but found the reception was a trifle patchy and the profound kept breaking up, so I decided to progress my own internet radio. I have a strong wireless fidelity signal around my menage and the digital broadcast should mean that I was able to play high fidelity sound.

I didn't want to use a smart speaker. I wanted to switch the tuner on, be fit to change channels and then switch it off, so it behaved retributory like a tralatitious receiving set just Eastern Samoa it was using the internet for its connectivity, I could listen to radio channels from anywhere in the world.

I managed to find a second hand out BOSE SoundDock serial publication II model on ebay (be £5.33) simply information technology was listed as not working. This wasn't a problem as I would remove all the internal circuitry to add my own.

Supplies

A Bose SoundDock (I used the series II model)

Razzing Pi Zero Wireless with perpendicular angle GPIO header pins

DAC decoder PCM5102A

Amplifier PAM8403

VS1838B infrared receiver

HX1838 remote

Drum jack 2.1mm socket

Copulative wire (I used wirewrap)

3D printing process facilities

Spool of PLA printing machine filament

Acrylic paint lacquer spray

Tooth enamel paint

M3 nuts

M3 x 8mm attic head hex ram down motorcar screws

IR receiver LED

Veroboard & header pins

Step 1: Disassemble the Building block and Clean It

The SoundDock is sluttish to demand apart. Remove the humble first and disconnect the wiring loom. The forepart ipod docking sections uses Torx T6 spline screws.

Remove the front wire mesh panel. This is a friction fit that uses foam to grip the side of the case. I managed to untie information technology with a hook typewrite pick so information technology lifted out easily. I have seen instructions to remove these by tortuous a mint in the slot between the wire meshing and the encase, merely I didn't want to mark the case with the edge of the coin.

The front panel acts as a heatsink for the original amplifier and tail be removed with screws. This is then lifted out and the speakers and unexciting ribbon cable can embody disconnected.

If your SoundDock is an quondam social unit, information technology has probably picked up a lot of dust and grime. With all the electrical components removed, you can right away give it a good cleaned in sensual soapy water. I used a 'sticker remover' spray to clean ascending the mess left by a mark down. Remember not to use whatsoever abrasive cleaning materials, so you can preserve the high comment cultivation on the lawsuit.

Step 2: 3D Print the Components

I premeditated a cradle that would mount to the inside of the alloy heatsink thusly that I could confiscate the Raspberry Pi, DAC decoder and amplifier components in a sui generis compact unit.

The cradle comes in two parts, the lower part was printed with supports as thither is a hole required in the English of the unit, thusly the micro SD card can be changed without having to disassemble the whole building block. These written supports can easily be removed using a metal choice and a pair of thin-nosed pliers. The two parts of the cradle can be joined together with M3 machine screws and nuts that are held wrapped in the design.

A 40-pin suitable weight head was soldered onto the Raspberry Pi (RPi).

The RPi is decorated on some printed circuit board spacers which are and so drilled out so the machine screws pass direct easily. This is also done carefully along the Raspberry Pi corner mounting holes.

On the meridian of the cradle you will see the DAC PCM5102A with soldered quadrant headers, a PAM amplifier and a replicate words of headers mounted on some veroboard to play a power supply motorbus bar. The solid of this assembly prat embody attached to the alloy heat sink empanel that attaches to the front of the SoundDock using the avant-garde screws.

The front line name plate was designed to follow the radius of curve of the case. I victimized embossed letters and it was printed out accurately, but I didn't think the BOSEBerry Shamus name was particularly visible unless information technology caught the light in the correct way. I definite to paint the embossed letters to give them more visible. I sealed the photographic print with a clear acrylic fiber lacquer spray to fill some voids in the print Earth's surface. This should ensure that the close layer of bicolour enamel paint didn't bleed through the printed layers of the art object. The enamel key was built dormy in various coats. Whilst painting, some capilliary action did draw the paint ahead to the come up resulting in some smudges, but once it was dry, I was fit to clean it up with some blind drunk and dry paper and and then minimal brain dysfunction a final coat of hyaloid lacquer to equate the glossy finish of the unit.

Step 3: Configure the Private detective

    The following instructions are the steps you need to cristal through in order to configure the tuner software.

    1. Download Buster Lite from https://World Wide Web.raspberrypi.org/downloads/raspbian/Extract the zipped file – you will have a .img file.
    2. Format the micro SD card using SD card formatter https://www.sdcard.org/downloads/formatter/
    3. Use Win32 Disk Imager https://sourceforge.net income/projects/win32diskimager/ to write Raspbian Buster onto the SD card (which takes about 10 minutes)
    4. Attach the Pi to a Monitor and keyboard and login with username = pi, word = raspberry
    5. Type Sudo raspi-config into a console window.
    6. Menu option 8 – update this instrument to latest version.
    7. Carte du jour option 1 – change the user password and make a note of it.
    8. Bill of fare option 2 – network options
      1. (N2) Enter WiFi details for your home network
      2. (N1) Change hostname to radiopi
    9. Carte du jour option 3 – Enable Boot options (B1) and (B2) Soothe auto login
    10. Menu selection 5 – Interfacing options (P2) enable SSH
    11. Menu option 7 – Advanced (A1) Expand filesystem
    12. Sudo disposed-get update
    13. Sudo apt-get upgrade (15 minutes)
    14. Sudo rpi-update (to update microcode)
    15. RPiZ can right away be used 'headless' and then you fundament SSH into IT to configure the rest of the settings. Log on to your router through a browser (something ilk 192.168.1.254) and find the ip computer address of your radiopi. Download Putty and economic consumption information technology to log on to the Pi using the ip direct you have but found. The username=pi and use your new password.
    16. sudo apt-get establis lirc # set up LIRC (enter y to continue)
    17. sudo nano /boot/config.txt
    18. uncomment and transfer PIN --> dtoverlay=gpio-Inland Revenue,gpio_pin=23 #pivot 16 along the board
    19. comment out #dtparam=audio=on
    20. dtoverlay=hifiberry-dac
    21. comment out RPi4 options dtoverlay=vc4-fkms-v3d and max_framebuffers=2
    22. ctrl X then Enroll then 'Y' to save
    23. candle /etc/lirc
    24. ls to list the files in the directory
    25. sudo cp lirc_options.conf.dist lirc_options.conf
    26. sudo cp lircd.conf.dist lircd.conf
    27. sudo nano lirc_options.conf
    28. driver = nonremittal
    29. device = /dev/lirc0
    30. ctrl X then Enter and so 'Y' to save
    31. sudo nano /etc/lirc/lircd.conf.d/HX1838.conf
    32. Copy in the definitions for HX1838.conf from text file (ctrl-insert to paste into the console)
    33. ctrl X past Enter upon then 'Y' to save
    34. cd /etc/lirc/lircd.conf.d
    35. ls to see files
    36. sudo Md devinput.lircd.conf devinput.lircd.conf.dist (to handicap it)
    37. sudo nano /etc/lirc/lircrc
    38. library paste in the configuration code for lircrc
    39. ctrl X then Participate then 'Y' to save
    40. sudo clever-get install mpd – enter 'Y' to continue (takes some time)
    41. sudo apt-get install mpc
    42. sudo nano /etc/rc.local
    43. comment out wholly the code demur exit 0 at the end
    44. #add these next comments before exit 0
    45. add irexec -d
    46. add mpc stop
    47. tote up mpc volume 30
    48. #tighten the power requirements
    49. # switch off hdmi as this unit is headless
    50. /usr/ABA transit number/tvservice -o
    51. ctrl X then Inscribe so 'Y' to save
    52. Finally, create a new asound.conf by typewriting sudo nano /etc/asound.conf and entering the following:
    53. pcm.!nonremittal {
    54. type hw scorecard 0
    55. }
    56. ctl.!nonpayment {
    57. type hw card 0
    58. }
    59. ctrl X and so Enter then 'Y' to save
    60. sudo nano /etc/mpd.conf
    61. scroll down to amend these settings
    62. audio-output{
    63. Type "alsa"
    64. Advert"My ALSA Device"
    65. Device "hw:0,0"
    66. Mixer_type "computer software"
    67. Mixer_device "default"
    68. Mixer_control "PCM"
    69. Mixer_index "0"
    70. }
    71. ctrl X and so Enter then 'Y' to deliver
    72. sudo reboot
    73. You are now ready to connect the wires.

    I configured the energy stations to the favorable, but you can change the url streams and use any radio stations you want. See the attached lircrc configuration file.

    Key 0 = Jazz FM http://edge-ads-02-gos1.crisp-stream.com/jazzfmmobile.mp3

    Key 1 = Absolute Classic Stone http://ais.absoluteradio.co.uk/absoluteclassicrock.mp3

    Key 2 = BBC Energy 2 http://a.files.bbci.atomic number 27.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_high/Alaska/bbc_radio_two.m3u8

    Key 3 = Classic FM HTTP://vis.media-ice-skating rink.musicradio.com/ClassicFMMP3

    Key 4 = BBC Energy 4 http://a.files.bbci.co.uk/media/endure/manifesto/audio/simulcast/hls/uk/sbr_high/ak/bbc_radio_fourfm.m3u8

    Key 5 = BBC Radio 5 HTTP://a.files.bbci.co.uk/media/live/pronunciamento/audio/simulcast/hls/uk/sbr_high/ak/bbc_radio_five_live.m3u8

    Key 6 = BBC Radio 6 Music hypertext transfer protocol://a.files.bbci.co.uk/media/live/pronunciamento/audio/simulcast/hls/uk/sbr_high/Alaska/bbc_6music.m3u8

    Key 7 = BBC Whiteface and Worcester HTTP://bbcmedia.ic.llnwd.net/stream/bbcmedia_lrhandw_mf_p

    Key 8 = Absolute 80s Music http://ais.absoluteradio.CO.uk/absolute80s.mp3

    Key 9 = Absolute 90s Music hypertext transfer protocol://ais.absoluteradio.co.uk/absolute90s.mp3

    Up Arrow = volume up

    Push down Arrow = volume down feather

    Key Left = Innocent playlist

    Key Right = Clear playlist

    Key OK = Play

    Key out Back = Toggle (which pauses live play)

    Key Exit = Occlusive

    Step 4: Cable Upwardly the Project

    Connect the circuits up using the wiring tables above.

    I originally built the epitome on a breadboard to tally that it worked. I was then able to transfer the telegraph connections to the components I had installed, using dupont connectors on the headers. Again, I was able to test to fit that the social unit was still working. Finally, I distinct to pretend the final connections victimisation a wirewrap tool. This provides a really neat way to connect the components and has the added bonus that connections can easily be 'undone' if necessary. The electric connections ready-made using this method are then good, they don't actually pauperism soldering.

    The Atomic number 77 LED receiver was added into the project by soldering it onto a small piece of veroboard which was and so affixed in the place of the pilot Light-emitting diode at the front of the character. The wires were kept short and federal official through the built in channel to connect to the RPi. This receiver will model behind the fine wire ensnarl grill then that it is able to 'see' the Atomic number 77 signalize from the remote control unit.

    One time the speakers have been secured in the cabinet, they nates be attached to the stereo channels of the amplifier output. The female power supply jack socket can be threaded through the 3D printed sustenanc plate and wired into the bus legal profession of the circuit. The whole social unit is powered by a 5v 3A connect transformer.

    Be the Low gear to Apportion

    Recommendations

    • Anything Goes Contest 2022

      Anything Goes Contest 2022