Qudio documentation

This commit is contained in:
2019-01-22 15:44:44 +01:00
parent 47cf97d488
commit df671e49f9
5 changed files with 43 additions and 26 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ SOUND_SCANNING = "mnt/INTERNAL/sounds/scanning.mp3"
SOUND_SCAN_FAIL = "mnt/INTERNAL/sounds/fail-05.mp3"
QR_SCANNER_TIMEOUT = 4
# photo sensor on PIN 17
# photo sensor on PIN 5
PIN_SENSOR = 5
# LED on PIN 22
+2 -2
View File
@@ -2,7 +2,7 @@ import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setup(27,GPIO.OUT)
GPIO.output(27,GPIO.LOW)
GPIO.setup(22,GPIO.OUT)
GPIO.output(22,GPIO.LOW)
GPIO.cleanup()
+2 -2
View File
@@ -2,6 +2,6 @@ import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setup(27,GPIO.OUT)
GPIO.output(27,GPIO.HIGH)
GPIO.setup(22,GPIO.OUT)
GPIO.output(22,GPIO.HIGH)
+10 -10
View File
@@ -1,27 +1,27 @@
import RPi.GPIO as GPIO
import time
# photo sensor on PIN 17
# photo sensor on PIN 5
GPIO.setmode(GPIO.BCM)
GPIO.setup(17, GPIO.IN)
GPIO.setup(5, GPIO.IN)
# LED on PIN 27
GPIO.setup(27, GPIO.OUT)
GPIO.output(27, GPIO.LOW)
# LED on PIN 22
GPIO.setup(22, GPIO.OUT)
GPIO.output(22, GPIO.LOW)
try:
print('Start sensor test')
while True:
time.sleep(0.75)
if (GPIO.input(17) == GPIO.LOW):
time.sleep(0.5)
if (GPIO.input(5) == GPIO.LOW):
print('LOW')
GPIO.output(27, GPIO.LOW)
GPIO.output(22, GPIO.LOW)
else:
print('HIGH')
GPIO.output(27, GPIO.HIGH)
GPIO.output(22, GPIO.HIGH)
except KeyboardInterrupt:
print('KeyboardInterrupt')
GPIO.cleanup()
GPIO.cleanup()
+28 -11
View File
@@ -235,7 +235,7 @@ h2, h3, h4 {
<h4 id="inserts">Installing the Window</h4>
<p>
For the window on top of the case, we need to cut a XX mm &times XX mm part of acrylic glass. This can be done with a normal cutter knife by (carefully!) repeatedly cutting along your marker line with a ruler until you can break it off. You might need to file the edges a bit until it fits into the slot inside the cover.
For the window on top of the case, we need to cut a 48 mm &times 28 mm part of acrylic glass. This can be done with a normal cutter knife by (carefully!) repeatedly cutting along your marker line with a ruler until you can break it off. You might need to file the edges a bit until it fits into the slot inside the cover.
</p>
<p>
@@ -367,6 +367,10 @@ h2, h3, h4 {
<h2 id="software">Software Installation and Configuration</h2>
<pre style="background-color:#ff9999">
TODO
</pre>
<h3 id="volumio">Volumio</h3>
@@ -388,21 +392,39 @@ h2, h3, h4 {
The next step is to install the necessary software packages:
</p>
<pre><code>sudo apt-get install fswebcam zbar-tools python3-rpi.gpio</code></pre>
<pre><code>sudo apt-get install fswebcam zbar-tools</code></pre>
Copy over script
Test LED, Webcam
<pre style="background-color:#ffff99">
Install python 3.6 and socketio-client
Copy over script
</pre>
<h3 id="configuration">Configuration und Test</h3>
<pre style="background-color:#ffff99">
Test LED, Webcam
</pre>
<p>
For testing purposes you can print <a href="misc/test-cards.pdf">these QR code cards</a>.
</p>
<h2 id="qr-cards">QR Cards</h2>
<p>
The QR code on the cards should be about 10&times;10 mm large following this schema:
</p>
<a href="images/curb.png" data-fancybox data-caption="The window is 24&times;24 mm, the camera should see at least 10&times;10 mm in the center"><img src="images/curb.png"
width="320" alt="The window is 24&times;24 mm, the camera should see at least 10&times;10 mm in the center" /></a>
<p>
While the curb leaves 34 mm space for the card's width, it is a good practice to print the cards with a width of 33 mm. That way they do not get stuck and you can place exactly 2&times;9 cards on an A4 sheet.
</p>
<p>
Since the creation of the cards can be a bit of a hassle when the collection grows larger, I have written a card generator for Spotify links. It takes a list of Spotify URIs as input and generates a PDF with the QR codes, the title and the album art. The information is printed both on the front and the back of the cards in order to make sorting of card stacks easier. I will put the generator online as soon as possible.
</p>
@@ -422,20 +444,15 @@ Komponenten-Fotos:
Jumper-Kabel
Plexiglas
Screenshots OnShape
Live-Bild Kamera-Einstellung
LED im Case
QR-Abmessungen als Grafik
Test-QR
CJMCU-5102:
reicht 10k auf 3.3v auch, wenn die Versorgung über 5v erfolgt?
Rückseite
deactivate microphone?
deactivate RasPi LED
12 mm caps?
acrylic glass --> size?
Bohrergröße