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?
I have been using the GPIO functionality based on the example project for GPIOs located in:
C:......\CODESYS Control for Raspberry PI\126.96.36.199\Examples
And works as polarity written/expected in code. Maybe conflict with another option like the "I2C" or "SPI" ?
-inverting the logic in the application?
-maybe play around with the GPIO pullups/pulldowns?
( but guess this depends on your hardware.. which is connected)
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.