diff --git a/documentation/index.html b/documentation/index.html index 8ef1d17..c773b4e 100644 --- a/documentation/index.html +++ b/documentation/index.html @@ -149,7 +149,7 @@ h2, h3 {
- First step was the design of the new case. Like the first rocket case it's public, you can find it here on Onshape. (You will need to create an account to open the document.) Or you can download the STL files for printing if you are using the very same components. (Please note that you will need to rotate the top of the sphere 180° for printing.) + First step was the design of the new case. Like the first rocket case it's public, you can find it here on Onshape. (You will need to create an account to open the document.) Or you can download the STL files for printing if you are using the very same components. Please note that you will need to rotate the top of the sphere 180° for printing. Also be careful about the Raspberry holder: The Raspberry Pi together with the PHAT DAC should have a height of about 7 mm (or less) which depends on the GPIO header that is used to solder the PHAT DAC to the RasPi. If the height exeeds 7 mm the distance has to be adjusted before printing.
@@ -215,6 +215,10 @@ h2, h3 {
After drilling, washers and screws are added and the infrared LED is glued directly in front of the speaker's IR sensor in order to send it commands. Before that the PINs of the IR LED are soldered to cables, that are long enough to connect it to the circuit board through one of the additional holes. Also, all the electronics should be tested together before anything is hot-glued into the case.
+ ++ (Disclaimer: I only did a proof of concept test script for remote contolling the speaker via the IR LED until now. I am planning on using that component later on via a web app but for the time being you could as well leave it out.) +
@@ -228,13 +232,13 @@ h2, h3 {
- After soldering the PHAT DAC onto the Raspberri Pi (preferably using a GPIO header that directly routes through all the GPIOs), the used PINs are connected with the jumper cables. Where these were not soldered to the contact, I used hot glue to fix the connection which worked pretty well. + After soldering the PHAT DAC onto the Raspberri Pi (preferably using a GPIO header that directly routes through all the GPIOs) the used PINs are connected with the jumper cables. Where these were not soldered to the contact, I used hot glue to fix the connection which worked pretty well.
- Now configure the additional hardware and software that's needed for the player. Before doing that, copy the Python scripts and some MP3 files for testing to /home/pi (either directly or via SCP). Have also one of the QR test cards from the template ready for testing. TODO ADD LINK TO TEMPLATE
+ After the basic installation is done, it's time to bring everything together in the case. All components are connected but we'll wait using the glue gun until everything is tested thoroughly. Especially the webcam might need some in-place live adjustment. The easiest way to do this is by connecting the webcam to another computer while it is already in the case (see bash history below).
+
+ Now configure the additional hardware and software that is needed for the player. Before doing that, copy the contents of the piplayer2 directory (including subdirectories sounds and test) to /home/pi (either directly or via SCP). Have also one of the test cards from the template ready for testing the QR recognition.
@@ -310,12 +318,9 @@ curl -sS get.pimoroni.com/phatdac | bash # Check for errors dmesg -# Start mocp and test the PHAT DAC -??????????????? TESTEN -??????????????? NÖTIG? sudo nano /etc/modprobe.d/alsa-base.conf +# Plug in headphones or JBL connector cable, start mocp and test audio output via the PHAT DAC mocp -S mocp -l ~/piplayer2/sounds/scanning.mp3 -mocp -p mocp -x # Determine the webcams USB ID and the available resolutions (http://askubuntu.com/questions/214977/how-can-i-find-out-the-supported-webcam-resolutions) @@ -329,9 +334,9 @@ sudo fswebcam -r 320x240 -d /dev/video0 -v ~/webcam-test.jpg python3 ~/piplayer2/test/lightoff.py # Copy ~/webcam-test.jpg to another computer and have a look at it -# If needed, adjust the webcam and repeat the procedure until the QR code can be recognized +# If needed, adjust the webcam and repeat the step until the QR code recognition is reliable -# QR-Test +# QR-Test: Hold a QR code card above the webcam then turn on the LED, decode the QR code and turn the LED off python3 ~/piplayer2/test/lighton.py zbarcam --quiet --nodisplay --raw -Sdisable -Sqrcode.enable --prescale=320x240 /dev/video0 python3 ~/piplayer2/test/lightoff.py @@ -352,9 +357,9 @@ sudo nano /etc/lirc/hardware.conf # LIRCMD_CONF="" sudo reboot + +-# autostart for piplayer with log output redirection -# (siehe http://raspberrypi.stackexchange.com/questions/8169/run-startup-application-as-a-specific-user) +
+ When everything works as expected, use hot glue to fix the components together. In particular I glued the webcam, the circuit board and the USB hub in place so that nothing will fall out of place anymore, even if the player is moved around roughly. +
+ ++# Autostart for piplayer2.py with log output redirection (http://raspberrypi.stackexchange.com/questions/8169/run-startup-application-as-a-specific-user) sudo nano /etc/rc.local # ... -# su pi -c 'python3 /home/pi/piplayer2/piplayer2.py >> /home/pi/piplayer2/piplayer2.log 2>&1 &' +# su pi -c 'python3 /home/pi/piplayer2.py >> /home/pi/piplayer2.log 2>&1 &' # exit 0 sudo reboot