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

    LoPy gets hot

    Scheduled Pinned Locked Moved LoPy
    telnetpowerpower saving
    4 Posts 3 Posters 1.6k Views 4 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.
    • L Offline
      lebucur
      last edited by

      Sometimes when I leave the board powered for a long time I discover that it gets hot, and I can't connect to it through telnet.
      I try to ping the board to 192.168.0.107 but I get a response from 192.168.0.111 that destination cannot be reached. I don't know how that address camed up.
      The board is powered at 3.8V on VIN pin.
      Does anybody have any idea? Does that have to do with sleep / idle times?

      robert-hhR 1 Reply Last reply Reply Quote 0
      • B Offline
        bucknall
        last edited by

        Hi @lebucur,

        Could you double check the code that is running on the device - if you could post your boot.py/main.py we might be able to help you resolve this!

        Developer Evangelist - Pycom

        1 Reply Last reply Reply Quote 0
        • L Offline
          lebucur
          last edited by

          Hello, here is my boot.py (main.py is empy):

          print('>>> boot.py >>>')
          
          ap_ssid = 'lopy'
          ap_pass = 'pwd'
          known_nets = {
              'net': \
                  {'pwd': 'netpwd', 'wconfig': ('192.168.0.105', '255.255.255.0', '192.168.0.1', '0.0.0.0')}
          }
          
          import machine
          if machine.reset_cause() != machine.SOFT_RESET:
              from network import WLAN
              wl = WLAN() #get wlan handler
              wl.mode(WLAN.STA) #station mode / not AP
          
              available_nets = wl.scan() #find nearby wireless networks
              nets = frozenset([e.ssid for e in available_nets])
              known_nets_names = frozenset([key for key in known_nets])
              net_to_use = list(nets & known_nets_names)
          
              try:
                  net_to_use = net_to_use[0]
                  net_properties = known_nets[net_to_use]
                  pwd = net_properties['pwd']
                  sec = [e.sec for e in available_nets if e.ssid == net_to_use][0]
          
                  if 'wconfig' in net_properties:
                      #wl.ifconfig(config=net_properties['wconfig']) # comment line for statip ip
                      pass
                  wl.connect(net_to_use, (sec, pwd), timeout=10000)
          
                  import ubinascii # MAC decode
                  mac = ubinascii.hexlify(wl.mac(),':').decode()
                  print("MAC " + mac)
          
                  while not wl.isconnected(): #wait for connection
                      machine.idle() # save power while waiting
                      pass
          
              except Exception as e:
                  print("Failed to connect to any known network, going into AP mode")
                  wl.init(mode=WLAN.AP, ssid=ap_ssid, auth=ap_pass, channel=6, antenna=WLAN.INT_ANT)
          
          print('<<< boot.py <<<')
          
          1 Reply Last reply Reply Quote 0
          • robert-hhR Offline
            robert-hh @lebucur
            last edited by robert-hh

            @lebucur The Lopy warms up a little bit when running. Can you estimate how worm it get's. It's normal that it gets a little bit warmer than environmental temperature, so it feels warm, but you should still be able to touch it without without any pain.
            Is it the deviec in total or a specific component?

            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