diff --git a/code/test/ir_sender.py b/code/test/ir_sender.py new file mode 100644 index 0000000..bb55b0f --- /dev/null +++ b/code/test/ir_sender.py @@ -0,0 +1,12 @@ +import RPi.GPIO as GPIO +import time + +GPIO.setwarnings(False) +GPIO.setmode(GPIO.BCM) +GPIO.setup(24, GPIO.OUT) + +while True: + GPIO.output(24, True) + time.sleep(1) + GPIO.output(24, False) + time.sleep(1) diff --git a/code/test/ir_test.py b/code/test/sensor.py similarity index 83% rename from code/test/ir_test.py rename to code/test/sensor.py index 4169671..8958495 100644 --- a/code/test/ir_test.py +++ b/code/test/sensor.py @@ -10,15 +10,15 @@ GPIO.setup(17, GPIO.OUT) GPIO.output(17, GPIO.LOW) try: - print('Start IR test') + print('Start sensor test') while True: time.sleep(0.25) if (GPIO.input(4) == GPIO.LOW): - print('LED OFF') + print('LOW') GPIO.output(17, GPIO.LOW) else: - print('LED ON') + print('HIGH') GPIO.output(17, GPIO.HIGH) except KeyboardInterrupt: diff --git a/electronics/electronics.fzz b/electronics/electronics.fzz deleted file mode 100644 index 804d26e..0000000 Binary files a/electronics/electronics.fzz and /dev/null differ diff --git a/misc/Owner's Manual - On Stage IIIP (English).pdf b/misc/Owner's Manual - On Stage IIIP (English).pdf new file mode 100644 index 0000000..b88405d Binary files /dev/null and b/misc/Owner's Manual - On Stage IIIP (English).pdf differ diff --git a/misc/electronics.fzz b/misc/electronics.fzz new file mode 100644 index 0000000..cbcf1ec Binary files /dev/null and b/misc/electronics.fzz differ diff --git a/misc/lirc_jbl_iiip.conf b/misc/lirc_jbl_iiip.conf new file mode 100644 index 0000000..f7ce903 --- /dev/null +++ b/misc/lirc_jbl_iiip.conf @@ -0,0 +1,46 @@ +# Please make this file available to others +# by sending it to +# +# this config file was automatically generated +# using lirc-0.9.0-pre1(default) on Sun Dec 11 19:02:32 2016 +# +# contributed by +# +# brand: JBL +# model no. of remote control: JBL 10-Button Remote +# devices being controlled by this remote: JBL IIIP +# + +begin remote + + name /home/pi/remote-jbl-iiip.conf + bits 16 + flags SPACE_ENC|CONST_LENGTH + eps 30 + aeps 100 + + header 9059 4509 + one 565 1694 + zero 565 564 + ptrail 567 + repeat 9062 2252 + pre_data_bits 16 + pre_data 0x2F5 + gap 108487 + toggle_bit_mask 0x0 + + begin codes + KEY_VOLUMEDOWN 0x807F + KEY_VOLUMEUP 0xC03F + KEY_MUTE 0x9867 + KEY_PLAYPAUSE 0x40BF + KEY_PREVIOUS 0x48B7 + KEY_NEXT 0xA05F + KEY_SCROLLUP 0x7887 + KEY_SCROLLDOWN 0xF00F + KEY_MENU 0x58A7 + KEY_ENTER 0x609F + end codes + +end remote + diff --git a/notes.md b/notes.md index d9daf1f..aa2b2f2 100644 --- a/notes.md +++ b/notes.md @@ -1,12 +1,12 @@ # To Do ## Hardware - PHAT DAC installieren - http://www.instructables.com/id/Multiroom-Client-With-Raspberry-Pi-ZERO-and-PHAT-D/?ALLSTEPS -- Lautstärke über IR regeln +- Lautstärke über IR regeln - JBL-Fernbedienung nach Musikraketen-Anleitung auslesen ### CNY70 -- https://www.youtube.com/watch?v=KLkNqmqXVtA - FEHLER IN TRANSISTORDARSTELLUNG +- https://www.youtube.com/watch?v=KLkNqmqXVtA - Fehler in der Schaltungsskizze! Muss NPN- statt PNP-Transistor sein. - http://www.vishay.com/docs/83751/cny70.pdf -- Achtung: Beim Vishay CNY70 ist im Vergleich zum Temic der Transistor um 180° gedreht! (s. http://www.strippenstrolch.de/1-2-12-der-reflexkoppler-cny70.html) +- Achtung: Beim Vishay CNY70 ist im Vergleich zum Temic der Transistor um 180° gedreht! (s. Kommentar bei http://www.strippenstrolch.de/1-2-12-der-reflexkoppler-cny70.html) ## Einrichtung @@ -17,9 +17,5 @@ ## Gehäuse -- Schraublöcher für Raspi am Sockel - Buttons per Acryl-Transfer beschriften? https://shop.heise.de/katalog/inhalt-333f53 -- Aussparung Indexpunkt Basis vorn - -