You are almost done! In this step we will guide you through all the wiring. You will need a soldering iron for some parts, but its not super complicated otherwise. You got this!
If you choose to go with the 3D-Printed case you will receive these 3 parts:
1 The top part will be holding the Neopixel Ring, the Raspberry Pi, the USB Microphone
2 The body part is only for the speaker and the passive radiator
3 The base is screwed to the body to close the case.
a. The Body
You will want to start with the body because it will simply become to hard to handle after.
First you need to attach two 30cm wires to the DC female plug.
Then you need to glue the DC in its deserved hole (see picture)
making sure that te two wire pass through the little hole just behind it and go up to the top hole. Tape them on the top surface of the body so they dont fall during the next steps.
Next you need to solder two 30cm wire (Audio) on the Speaker.
That been done you need to Glue the speaker in its support (1 on the above image) opposed to the DC plug side. With the wire getting out of the body via the upper hole.
The Key here is to have an enclosure as sealed as possible, so dont hesitate to add a lot of glue to attach it. ️
- Do the same for the Passive Radiator. On the other side.
Then screw the Base to the bottom of the Body part.
You can now add a blob of glue where the cable go out of the top part. to seal it and avoid air to go through.
We also did a Y wire soldering so the left and right channel are sent into the only speaker.
- Next, add the Hifiberry on the top of your raspberry Pi and connect the audio-wires into the left and right output. Connect the DC wires in into the Power Input.
b. The Top
- First you need to solder the Neopixel ring and the Arduino Micro. Start to solder red and black wire to the 5V and Gnd pins of the Neopixel Ring then solder a color wire to Data pin.
Do the soldering on the front of the ring, it will be easier to glue it later. Although be careful to not create short circuit.
- Then solder the red and black wire to the 5V and GND of the Arduino Micro, and the Data on pin 6.
- Then glue the neopixel inside the TOP Part of the case. (1)
The next part involves the extraction of the USB microphone from its case. Keep just the mic, the wires, the USB card and plug. Then glue the mic on the TOP part of the case where the holes are. (2 on the image above).
Then plug the Arduino Micro and the USB mic on the USB port of the Raspberry Pi
Close the top part, and power it using the Hifiberry power supply.
You are done! Congratulations !
Your spkr should work when you turn on the Rapsberry, and you should not have to manually run command to have it working.
To accomplish that, we created two system services:
spkr.snips.service: this service is responsible for launching the docker container that contains the NLU engine and the communication bus.
spkr.python.service: this service is responsible for launching python scripts that controls lights and communicates with the container.
You can find the unit files in the /lib/systemd/system folder.
You can test it by saying “Hey Snips!” Wait for the light to become blue and then say, “Play me some jazz.” or “Play Supertramp”.