Hello,
yesterday i installed the Johnny Five plugin at my rpi3+.
I get this errors:
11:30:11.598 [pimatic-johnny-five] info: [BoardManager] pigpio hardwareRevision 10494163
11:30:11.665 [pimatic-johnny-five] error: [BoardManager] Creation of board 1 raised exception:Error: pigpio error -1 in gpioInitialise
11:30:11.668 [pimatic-johnny-five] error: [BoardManager] Error: Board not found
11:30:11.669 [pimatic-johnny-five] error: [BoardManager] Creation of board 2 raised exception:Error: Board not found
11:30:13.458 [pimatic-johnny-five] error: [BoardManager] Error: Board not found
11:30:13.459 [pimatic] error: Error loading device "tester": Board not found
11:30:13.482 [pimatic] debug: Error: Board not found
11:30:13.482 [pimatic] debug:> at BoardManager.getBoard (/home/pi/pimatic-app/node_modules/pimatic-johnny-five/board-manager.coffee:231:17)
11:30:13.482 [pimatic] debug:> at new JohnnyFiveSwitch (/home/pi/pimatic-app/node_modules/pimatic-johnny-five/devices/johnny-five-switch.coffee:23:43)
11:30:13.482 [pimatic] debug:> at Object.createCallback (/home/pi/pimatic-app/node_modules/pimatic-johnny-five/johnny-five.coffee:55:16)
11:30:13.482 [pimatic] debug:> at DeviceManager._loadDevice (/home/pi/pimatic-app/node_modules/pimatic/lib/devices.coffee:1475:26)
11:30:13.482 [pimatic] debug:> at /home/pi/pimatic-app/node_modules/pimatic/lib/devices.coffee:1504:16
11:30:13.482 [pimatic] debug:> at tryCatcher (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/util.js:16:23)
11:30:13.482 [pimatic] debug:> at Promise._settlePromiseFromHandler (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:512:31)
11:30:13.482 [pimatic] debug:> at Promise._settlePromise (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:569:18)
11:30:13.482 [pimatic] debug:> at Promise._settlePromise0 (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:614:10)
11:30:13.482 [pimatic] debug:> at Promise._settlePromises (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:693:18)
11:30:13.482 [pimatic] debug:> at Async._drainQueue (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:133:16)
11:30:13.482 [pimatic] debug:> at Async._drainQueues (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:143:10)
11:30:13.482 [pimatic] debug:> at Immediate.Async.drainQueues [as _onImmediate] (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:17:14)
11:30:13.482 [pimatic] debug:> at processImmediate [as _immediateCallback] (timers.js:396:17)
When i create a new johnny-five device i get timeouts. After a restart the device is created.
Portexpander MCP23017 is listed in i2cbus:
pi@GeckoPi:~ $ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: 20 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- 57 -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
Here my plugin config.
{
"boards": [
{
"id": "1",
"boardType": "raspi-io"
},
{
"id": "2",
"boardType": "expander",
"port": "1",
"controller": "MCP23017",
"address": "0x20"
}
],
"debug": true,
"plugin": "johnny-five",
"active": true
}
And the device config.
{
"boardId": "2",
"pin": "0",
"id": "tester",
"name": "tester",
"class": "JohnnyFiveSwitch"
}
@ my rpi2 i use the same config, there it works.
With best regards
techsolo12