Working with IC2 pins with node-red-contrib-gpio

516 views
Skip to first unread message

Tad Siminitz

unread,
Jun 13, 2016, 4:01:00 PM6/13/16
to Node-RED
Hi - I have a sensor BME280 IC2/SPI that does Temp + Humidy + Pressure. I have (finally) installed the Johnny5 node after some hiccups. 
GPIO in and out seem to be working ok. The johnn5 function node however (even though it says connected) always throws the same error 

Error: I2C pins not in I2C mode

I have followed some  links in describing that i need to enable IC2 though raspi-config and put the following entries into /etc/modules
i2c-bcm2708
i2c-dev
this is not making the message go away.  Any suggestions?  


Dave C-J

unread,
Jun 13, 2016, 4:07:35 PM6/13/16
to node...@googlegroups.com
Is that the same as using raspi-config to enable it ?

Tad Siminitz

unread,
Jun 13, 2016, 4:39:39 PM6/13/16
to Node-RED
That is the exact thing I went with .   still have the errors though.  

Colin Law

unread,
Jun 13, 2016, 4:45:02 PM6/13/16
to node...@googlegroups.com
On 13 June 2016 at 21:39, Tad Siminitz <tsim...@gmail.com> wrote:
> That is the exact thing I went with . still have the errors though.

What is the exact thing you went with?

Colin
> --
> http://nodered.org
>
> Join us on Slack to continue the conversation: http://nodered.org/slack
> ---
> You received this message because you are subscribed to the Google Groups
> "Node-RED" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to node-red+u...@googlegroups.com.
> To post to this group, send email to node...@googlegroups.com.
> Visit this group at https://groups.google.com/group/node-red.
> For more options, visit https://groups.google.com/d/optout.

Tad Siminitz

unread,
Jun 13, 2016, 5:37:33 PM6/13/16
to Node-RED


On Monday, June 13, 2016 at 4:01:00 PM UTC-4, Tad Siminitz wrote:

Dave C-J

unread,
Jun 13, 2016, 5:45:07 PM6/13/16
to node...@googlegroups.com
And did
sudo i2cdetect -y 1
work ? - ie can you get any response outside of Node-RED ?

Tad Siminitz

unread,
Jun 14, 2016, 8:18:47 AM6/14/16
to node...@googlegroups.com
this is what this command gives me 

root@raspberrypi:/boot# sudo i2cdetect -y 1

     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --


--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/GfTRUOSJ254/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.

peter adshead

unread,
Jun 14, 2016, 8:46:08 AM6/14/16
to Node-RED
That's saying no device , found .

Check resistors fitted , check sda and sck are right way around. 
The pi is not 5v tolerant so pull up resistors to 3.3 volt and not the 5v rail.
Check for common ground.

The software and setup part is right or you would just get a error.

Luis Montes

unread,
Jun 14, 2016, 1:57:02 PM6/14/16
to node...@googlegroups.com
Ok, got this figured out.

It's now in big bold words on the raspi-io readme :)

Warning: this module must be installed as a normal user, but run as the root user

So do the raspi-io install as the pi user then copy the raspi-io folder into the /root/.node-red/node_modules/ folder and run node-red as root.



You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.

Tad Siminitz

unread,
Jun 14, 2016, 3:13:06 PM6/14/16
to Node-RED
Thanks for the help. I think Peter is on to something and the problem may be occurring before I get to node-red. 

I minimized the connections... following the steps on    https://xdevs.com/guide/thp_rpi/

so. on BME280 I did the following  ... 

SignalRaspberry Pi pin numberBME280 pin
PowerPin 2VIN pin
Data SDAPin 3SDI pin
Clock SCLPin 5SCK pin
GroundPin 6GND pin


then ran i2cdetect -y 1 
I get the following indicating nothing is connected.  I have enabled IC2 on  my raspberry. Could my sensor be fried? 
I can get the yellow GPIO pins to work, but with another (moisture) sensor. 

Tad 

sudo i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --



On Monday, June 13, 2016 at 4:01:00 PM UTC-4, Tad Siminitz wrote:

Luis Montes

unread,
Jun 21, 2016, 12:07:29 PM6/21/16
to node...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages