• Thanks Gordon,

    and what do you think about charging battery from Pico? I thought to use voltage divider and then connect it to analog pin to read it and "stop" fet from charging by software,
    would my code be ok for this?

    function stop(){
      digitalWrite(B0,1);
    }
    
    function charge(){
      digitalWrite(B0,0);
    }
    
    function check(){
     var a = analogRead(A5)*E.getAnalogVRef()*2;
      console.log(a);
      if(a>3.7) stop();
      else if(a<3.71) charge();
    }
    
About

Avatar for bigplik @bigplik started