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\3.5.16.0\Examples
And works as polarity written/expected in code. Maybe conflict with another option like the "I2C" or "SPI" ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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" ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
-inverting the logic in the application?
-maybe play around with the GPIO pullups/pulldowns?
( but guess this depends on your hardware.. which is connected)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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" ?
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" ?
-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?