Charging from Solar via the Expansion Board



  • 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.



  • @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?



  • @maamar Thanks. It works.



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

    alt text

    alt text



  • @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.



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



Pycom on Twitter