Hi,
I am running:
BBB-eMMC-flasher-2013.06.20.img
and I installed Adafruit’s python library.
The Library seems to work fine. But after playing with a couple of A4988 stepper drivers, I think I may have killed a couple of GPIO pins, but I am not sure. I thought that there wouldn’t be any problem connecting a GPIO directly to the step, direction and enable pins of the stepper dirvers. I did have a 10k pull up resister (to 3.3) on the enable pin.
I never got the motor to step. Below is my very simple test script just to see it step. Measuring the voltage of the step pin, it is always 3.3 volts. Even if I set the time to 1 sec it never goes low. Testing the pin with a led and a 470ohm resistor, other pins work fine, but the pins I used for the stepper driver are always on.
So the question is, are they dead? Any help suggestion etc, would be greatly appreciated.
- import Adafruit_BBIO.GPIO as GPIO
- import time
- GPIO.setup(“P8_24”, GPIO.OUT) # Step
- GPIO.setup(“P8_5”, GPIO.OUT) # Dir
- GPIO.setup(“P8_27”, GPIO.OUT) # enable
GPIO.output(“P8_24”, GPIO.LOW)
GPIO.output(“P8_5”, GPIO.LOW)
GPIO.output(“P8_27”, GPIO.LOW)
- while True:
- GPIO.output(“P8_24”, GPIO.HIGH)
- time.sleep(0.01)
- GPIO.output(“P8_24”, GPIO.LOW)
- time.sleep(0.05)