Hi, everyone. I am a beginner in using the raspberry pi. I would like to seek for your help with the device of raspberry pi 5. I am currently using the microstepper driver to drive the stepper motor. It uses the DIR+- and PUL+- to receive the signal from the raspberry pi. Since the old library of rpi.gpio is not available in the raspberry pi 5. Therefore, I am trying the use the gpiozero.
However, I cannot make it move. my code is:
from gpiozero import PWMOutputDevice
Pulpin = 17
PULSE= PWMOutputDevice(17, initial_value = 0.5, frequency = 800)
PULSE.on()
I had success one time to let it move forward but after I changed the code. If failure again.
Can anyone discuss the problem that I can have an improvement to do this development.
However, I cannot make it move. my code is:
from gpiozero import PWMOutputDevice
Pulpin = 17
PULSE= PWMOutputDevice(17, initial_value = 0.5, frequency = 800)
PULSE.on()
I had success one time to let it move forward but after I changed the code. If failure again.
Can anyone discuss the problem that I can have an improvement to do this development.
Statistics: Posted by boncheuk — Tue Nov 26, 2024 5:15 am