The only problem is that the stepper motors have encoders, which will reply (very fast) when I send a serial command. This means I have to make my driver enable output LOW as fast as possible after sending my command.
Timeouts may work, but the timings vary, as different commands require more or less time to print.
Does anyone have any idea how to make sure the driver enable pin goes to LOW as soon as the Espruino is done sending?
Sorry if my English is not that good, but I hope you guys can understand my question :)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hello,
I'm working on a project involving driving stepper motors via RS485.
I've found a nice converter board:
http://arduino-info.wikispaces.com/SoftwareSerialRS485Example
I converted this example to JavaScript and I got it working.
The only problem is that the stepper motors have encoders, which will reply (very fast) when I send a serial command. This means I have to make my driver enable output LOW as fast as possible after sending my command.
Timeouts may work, but the timings vary, as different commands require more or less time to print.
Does anyone have any idea how to make sure the driver enable pin goes to LOW as soon as the Espruino is done sending?
Sorry if my English is not that good, but I hope you guys can understand my question :)
Thanks in advance,
Eric