streaming-kamera/src/einstellungen.py

46 lines
868 B
Python
Raw Normal View History

2021-03-04 10:26:23 +01:00
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
freq = 800
freq_halten = 30000
cyc_halten = 12
pins_out = {
'kamera' : {'nr' : 2, 'name' : 'Relais, Kamera', 'state' : GPIO.HIGH},
'encoder' : {'nr' : 3, 'name' : 'Relais, Encoder', 'state' : GPIO.HIGH}
}
pins_in = {
'endschalter1' : {'nr' : 23, 'name' : 'Endschalter, Motor 1', 'state' : GPIO.HIGH},
'endschalter2' : {'nr' : 26, 'name' : 'Endschalter, Motor 2', 'state' : GPIO.HIGH},
'endschalter3' : {'nr' : 25, 'name' : 'Endschalter, Motor 3', 'state' : GPIO.HIGH}
}
m1_a1 = 17
m1_b1 = 18
m1_a2 = 27
m1_b2 = 22
2021-03-04 16:15:04 +01:00
m1_t1 = 0.00008
m1_t2 = 0.0002
m1_te = 0.0001
2021-03-04 10:26:23 +01:00
m1_es = 23
m2_a1 = 19
m2_b1 = 13
m2_a2 = 6
m2_b2 = 5
m2_t1 = 0.0003
m2_t2 = 0.001
m2_te = 0.0005
m2_es = 26
m3_a1 = 16
m3_b1 = 12
m3_a2 = 21
m3_b2 = 20
m3_t1 = 0.0003
m3_t2 = 0.001
m3_te = 0.0006
m3_es = 25