Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Using P12 as PWM output Wipy 3.0

    Scheduled Pinned Locked Moved WiPy 2&3
    2 Posts 2 Posters 31 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      JSmith
      last edited by

      Hello all,

      I have a WIPY 3.0 connected to a expansion board 3.1. From these I have made a ruggedised controller/logger, with high V input sensing, and opto-coupled outputs for high side drives.

      I have realised that my application of using P12 for one of the outputs is causing my Wifi to fail due to it acting as the antenna switch (shouldve paid more attention to the pinout!).

      The trouble is that im short on GPIO pins - so im thinking that if I use an external antenna then no matter what my PWM status, the Wifi should work.

      This seems like a bodge, and im not sure whether the fast changing V level of PWM would cause WIFI switch problems - but saying that I cannot understand why Pycom would have given PWM functionality to this pin.

      Has anyone done similar to unlock the GPIO/output potential of P12?
      Or any advice for an alternative workaround? e.g. switch disconnecting?

      1 Reply Last reply Reply Quote 0
      • G Offline
        Gijs
        last edited by

        Hi,
        at the moment, it is not possible to use P12 as a regular GPIO pin, as it is connected to the antenna switch. On the OEM modules, it is possible to use this pin.

        To solve your issue, you could take a look at the tiny IC close to the antenna circuitry which is the RF switch, but I cannot give you any support in that.

        Gijs

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • 1 / 1
        • First post
          Last post

        Pycom on Twitter

        Pycom