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

node-red gpio #5

Open Prashanthikrishnan opened 9 years ago

Prashanthikrishnan commented 9 years ago

hello sir, I am using an SHT21 temperature and humidity sensor in a raspberry pi and i am having an issue in reading the temperature sensor in to node-red... i am unable to read the temperature data..?? please help me out here. this is wat i have tried.. since the temperature sensor is connected via the i2c bus, in the raspi configuring the kernel modules and detected the sensor and its date.. the node-red-gpio pins where installed and i tried to connect to the payload and read the data.. but i get the error in the debug window as :i2c pins not in i2c mode...!! please provide me a solution..

microspace commented 9 years ago

Hello! Maybe this would help: From here: https://github.com/nebrius/raspi-io

I2C notes

There are a few limitations and extra steps to be aware of when using I2C on the Raspberry Pi.

First and foremost, be aware that once you use an I2C pin for GPIO, you cannot use it for I2C again until you reboot your Raspberry Pi! If you run the following code, you will get an exception stating "I2C pins not in I2C mode."

Prashanthikrishnan commented 9 years ago

hello sir, i have already updated the npm with the raspi-io modules...tried it again and still getting the same error