You are reading a single comment by @asez73 and its replies. Click here to read the full conversation.
  • Hi @Gordon,

    Yes, this is quite far off.
    I only have one Pico, an original and a NucleoF401RE which, I guess could be the other candidate although it is bulky and lacks the mosfet...

    Unfortunately, I expect to use:

    • deep sleep most of the time (one wake up every 4 hours).
    • setTimeout for shorted durations (3-6 minutes).

    Actually, I was testing the setTimeout when I found this problem.

    So Here are the results of the test you proposed: 0.925 seems to be t a constant value.

    process.memory();
    ={ free: 5076, usage: 24, total: 5100, history: 7,
      gc: 0, gctime: 5.15270233154, "stackEndAddress": 536958912, flash_start: 134217728, "flash_binary_end": 385848,
      "flash_code_start": 134234112, flash_length: 393216 }
    >for (var i in global) print(i+" : "+E.getSizeOf(global[i]))
    JSON : 1
    process : 1
    i : 1
    E : 1
    =undefined
    >    analogWrite(B3,0.5,{freq:0.5});
    =undefined
    >    setWatch(function(e) {
    :      print(e.time - e.lastTime);
    :    }, B4, {repeat:true});
    =1
    NaN
    0.92654609680
    0.92720031738
    0.92611026763
    0.92719173431
    0.92583274841
    0.92541325092
    0.92637145519
    0.92529761791
    0.92329704761
    0.92374420166
    0.92555725574
    0.92385566234
    0.92300796508
    0.92220115661
    0.92258453369
    0.92306327819
    0.92353439331
    0.92302989959
    0.92228221893
    0.92291343212
    0.92221176624
    0.92150974273
    0.92200851440
    0.92271804809
    
About

Avatar for asez73 @asez73 started