PiSupply / PiJuice

Resources for PiJuice HAT for Raspberry Pi - use your Pi Anywhere
https://uk.pi-supply.com/collections/pijuice/products/pijuice-portable-power-raspberry-pi
GNU General Public License v3.0
437 stars 104 forks source link

I've incorrectly specified OCV10 value, and can't stop the PiJuice shutting the Pi down #976

Open leighghunt opened 1 year ago

leighghunt commented 1 year ago

Oh oh - I've incorrectly specified OCV10 value, and now PiJuice thinks it's at 0% and switches off within a minute or so.

Is there a way to reset the OCV10/50/90 values by writing a file through ssh? I can't get into pijuice_cli and edit the settings quick enough before it shuts down.

Unfortunately I've specified a minimum battery threshold at which to sleep.

Background but probably irrelevant - I'm using 15Ah LiFePO4 cells, and all other settings I specify can be seen here - I missed a 3 off my OCV10 setting on one out of 12 PiJuices I'm configuring and didn't spot before it was too late.

░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░┌───────────────────────── PiJuice CLI ────────────────────────┐░░░░░
░░░░░│  Battery settings                                            │░░░░░
░░░░░│                                                              │░░░░░
░░░░░│  Status: Custom profile by: HOST                             │░░░░░
░░░░░│  < Profile: CUSTOM       >                                   │░░░░░
░░░░░│                                                              │░░░░░
░░░░░│  [X] Custom                                                  │░░░░░  <-- Set to Custom
░░░░░│  Chemistry:                LIFEPO4                           │░░░░░  <-- Set to LIFEPO4
░░░░░│  Capacity [mAh]:           15000                             │░░░░░  <-- Set to 15000
░░░░░│  Charge current [mA]:      2500                              │░░░░░  <-- Set to 2500
░░░░░│  Termination current [mA]: 50                                │░░░░░
░░░░░│  Regulation voltage [mV]:  3600                              │░░░░░  <-- Set to 3600
░░░░░│  Cutoff voltage [mV]:      2500                              │░░░░░  <-- Set to 2500
░░░░░│  Cold temperature [C]:     0                                 │░░░░░
░░░░░│  Cool temperature [C]:     2                                 │░░░░░
░░░░░│  Warm temperature [C]:     49                                │░░░░░
░░░░░│  Hot temperature [C]:      65                                │░░░░░
░░░░░│  NTC B constant [1k]:      3450                              │░░░░░
░░░░░│  NTC resistance [ohm]:     10000                             │░░░░░
░░░░░│  OCV10 [mV]:               3131                              │░░░░░  <-- Set to 3131
░░░░░│  OCV50 [mV]:               3263                              │░░░░░  <-- Set to 3263
░░░░░│  OCV90 [mV]:               3303                              │░░░░░  <-- Set to 3303
░░░░░│  R10 [mOhm]:               91.0                              │░░░░░  <-- Set to 91
░░░░░│  R50 [mOhm]:               83.0                              │░░░░░  <-- Set to 83
░░░░░│  R90 [mOhm]:               76.0                              │░░░░░  <-- Set to 76
░░░░░│                                                              │░░░░░
░░░░░│  < Temperature sense: ON_BOARD    >                          │░░░░░  <-- Set to ON_BOARD
░░░░░│                                                              │░░░░░
░░░░░│  < Rsoc estimation: DIRECT_BY_MCU >                          │░░░░░  <-- Set to DIRECT_BY_MCU
░░░░░│                                                              │░░░░░
░░░░░│  < Refresh        >                                          │░░░░░
░░░░░│  < Apply settings >                                          │░░░░░
░░░░░│  < Back           >                                          │░░░░░
░░░░░└──────────────────────────────────────────────────────────────┘░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

That coupled with this has left me stuck.

░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░┌───────────────────────── PiJuice CLI ────────────────────────┐░░░░░░░░░░░
░░░░░░░░░░│  System Task                                                 │░░░░░░░░░░░
░░░░░░░░░░│                                                              │░░░░░░░░░░░
░░░░░░░░░░│  [X] System task enabled                                     │░░░░░░░░░░░
░░░░░░░░░░│                                                              │░░░░░░░░░░░
░░░░░░░░░░│  [ ] Watchdog            Expire period          [ ] Restore  │░░░░░░░░░░░
░░░░░░░░░░│                          [minutes]: 4                        │░░░░░░░░░░░
░░░░░░░░░░│                                                              │░░░░░░░░░░░
░░░░░░░░░░│  [X] Wakeup on charge    Trigger level [%]: 20  [X] Restore  │░░░░░░░░░░░
░░░░░░░░░░│                                                              │░░░░░░░░░░░
░░░░░░░░░░│  [X] Min charge          Threshold [%]: 10                   │░░░░░░░░░░░
░░░░░░░░░░│                                                              │░░░░░░░░░░░
░░░░░░░░░░│  [ ] Min battery voltage 3.3                                 │░░░░░░░░░░░
░░░░░░░░░░│                                                              │░░░░░░░░░░░
░░░░░░░░░░│  [X] Software Halt Power Delay period [seconds]: 20          │░░░░░░░░░░░
░░░░░░░░░░│      Off                                                     │░░░░░░░░░░░
░░░░░░░░░░│                                                              │░░░░░░░░░░░
░░░░░░░░░░│  < Refresh        >                                          │░░░░░░░░░░░
░░░░░░░░░░│  < Apply settings >                                          │░░░░░░░░░░░
░░░░░░░░░░└──────────────────────────────────────────────────────────────┘░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
leighghunt commented 1 year ago

Update - I've managed to update it through timing/luck - so pressure off for me atleast - but I'll leave this open in case there are anyways to resolved it. I've got another 6 to go and it's quite possible I'll mess up again.

OhSoGood commented 1 year ago

From the hardware page ( https://github.com/PiSupply/PiJuice/tree/master/Hardware ):