The python version of the code works fine.. guess there is a bug in the node library. Hope that's fixed soon.. hate working with py
Posts made by bitluni
-
RE: Omega2 PWM-Expansion and Node.js
-
Omega2 PWM-Expansion and Node.js
Hi, I'm working on an Omega2+ project.
I took the following lines from the documentation but always get an exception on setupDriver.
The PWM does something since the servo seems to be powered and the PWM library even outputs a line.
Anyone experience with it?var pwmExp = require("/usr/bin/node-pwm-exp");
pwmExp.driverInit();
if (pwmExp.checkInit()) {
console.log('Oscillator sucessfull initialized');
} else {
console.error('Error with oscillator initializing');
}
pwmExp.setFrequency(50);
pwmExp.setupDriver(-1, 5.0, 0.0);
pwmExp.disableChip();