You could use the SPI interface Am Samstag, 18. Oktober 2014 03:26:26 UTC+2 schrieb plla...@gmail.com: > > > > <http://electronics.stackexchange.com/questions/134356/beaglebone-generate-finite-pulse-train#> > > > I'm wanting to use the BeagleBone Black to generate a FINITE number of > pulses, in order to control a stepper motor. For the controller I have, an > A4988, each pulse is one step on the motor. How can I use the PWM on the > BBB to send, say, 5 pulses, and no more or less than 5? Or I can use a > GPIO. Whichever works. > > I have the Adafruit BBIO library > <https://learn.adafruit.com/setting-up-io-python-library-on-beaglebone-black/using-the-bbio-library> > > installed. I have thought of doing this in a simple, stupid way - just > using python's time.wait() and toggling a GPIO pin, however many times > I'd like. But this seems very inaccurate, timing-wise, and moreover > inelegant; is there a way to do this better? I'm also investigating events > -- i.e., count the numberof pulses that have occured using another GPIO, > then stop the PWM when the number of pulses I want has been counted. > > > Any ideas? >
-- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.