documentation
This commit is contained in:
+2
-2
@@ -26,8 +26,8 @@ PIN_SENSOR = 5
|
|||||||
PIN_LED = 22
|
PIN_LED = 22
|
||||||
|
|
||||||
# Buttons on PINs 9, 10 and 11
|
# Buttons on PINs 9, 10 and 11
|
||||||
PIN_PREV = 9
|
PIN_PREV = 10
|
||||||
PIN_NEXT = 10
|
PIN_NEXT = 9
|
||||||
PIN_PLAY = 11
|
PIN_PLAY = 11
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -9,17 +9,17 @@ GPIO.setup(10, GPIO.IN, pull_up_down=GPIO.PUD_UP)
|
|||||||
GPIO.setup(11, GPIO.IN, pull_up_down=GPIO.PUD_UP)
|
GPIO.setup(11, GPIO.IN, pull_up_down=GPIO.PUD_UP)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
print('Start button test')
|
print('Start button test - End with Ctrl-C')
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
if (GPIO.input(9) == False):
|
|
||||||
print('Button 1')
|
|
||||||
|
|
||||||
if (GPIO.input(10) == False):
|
if (GPIO.input(10) == False):
|
||||||
print('Button 2')
|
print('Button 1 (PREV)')
|
||||||
|
|
||||||
|
if (GPIO.input(9) == False):
|
||||||
|
print('Button 2 (PLAY/PAUSE)')
|
||||||
|
|
||||||
if (GPIO.input(11) == False):
|
if (GPIO.input(11) == False):
|
||||||
print('Button 3')
|
print('Button 3 (NEXT)')
|
||||||
|
|
||||||
time.sleep(0.25)
|
time.sleep(0.25)
|
||||||
|
|
||||||
|
|||||||
@@ -211,7 +211,7 @@ h2, h3, h4 {
|
|||||||
<h4 id="inserts">Installing the Window</h4>
|
<h4 id="inserts">Installing the Window</h4>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
For the window on top of the case, we need to cut a 50 × 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.
|
For the window on top of the case, we need to cut a 50 × 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.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
@@ -260,7 +260,7 @@ h2, h3, h4 {
|
|||||||
<li>DIN ↔ pin 40 (GPIO 21)</li>
|
<li>DIN ↔ pin 40 (GPIO 21)</li>
|
||||||
<li>LCK ↔ pin 35 (GPIO 19)</li>
|
<li>LCK ↔ pin 35 (GPIO 19)</li>
|
||||||
<li>FMT ↔ GND</li>
|
<li>FMT ↔ GND</li>
|
||||||
<li>XMT ↔ 10k Resistor <–> 3,3V of the PCM5102A board</li>
|
<li>XMT ↔ 10k Resistor ↔ 3,3V of the PCM5102A board</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
@@ -305,7 +305,7 @@ h2, h3, h4 {
|
|||||||
<h4 id="buttons">Buttons</h4>
|
<h4 id="buttons">Buttons</h4>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
The three buttons go directly in the small pockets on the bottom part of the printed case. While the front pins are put into the small holes in order to fasten them tightly, the pins on the other end should be bent up and soldered to the male end of the jumper wires. Connect the buttons to pins 9 (for PREV), 10 (for PLAY/PAUSE) and 11 (for NEXT). The other sides go to the ground pins 20, 30 and 34.
|
The three buttons go directly in the small pockets on the bottom part of the printed case. While the front pins are put into the small holes in order to fasten them tightly, the pins on the other end should be bent up and soldered to the male end of the jumper wires. Connect the buttons to pins 10 (for PREV), 9 (for PLAY/PAUSE) and 11 (for NEXT). The other sides go to the ground pins 20, 30 and 34.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p class="gallery">
|
<p class="gallery">
|
||||||
@@ -360,7 +360,7 @@ h2, h3, h4 {
|
|||||||
The led is put in the small holder at the front side inside the cover. Connect the long leg to pin 15 (GPIO 22) of the Raspberry Pi (with a resistor in between, if needed), the short one to pin 9 (GND). I dimmed the LED with a 220 Ω resistor even though mine could operate directly on 3.3 V because it was just too bright. The QR recognition does not need much light.
|
The led is put in the small holder at the front side inside the cover. Connect the long leg to pin 15 (GPIO 22) of the Raspberry Pi (with a resistor in between, if needed), the short one to pin 9 (GND). I dimmed the LED with a 220 Ω resistor even though mine could operate directly on 3.3 V because it was just too bright. The QR recognition does not need much light.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h4 id="cables">Closing the Case</h3>
|
<h4 id="cables">Closing the Case</h4>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Now it is time to put the remaining parts in place: Hook up the camera to the Raspberry Pi using the micro USB adapter. Also connect the two ends of the dock adapter cable to the audio module and the Raspberry Pi. Move all the cables in a place where they do not block the camera, bring up your best origami and close the case. You might need two or three attemps until everything is in the right place, but it fits in, believe me.
|
Now it is time to put the remaining parts in place: Hook up the camera to the Raspberry Pi using the micro USB adapter. Also connect the two ends of the dock adapter cable to the audio module and the Raspberry Pi. Move all the cables in a place where they do not block the camera, bring up your best origami and close the case. You might need two or three attemps until everything is in the right place, but it fits in, believe me.
|
||||||
@@ -539,7 +539,8 @@ Intro-Video
|
|||||||
Live-Bild Kamera-Einstellung
|
Live-Bild Kamera-Einstellung
|
||||||
LED im Case
|
LED im Case
|
||||||
Test-QR
|
Test-QR
|
||||||
Link zu OnShape
|
Link zu OnShape https://cad.onshape.com/documents/2762d09f63c9b517c9286983/w/eb40037adee1466d85023e8d/e/802477ccf62b15a257cef26e
|
||||||
|
|
||||||
deactivate microphone?
|
deactivate microphone?
|
||||||
deactivate RasPi LED
|
deactivate RasPi LED
|
||||||
12 mm caps?
|
12 mm caps?
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 284 KiB After Width: | Height: | Size: 290 KiB |
Reference in New Issue
Block a user