|
From: | John Donoghue |
Subject: | Re: Octave-Arduino-Servo |
Date: | Sat, 1 Dec 2018 09:01:38 -0500 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 |
On 12/1/18 8:04 AM, Vicent Borras
wrote:
Disconnecting the board will put it out of sync in terms of any configuration it has done on the board, so perhaps isnt surprising that it shows an error at the case.
Modify your code to:
a=10
ar = arduino(); b=20 myServo = servo(ar, "d9", "minpulseduration", 1.0e-3, "maxpulseduration", 2.0e-3); c=30 writePosition (myServo, .5); d=40 position = readPosition (myServo) pause(2); writePosition (myServo, .8); position = readPosition (myServo)
And try it - I am still thinking you are possibly having issues from drawing too much power with the servo with the large movements and causing the board to reset.
|
[Prev in Thread] | Current Thread | [Next in Thread] |