You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support for INA219 High Side DC Current Sensor Breakout #1500
This device uses I2C so it is totally doable. The first thing to solve is whether it should be its own, new class, a plug-in, or if an existing class should be expanded to include current sensors (i.e. Relay becomes Power).
I lean toward its own new class. but would be interested to hear what others think.
I also found this repo, which seems capable of interfacing with Johnny Five, but perhaps not in a standardized way. (https://www.npmjs.com/package/ina219)
I'm not sure how J5 classes/plugins are defined, what features are required to make an appropriately defined plug-in?
@msi-matthew I don't know enough about the raspi-io to know if Johnny-Five and the ina219 code can both have access to different GPIO pins on the Pi, but I bet @nebrius can advise on this. I seem to recall that there is a way to tell raspi-io to not use certain pins, leaving them available for other code.
Apart from sharing access to the GPIO pins on the Pi there is no reason that Johnny-Five can't work with that code. Johnny-Five plays nice with others.
I followed up in the Raspi IO issue thread, but tl;dr yes the ina219 module and raspi-io should work together without modification or the need to use the excludePins property that @dtex was referring to.
Activity
dtex commentedon Sep 4, 2018
This device uses I2C so it is totally doable. The first thing to solve is whether it should be its own, new class, a plug-in, or if an existing class should be expanded to include current sensors (i.e. Relay becomes Power).
I lean toward its own new class. but would be interested to hear what others think.
msi-matthew commentedon Sep 4, 2018
I also found this repo, which seems capable of interfacing with Johnny Five, but perhaps not in a standardized way. (https://www.npmjs.com/package/ina219)
I'm not sure how J5 classes/plugins are defined, what features are required to make an appropriately defined plug-in?
dtex commentedon Sep 9, 2018
@msi-matthew I don't know enough about the raspi-io to know if Johnny-Five and the ina219 code can both have access to different GPIO pins on the Pi, but I bet @nebrius can advise on this. I seem to recall that there is a way to tell raspi-io to not use certain pins, leaving them available for other code.
Apart from sharing access to the GPIO pins on the Pi there is no reason that Johnny-Five can't work with that code. Johnny-Five plays nice with others.
nebrius commentedon Sep 13, 2018
I followed up in the Raspi IO issue thread, but tl;dr yes the ina219 module and raspi-io should work together without modification or the need to use the
excludePinsproperty that @dtex was referring to.dtex commentedon Sep 13, 2018
Closing. This is being handled over in the raspi-io issue linked above.