STEP Motor 28BYJ-48 mit ULN2003 || Led A stottert; leuchtet nicht
Verfasst: Dienstag 10. Dezember 2019, 16:57
Ich möchte den STEP Motor 28BYJ-48 mit dem ULN2003 ansteuern. Undmein Problem liegt dabei das die LED A nicht so stark bzw nicht leuchtet.
Bsp:
Video
https://www.dropbox.com/s/mws6p1x5btlh9 ... 4.mp4?dl=0
Code
Bsp:
Video
https://www.dropbox.com/s/mws6p1x5btlh9 ... 4.mp4?dl=0
Code
Code: Alles auswählen
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BOARD)
control_pins = [7,11,13,15]
for pin in control_pins:
GPIO.setup(pin, GPIO.OUT)
GPIO.output(pin, 0)
halfstep_seq = [
[1,0,0,0],
[1,1,0,0],
[0,1,0,0],
[0,1,1,0],
[0,0,1,0],
[0,0,1,1],
[0,0,0,1],
[1,0,0,1]
]
for i in range(512):
for halfstep in range(8):
for pin in range(4):
GPIO.output(control_pins[pin], halfstep_seq[halfstep][pin])
time.sleep(0.1)
GPIO.cleanup()