Elektronik komplett
This commit is contained in:
@@ -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)
|
||||
@@ -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:
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,46 @@
|
||||
# Please make this file available to others
|
||||
# by sending it to <lirc@bartelmus.de>
|
||||
#
|
||||
# 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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user