Skip to main content
replaced http://raspberrypi.stackexchange.com/ with https://raspberrypi.stackexchange.com/
Source Link

Test Method: using pigpio library of joan, from the stack exchange answeranswer

I have also tried to install npm on off and rpi-gpio as an alternative for the current library npm gpio it failed, my stack exchange questionquestion

Test Method: using pigpio library of joan, from the stack exchange answer

I have also tried to install npm on off and rpi-gpio as an alternative for the current library npm gpio it failed, my stack exchange question

Test Method: using pigpio library of joan, from the stack exchange answer

I have also tried to install npm on off and rpi-gpio as an alternative for the current library npm gpio it failed, my stack exchange question

Tweeted twitter.com/StackRaspi/status/811666097661476864
added 11 characters in body
Source Link
jasim
  • 123
  • 7

I have also tried to install npm on off and rpi-gpio as an alternative for the current library npm gpio it failed, my stack exchange question

I have also tried to install npm rpi-gpio as an alternative for the current library npm gpio it failed, my stack exchange question

I have also tried to install npm on off and rpi-gpio as an alternative for the current library npm gpio it failed, my stack exchange question

Carried out a test method suggested by joan and updated my qestion as suggested by her
Source Link
jasim
  • 123
  • 7

What is the possible solution? I don't want this

As suggested by joan, i have carried out the test as below,

GPIO Test:

  1. test the GPIO with nothing connected:

Test Method: using pigpio library of joan, from the stack exchange answer

a) ./x_pigpiod_if2 : pigpio version 58 Mode/PUD/read/write tests. Test 1.1 to happen againTest 9.4 :Pass

b) ./x_pigpio.py

Python module 1.34 Python 2.7.9 Test 1.1 to Test 13.13 Pass

c) ./x_pigs : all ok

d) ./x_pipw : all ok


  1. testing LED using command-line

    sudo -i

    echo "23" > /sys/class/gpio/export echo "out" > /sys/class/gpio/gpio23/direction

    echo "1" > /sys/class/gpio/gpio23/value echo "0" > /sys/class/gpio/gpio23/value

    echo "23" > /sys/class/gpio/unexport

result: Sucess

3)test the LED using python program:

using RPi.GPIO package and simple python program

Test result: Failed!!!

I have also tried to install npm rpi-gpio as an alternative for the current library npm gpio it failed, my stack exchange question

Now it is clear the hardware is ok, What could be the reason which stops my program/package accessing GPIO?

What is the possible solution? I don't want this to happen again.

What is the possible solution?

As suggested by joan, i have carried out the test as below,

GPIO Test:

  1. test the GPIO with nothing connected:

Test Method: using pigpio library of joan, from the stack exchange answer

a) ./x_pigpiod_if2 : pigpio version 58 Mode/PUD/read/write tests. Test 1.1 to Test 9.4 :Pass

b) ./x_pigpio.py

Python module 1.34 Python 2.7.9 Test 1.1 to Test 13.13 Pass

c) ./x_pigs : all ok

d) ./x_pipw : all ok


  1. testing LED using command-line

    sudo -i

    echo "23" > /sys/class/gpio/export echo "out" > /sys/class/gpio/gpio23/direction

    echo "1" > /sys/class/gpio/gpio23/value echo "0" > /sys/class/gpio/gpio23/value

    echo "23" > /sys/class/gpio/unexport

result: Sucess

3)test the LED using python program:

using RPi.GPIO package and simple python program

Test result: Failed!!!

I have also tried to install npm rpi-gpio as an alternative for the current library npm gpio it failed, my stack exchange question

Now it is clear the hardware is ok, What could be the reason which stops my program/package accessing GPIO?

Improved the question for easy understanding
Link
jasim
  • 123
  • 7
Loading
fixed grammers
Link
jasim
  • 123
  • 7
Loading
Source Link
jasim
  • 123
  • 7
Loading