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 not active standalone

    Scheduled Pinned Locked Moved LoPy
    lopy standalone
    12 Posts 4 Posters 1.8k 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.
    • robert-hhR Offline
      robert-hh @gedp
      last edited by robert-hh

      @gedp Strange. Are by chance reset or P2 pulled low. They have an internal pull-up, so the voltage should be about 3.3V. Measure against then GND pin of the LoPy (or the shielding or the outer ring of the U.FL connectors).

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

        Measured 3.3v on these pins (reset and P2). also checked connections and voltages with the lopy not present and the same with the lopy inserted. All ok.
        Mystery...
        Will check voltages on the lopy when inserted in de pysense.

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

          Compared voltages with lopy inserted between own pcb and pysense.
          Only differences:
          sense p14 3v3, pcb 1v floating
          sense p3=tx1 1.8v, pcb 0
          sense p9 and p10 0v, pcb 2.9v (4k7 pullups on pcb)

          Any help/hints welcome ...

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

            @gedp That's still strange. I have a LoPy running on a breadboard, nothing conneced but Vin, GND, P0 (rx0) and P1 (tx0). And a pigtail to the Lora antenna. Works fine. You should check whether there are no other connections
            Edit: The 2.9 V at P9/P10 are too low. If the device boots, the GPIO is set to input mode, which is pretty high impedance. So assuming a high impedance voltage meter, the reading should be 3.3V.

            1 Reply Last reply Reply Quote 0
            • B Offline
              berni
              last edited by

              Are you using a deepsleep shield? I am having the same issue. When powering the LoPy+deepsleep with batteries the deepsleep get_wake_status() function crashes, causing the main routine to stop.

              G 1 Reply Last reply Reply Quote 0
              • G Offline
                gedp @berni
                last edited by

                @berni
                I'm not using any shield in this setup. But thanks for asking.

                1 Reply Last reply Reply Quote 1
                • J Offline
                  jcaron
                  last edited by

                  What kind of power supply are you using? Is it capable of supplying the required current. There's usually a nice spike during boot.

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

                    @robert-hh Good hint. I will test what happens in breadboard with only Vin and GND connected.
                    Did so in the meantime (couldn't post within 10 minutes): attached the lopy to breadboard with only 5V and GND connected: no sign of life ... :-(
                    One would guess only 5V and GND should be ok?

                    @jcaron Is a siglent power supply. Have limited at 0.5 amps, but seems to consume approx .15A, so guess this should be ok.

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

                      @gedp is there anything in main.py or boot.py, which waits for something from the pysense board?

                      G 1 Reply Last reply Reply Quote 1
                      • G Offline
                        gedp
                        last edited by

                        Robert,

                        Yes I have. But would assume it should skip this if not available, or have some kind of timeout. Coding is not what it used to be .... sloppy :-)

                        Have the following:

                        rom pysense import Pysense
                        from LIS2HH12 import LIS2HH12
                        #from SI7006A20 import SI7006A20
                        #from LTR329ALS01 import LTR329ALS01
                        #from MPL3115A2 import MPL3115A2,ALTITUDE,PRESSURE

                        Sensor board

                        py = Pysense()
                        #si = SI7006A20(py)
                        #lt = LTR329ALS01(py)
                        #li = LIS2HH12(py)

                        Could be that the code just hangs instead of exiting with error code.
                        Good point and I guess you could have solved my problem. Will check tomorrow.

                        Big thanks,
                        Geert

                        1 Reply Last reply Reply Quote 0
                        • G Offline
                          gedp @robert-hh
                          last edited by

                          @robert-hh

                          Robert, you were completely right. Removed the references to the pysense and everything runs fine. I should have known ... Sorry.

                          Thanks again!

                          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