Hello, I'm fairly new to working with the Espruino Wifi and I love it, however, I'm working on a project using the servo module and am finding that when I send the servo a command like s.move(0); it does not travel as far as when I call it's equivalent s.write(0); on my Particle Photon board. The same goes for s.move(1); it does not travel the full rotation like it does when I call s.write(180); on the Photon. I tried to also call it directly using digitalPulse and found the same results.
This is causing an issue because I'm losing about 15-20% of the rotation which I need for this project. Is there anyway I could get the servo to go fully to 0 or 180 degrees using the Espruino? Any assistance would be greatly appreciated. Thank you!
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 fairly new to working with the Espruino Wifi and I love it, however, I'm working on a project using the servo module and am finding that when I send the servo a command like s.move(0); it does not travel as far as when I call it's equivalent s.write(0); on my Particle Photon board. The same goes for s.move(1); it does not travel the full rotation like it does when I call s.write(180); on the Photon. I tried to also call it directly using digitalPulse and found the same results.
This is causing an issue because I'm losing about 15-20% of the rotation which I need for this project. Is there anyway I could get the servo to go fully to 0 or 180 degrees using the Espruino? Any assistance would be greatly appreciated. Thank you!