Hi everyone. I’m trying to move a servo but at the same time that a move the Joystick, I get this error
___ __ __
/ _ )/ /_ _____ / /__
/ _ / / // / _ / '/
///_, /////_
/__/
Give Blynk a Github star! => GitHub - vshymanskyy/blynk-library-js: Blynk library for JS. Works with Browsers, Node.js, Espruino.
OnOff mode
Connecting to: blynk-cloud.com 443
SSL authorization…
Connected
Authorized
2019-11-28 13:57:03 gpioServo: gpio 18, bad pulsewidth (81)
/home/pi/Desktop/my-awesome-project/node_modules/pigpio/pigpio.js:134
pigpio.gpioServo(this.gpio, +pulseWidth);
^
Error: pigpio error -7 in gpioServo
at Gpio.servoWrite (/home/pi/Desktop/my-awesome-project/node_modules/pigpio/pigpio.js:134:12)
at Blynk.VirtualPin. (/home/pi/Desktop/my-awesome-project/index.js:14:7)
at Blynk.VirtualPin.emit (events.js:189:13)
at Blynk.onReceive (/home/pi/Desktop/my-awesome-project/node_modules/blynk-library/blynk.js:510:27)
at exports.SslClient. (/home/pi/Desktop/my-awesome-project/node_modules/blynk-library/blynk.js:607:50)
at exports.SslClient.emit (events.js:189:13)
at TLSSocket. (/home/pi/Desktop/my-awesome-project/node_modules/blynk-library/blynk-node.js:212:16)
at TLSSocket.emit (events.js:189:13)
at addChunk (_stream_readable.js:284:12)
at readableAddChunk (_stream_readable.js:261:13)
this is the index.js
const Blynk = require( ‘blynk-library’ );
const AUTH = ‘xxxxxxxxxxxxxxx’ ;
const blynk = new Blynk.Blynk(AUTH);
const Gpio = require( ‘pigpio’ ).Gpio;
const pan = new Gpio(18, {mode: Gpio.OUTPUT});
var JoyX = new blynk.VirtualPin(1);
JoyX.on( ‘write’ , function(panValue) {
pan.servoWrite(panValue);
});
I’m based on
http://help.blynk.cc/en/articles/583104-how-to-install-node-js-library-on-linux
I’ve been re-installing the pigpio library, maybe for avoid de OnOff mode but nothing…
if I try to move it with Slider widget, nothing…
I’d love to start from zero, step by step
any ideas? thnxs 4 your cooperation