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

    PyBytes + EXT_ANT

    Scheduled Pinned Locked Moved Pybytes IoT platform
    5 Posts 2 Posters 354 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.
    • S Offline
      sylvainm
      last edited by

      Good morning

      I am currently trying to set the Wifi Antenna as external with the PyBytes config.
      I added "wlan_antenna": 1 in the pybytes_config.json.
      wlan.antenna() result is 1 but the Pin('P12') give Pin('P12', mode=Pin.IN, pull=None, alt=-1).
      As the doc for ext_ant it should be Pin.OUT. Maybe I miss something in the config.

      Thank you

      Br

      robert-hhR 1 Reply Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @sylvainm
        last edited by

        @sylvainm Please tell us:

        • which device are you using
        • which firmware version
        1 Reply Last reply Reply Quote 0
        • S Offline
          sylvainm
          last edited by

          Hi @robert-hh

          I am using Wipy 3.0 running FW 1.18.2.r6

          Thanks for reply

          Br

          robert-hhR 1 Reply Last reply Reply Quote 0
          • robert-hhR Offline
            robert-hh @sylvainm
            last edited by robert-hh

            @sylvainm OK. So P12 should be indeed the antenna switch pin. Can you test the voltage at the Pin?
            I recall that there was a bug, causing P12 not set to output mode on init. So you can do that in your code. But that was fixed in Nov. last year:

            Author: iwahdan88 <islam@pycom.io>
            Date:   Thu Nov 8 18:35:10 2018 +0100
            
                esp32/util: fixed problem in antenna switch in newer esp32 chip models
            
            
            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sylvainm @robert-hh
              last edited by

              @robert-hh

              Thanks , I ll test asap, and add in my code P12 as Pin.OUT.

              Br

              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