Connecting BBGW Analog to Dashboard

#1

I am running the latest version of Debian on a BBGW and am trying to create a dashboard showing analog pin A0 (P9-39) input- An analog temperature sensor. I haven't been able to get Node red to recognize the pin or display outputs. I have even tried something super simple; using a POT to regulate known voltage at pin 39 and I can't see data outputs on any of the dashboard displays or the debugger. Please help.

#2

and just what is a BBGW?
What version of NR, node.js and dashboard> (see the log at startup)

#3

Hi Paul,

Thank you for responding.

  1. BBGW is BeagleBone Green Wireless

  2. 16 May 15:24:44 - [info] Node-RED version: v0.19.6
    16 May 15:24:44 - [info] Node.js version: v6.17.0

Dashboard version 2.14.0 started at /ui

Respectfully,
Phillip Bogdanovich
Co-Founder & CEO|CIPHER SKIN
512-947-4365
Phillip@cipherskin.com
www.cipherskin.com

#4

Node-red is now at v0.20.4(I think it’s 4) so you might want to upgrade

What node are you using to attempt to access the Gipson pins?

#5

I have tried to use the beagle bone specific palettes- sometimes they load and sometimes they don’t. I have also tried using the Johnny-Five palettes and with demo code I get a stream of output in cloud 9/SSH terminal but nothing in node red debugger or a connected dashboard node (I’ve tried gauge, chart and text).

Respectfully,
Phillip Bogdanovich

#6

I just attempted to upgrade:

root@beaglebone:~# sudo apt upgrade

Reading package lists... Done

Building dependency tree

Reading state information... Done

Calculating upgrade... Done

The following packages have been kept back:

chromium gpiod

0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

root@beaglebone:~# sudo apt-get upgrade

Reading package lists... Done

Building dependency tree

Reading state information... Done

Calculating upgrade... Done

The following packages have been kept back:

chromium gpiod

0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

root@beaglebone:~# sudo apt upgrade nodejs bb-node-red-installer

Reading package lists... Done

Building dependency tree

Reading state information... Done

bb-node-red-installer is already the newest version (0.19.6-0rcnee0~stretch+20190228).

nodejs is already the newest version (6.17.0-0rcnee0~stretch+20190228).

Calculating upgrade... Done

The following packages have been kept back:

chromium gpiod

0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

root@beaglebone:~# sudo apt-get upgrade nodejs bb-node-red-installer

Reading package lists... Done

Building dependency tree

Reading state information... Done

bb-node-red-installer is already the newest version (0.19.6-0rcnee0~stretch+20190228).

nodejs is already the newest version (6.17.0-0rcnee0~stretch+20190228).

Calculating upgrade... Done

The following packages have been kept back:

chromium gpiod

0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

root@beaglebone:~#

Respectfully,
Phillip Bogdanovich

#7

Not having a BB I’m out of ideas for you, sorry

#8

We’ve also tried connecting through a Raspberry PI using an ADC with no luck.
Respectfully,
Phillip Bogdanovich

#9

@zenofmud you can’t install node red 0.20 on node 6 so upgrading is NOT advised.

1 Like
#10

@dceejay that may be part of the problem. I’ve been upgrading node red before running it. Still having issues reading an analog pin from a beaglebone

Phillip Bogdanovich
Co-Founder & CEO|Cipher Skin
(720) 892-6243
CipherSkin.com
Phillip@cipherskin.com

#11

The Jessie build comes with node6 and Node-RED pre-installed and apt-get update / upgrade should be all you need as they pre-package a load of extra nodes for BBB in there. I don't have a Green so have no idea if the analogue functions work - but they probably should as they used to on a Black I had a while back. Not sure did those extra nodes - but worth trying to track them down via github and maybe ask direct.

(I think the next release of Debian for BB (Buster ???) will include node 10 and then they will also include Node-RED 20 +.)