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

GPIO18 as PWM output

huiliyi
2016-06-03
2016-07-14
  • huiliyi - 2016-06-03

    How to use raspberry pi 2/B GPIO18 as PWM output to control servo? How to config PWM? Don't use I2c, just gpio12 or gpio13 or gpio18 or gpio19?

     
  • FWosniak - 2016-07-13

    Good morning huiliyi, I am having the same issues. I am trying to control a servo futaba s3003 using codesys and raspbi. I have the code in python but I dont know if I can use it on codesys or if I have to do something more. It is very simple, just a position control.

     
  • eschwellinger

    eschwellinger - 2016-07-14

    Hi,

    always possible is to call the cmd by the IEC application:

    l viewtopic.php?f=23&t=6247&p=12699#p12711 l

    Maybe not very nice but will work.
    ->execute this in an own Task please and set GPIO18 as unused in the CODESYS configuration

    BR
    Edwin

     
  • FWosniak - 2016-07-14

    Good morning Mr. Schwellinger, thanks for helping us, I tried to open the DeltaRobot project but I got more than 500 errors and a series of messages like "the current version of your plc does not support ...". Am I missing something?

     

Log in to post a comment.