monteslu / node-red-contrib-gpio

A set of node-red nodes for connecting to johnny-five IO Plugins
MIT License
41 stars 31 forks source link

Installation on Raspberry Pi #7

Open scargill opened 8 years ago

scargill commented 8 years ago

I followed the instructions to the letter - and installed this on a Raspberry Pi 2.

If I pull in an output node - attach to pin "13" with an alternating test incoming signal - I get flashing on connector pin 21, GPIo9 on the Pi2... not sure what that has to do with 13 ??

However, if I try to add another pin such as 12, or even rename the first one - I get "connecting~" - and it just won't do anything.

Am I missing something??

Pete.

monteslu commented 8 years ago

Pin mappings on raspberry pi are a little weird. Did you take a look at this list: https://github.com/nebrius/raspi-io/wiki/Pin-Information#model-abraspberry-pi-2

scargill commented 8 years ago

Yes that is INDEED helpful - I picked 17 didn't I - which, strangely does not appear in the diagram you pointed me to!!! So I tried 22 and that worked.

BUT in order to get more than one pin working or even to amend an existing one - I had to create a NEW configuration for each one - in the case of amending a connection, deleting the node and configuration and recreating it. Surely that can't be deliberate?

scargill commented 8 years ago

Oh dear, and Servo doesn't do anything on a pin (22) that works for digital IO... Fired 30 and 120 - nothing out on the LED.....

monteslu commented 8 years ago

You should absolutely not have to create a new board instance for each pin. Not sure what's going on there. A little tied up, but will see if I can reproduce soon.

For servos and other PWMs you can only use physical pins 35 and 32.