Raspberry pi IO issue

imshkt
2020-05-04
2020-05-21
  • imshkt - 2020-05-04

    So i hooked up my raspberry pi with Codesys and its working and everything but the issue i'm having is that Outputs of pi are always on. I made a simple program of ' ON and OFF '. So when my Output is true TRUE in the program then the output on hardware is false and vica-versa. i have tried installing NOOBS again and Loaded the libraries in the codesys as well. Is there anyone who is familiar with this issue?

     

    Last edit: imshkt 2020-05-04
    • justthefacts77 - 2020-05-21

      I have been using the GPIO functionality based on the example project for GPIOs located in:
      C:......\CODESYS Control for Raspberry PI\3.5.16.0\Examples

      And works as polarity written/expected in code. Maybe conflict with another option like the "I2C" or "SPI" ?

       
    • justthefacts77 - 2020-05-21

      I have been using the GPIO functionality based on the example project for GPIOs located in:
      C:......\CODESYS Control for Raspberry PI\3.5.16.0\Examples

      And works as polarity written/expected in code. Maybe conflict with another option like the "I2C" or "SPI" ?

       
  • plcmax - 2020-05-04

    -inverting the logic in the application?
    -maybe play around with the GPIO pullups/pulldowns?
    ( but guess this depends on your hardware.. which is connected)

     
  • imshkt - 2020-05-05

    For starters, I am using Raspberry pi 3 Model B. To Be honest i don't wanna invert the logic in the program. that way i have to adjust the program every time. Although i would like know about GPIO Pullups/Pulldowns. How can i use use them. Will it fix my issue i am having?

     

Log in to post a comment.