Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

raspberry pi3 b+ GPIO problem

sarunas
2018-10-05
2018-10-06
  • sarunas - 2018-10-05

    hello,
    I am trying use raspberry pi3 +b board. I make codesys test program. Program send to raspberry board run system running. I connected Led cathode to PIN 6 (GND) and led anode to PIN12 (PGIO18). Then I set PGIO18 TRUE level, but led doesn't shine. I don't know where are my mistake. Maybe could give me advice, how solve this problem. I think problem is with raspberry, but I write python program

    import RPi.GPIO as GPIO
    import time
    GPIO.setmode(GPIO.BOARD)
    GPIO.setup(12,GPIO.OUT)
    for x in range(0,10):
    Β  Β  GPIO.output(12,True)
    Β  Β  time.sleep(1)
    Β  Β  GPIO.output(12,False)
    Β  Β  time.sleep(1)
    GPIO.cleanup()
    

    Led is blinking.
    GPIOs parameters:

    GPIOs IEC parameters:

    I attached all my test project.

    when program is online
    https://www.part.lt/img/5a95e7c981c8345 ... ba8627.jpg m

    IMG: Bild

    IMG: Bild

    testss.project [167.92 KiB]

     
  • eschwellinger

    eschwellinger - 2018-10-05

    Hi,
    just try to revert your project to non device application... then it might work.
    BR
    Edwin

     
  • sarunas - 2018-10-06

    Edwin Schwellinger hat geschrieben:
    Hi,
    just try to revert your project to non device application... then it might work.
    BR
    Edwin

    thank, now it is working

     

Log in to post a comment.