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

    Charging from Solar via the Expansion Board

    Scheduled Pinned Locked Moved Expansion Board
    expansion boardsolar panel
    6 Posts 3 Posters 2.0k Views 3 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.
    • B Offline
      bradnz
      last edited by

      Hi

      If I had a Solar panel (6V, 1W) connected to the USB port, could this load share with the SiPy AND a LiPo without any concerns? Im more concerned about the ability to charge the Battery at the same time as the battery (or the Solar panel) powering the load - not all charge ICs allow this in the right way.

      1 Reply Last reply Reply Quote 0
      • M Offline
        maamar
        last edited by

        Here my config,
        Solar Panel 5v@400mA connected to TP4056
        Batterie 3000mA connected to TP4056
        and the TP4056 connected to Lopy
        it works fine

        A 1 Reply Last reply Reply Quote 0
        • A Offline
          Acme1999 @maamar
          last edited by

          @maamar i've a configutation like yours, can you explain me how to connect the tp4056 to a Pysense or a Sipy? Thanks in advance.

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            maamar @Acme1999
            last edited by

            @acme1999 in the Out+ and Out- connect it to th USB vcc and gnd respectively

            alt text

            alt text

            A 2 Replies Last reply Reply Quote 0
            • A Offline
              Acme1999 @maamar
              last edited by

              @maamar Thanks. It works.

              1 Reply Last reply Reply Quote 0
              • A Offline
                Acme1999 @maamar
                last edited by

                @maamar

                i've a strange behaviour:

                main.py

                from pysense import Pysense
                from MPL3115A2 import MPL3115A2
                from SI7006A20 import SI7006A20
                from LTR329ALS01 import LTR329ALS01
                from network import Sigfox
                import socket
                import time
                import struct
                import network

                wlan = network.WLAN();
                wlan.deinit();

                while True:

                py = Pysense();
                mp = MPL3115A2();
                si = SI7006A20();
                lt = LTR329ALS01();
                sigfox = Sigfox(mode=Sigfox.SIGFOX, rcz=Sigfox.RCZ1);
                
                #temperature -10000 - 10000
                temp = int(round(si.temperature()*100,2));
                
                #humidity 10000 - 0
                hum = int(round(si.humidity()*100,0));
                
                #pressure -13000 - 8560
                pres = int(round(mp.pressure(),0))-100000;
                
                #blue light
                blue = lt.light()[0];
                
                #red light
                red = lt.light()[1];
                
                #message
                message = bytes(struct.pack('>hhhhh',temp,hum,pres,blue,red));
                
                s = socket.socket(socket.AF_SIGFOX, socket.SOCK_RAW);
                s.setblocking(True);
                s.setsockopt(socket.SOL_SIGFOX, socket.SO_RX, False);
                s.send(message);
                s.close();
                py.setup_sleep(60);
                py.go_to_sleep();
                

                If i supply the pysense by usb all works fine, but if i supply it by 5V and GND (first and second pin on the top rigth corner) the Sipy sends only one message.

                Do you have any suggestions?

                1 Reply Last reply Reply Quote 1

                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