rbaron / b-parasite

🌱💧 An open source DIY soil moisture sensor
1.85k stars 143 forks source link

Update to nRF Connect SDK 2.5 #165

Closed rbaron closed 7 months ago

rbaron commented 8 months ago

Release notes

Relevant (~breaking~ warning) changes:

rbaron commented 8 months ago

I did a quick sanity check on some of the samples:

blinky

Yep, still blinks

input

Yep, still inputs:

[00:00:01.200,195] <dbg> adc: get_soil_moisture_percent: Read soil moisture 2: -2.09 | Raw 533 | Batt: 2.94 | Dry: 525.19 | Wet: 151.46
[00:00:01.200,256] <dbg> adc: get_soil_moisture_percent: Read soil moisture 2: -2.09 | Raw 533 | Batt: 2.94 | Dry: 525.19 | Wet: 151.46
[00:00:01.210,388] <dbg> adc: prst_adc_photo_read: Read phototransistor: 0 lx | 0.00 V
[00:00:01.233,428] <dbg> shtc3: prst_shtc3_read: Read temp: 20.320587 oC (20)
[00:00:02.033,905] <inf> main: Main loop.
[00:00:04.016,418] <inf> main: Button pressed (debounced)
[00:00:04.192,413] <inf> main: Button released (debounced)
[00:00:05.178,497] <inf> main: Button pressed (debounced)
[00:00:05.363,739] <inf> main: Button released (debounced)
[00:00:06.586,547] <inf> main: Button pressed (debounced)
[00:00:06.744,110] <inf> main: Button released (debounced)

soil_read_loop

*** Booting nRF Connect SDK v2.5.0 ***
[00:00:00.366,180] <dbg> pwm_nrfx: pwm_nrfx_set_cycles: channel 0, pulse 16, period 32, prescaler: 0.
[00:00:00.366,180] <inf> main: input_voltage;soil_adc_output
[00:00:00.866,363] <inf> main: 2.97;530
[00:00:01.366,546] <inf> main: 2.96;531
[00:00:01.866,668] <inf> main: 2.98;533
[00:00:02.366,821] <inf> main: 2.96;529
[00:00:02.866,973] <inf> main: 2.96;530
[00:00:03.367,095] <inf> main: 2.99;533
[00:00:03.867,248] <inf> main: 2.96;530
[00:00:04.367,401] <inf> main: 2.96;529
[00:00:04.867,523] <inf> main: 2.98;531
[00:00:05.367,675] <inf> main: 2.96;531
[00:00:05.867,828] <inf> main: 2.95;531
[00:00:06.367,950] <inf> main: 2.98;333
[00:00:06.868,103] <inf> main: 2.96;219
[00:00:07.368,255] <inf> main: 2.96;204
[00:00:07.868,377] <inf> main: 2.98;204
[00:00:08.368,530] <inf> main: 2.96;201
[00:00:08.868,682] <inf> main: 2.97;198
...

ble

Works with BTHome, measurements shows up in Home Assistant. Quick power profile looks good:

ppk-20231107T181136

zigbee

All good with ZHA, pairs, steers after reboot. No change in baseline current consumption after steering:

ppk-20231107T194459