raspberry pi B+ GPIO 5 and 6 always TRUE

JJoe
2016-09-11
2016-10-07
  • JJoe - 2016-09-11

    Dear all,
    in my project I'm using Raspberry PI B+. I need quite a number of inputs. Everything is working, but not GPIO 5 and 6. Both are always TRUE. (See pictures) What is wrong with my programming?
    Than you very much for your reply.

    Joachim

    IMG: GPIO3.jpg

    IMG: GPIO2.jpg

    IMG: GPIO1.jpg

     
  • ZorAxe - 2016-09-12

    How have you connected the inputs to the GPIO's?

     
  • JJoe - 2016-09-14

    Hi ZorAxe,
    I have all inputs connected to the GPIO's. It seems to me that GPIO's 4, 5, and 6 are used for other things. Therefore I changed my input signals to GPIO 9 and 10 and it is working now.

    Thank you very much for your support.

    Best Regards
    Joachim

     
  • allen00se - 2016-10-06

    JJoe hat geschrieben:
    Hi ZorAxe,
    I have all inputs connected to the GPIO's. It seems to me that GPIO's 4, 5, and 6 are used for other things. Therefore I changed my input signals to GPIO 9 and 10 and it is working now.
    Thank you very much for your support.
    Best Regards
    Joachim

    Joachim,
    Could you share with me what your physical wiring looks like? I am having trouble getting inputs working with CodeSys. Do you have resistors in your circuit? Did you wire your inputs to GND or to 3.3V?

    Thanks in advance,
    Krys

     
  • allen00se - 2016-10-07

    Finally got my inputs working last night, here is the wiring diagram that I used to make it work.

    IMG: Bild

     

Log in to post a comment.