Commit graph

39 commits

Author SHA1 Message Date
Arne Seime
21dd14d7f3 Remove obsolete logging of soil voltage (always 0) 2024-06-04 16:55:30 +02:00
Arne Seime
20d98d02a0 Log photo adc value, not soil adc 2024-06-03 10:21:51 +02:00
Jan-Henrik Bruhn
905978e8c9
Only read positive voltages in adc.c
The ADC sometimes responds with negative voltages read on the ADC input due to noise. This can lead to very high illuminance readings at night (4095 << 4 to be exact due to two's complement :) ).
This commit caps ADC readings at 0.
2024-02-14 11:59:14 +01:00
rbaron
37ea3a1062
Merge pull request #165 from rbaron/nrf2.5
Update to nRF Connect SDK 2.5
2023-11-08 08:33:01 +01:00
rbaron
28c2809b04 Fix nRF52833 flash partitions
The nRF52833 has only 512 kB of flash. The .dts file was incorrect, as a
product of having it forked from the nRF52840 .dts files, which has 1 MB
of flash.

The new, correct partitions are closely related to the
[nrf52833dk](ec52722861/boards/arm/nrf52833dk_nrf52833/nrf52833dk_nrf52833.dts (L215)).
2023-11-07 21:32:09 +01:00
rbaron
5199ceaa50 Update to nRF Connect SDK 2.5 2023-11-07 18:31:32 +01:00
rbaron
9fdd15626a Better error handling for SHTC3 reading 2023-07-15 11:07:35 +02:00
rbaron
afa53f0e94 Introduce CONFIG_BOARD_REVISION_CODE
Beside having a `CONFIG_BOARD_REVISION` Kconfig string that represents
our semantic versioning for board revisions, the ZigBee sample requires
an integer representation of it. Instead of conditioning the integer
version on the string version only for that sample and having to touch
the ZigBee sample whenever we add a revision, I decided to have a
board-wide config, so that both string and int versions live close to
each other.

Fixes #138.
2023-06-15 07:45:55 +02:00
rbaron
cb40173b6b Remove debug info 2023-03-29 21:46:41 +02:00
rbaron
ebc26fcccd Cleanups 2023-03-29 21:42:41 +02:00
rbaron
e82c1b6bc1 Implements button handling
- DTS bindings
- Debouncing logic
- New `input` for testing and interrupt power profiling
2023-03-29 21:28:24 +02:00
rbaron
5cc40a41f6 Set calibration coefficients for 2.0.0 2023-03-19 15:06:39 +01:00
rbaron
b34bc60a0a Actually use the devicetree calibration coeffs 2023-03-19 15:06:39 +01:00
rbaron
2f7a25e266 Add devicetree calibration coeffs to nrf52833 board 2023-03-19 15:06:39 +01:00
rbaron
e24530b7c3 Fix devicetree-coeffs bug 2023-03-19 15:06:39 +01:00
rbaron
1983f31af9 Store calibration polynomial in devicetree
This will enable us to transparently use different calibration for
different board revisions. The 2.0.0 revision changes the sensing
circuitry and will need its own coeffs.

In this commit, both models are run in parallel for debugging.
2023-03-19 15:06:39 +01:00
rbaron
dbf288138e Add 2.0.0 board revision & CONFIG_BOARD_REVISION Kconfig 2023-03-19 15:06:39 +01:00
Matthew Dawson
af47848b80
Update Zigbee example to work with SDK 2.2.0
The new SDK requires 802.15.4 to be enabled in the board DTS file.

Also disable IPv6 explicitly to avoid compile errors related to its
network stack, since it is not used currently.

Closes #94
2023-01-22 02:51:24 -05:00
rbaron
5d25499ae1 [zb] Implement double-reset factory resetting method 2022-12-27 19:22:01 +01:00
rbaron
54792ce35f
Merge pull request #81 from rbaron/zigbee-sample
Introduce an experimental/educactional/exploratory Zigbee firmware sample
2022-12-24 10:29:38 +01:00
rbaron
c76b8dc289 Fix ADC config for nRF52833 2022-12-21 18:40:48 +01:00
rbaron
fe63fda2f1 Setup Kconfig for prstlib 2022-12-19 18:34:03 +01:00
Ole Odendahl
54382e3356
Removed log level config from board definition.
Moved prst lib log level config to application layer with prst lib default fallback behaviour.
2022-12-18 21:23:10 +01:00
Ole Odendahl
412188502b
Changed name of config value for prstlib default log level. 2022-12-18 16:55:32 +01:00
Ole Odendahl
03b45062c0
Fixing sensor logging millivolts. 2022-12-16 11:49:37 +01:00
Ole Odendahl
228b6f2f16
Making core log level configurable via Kconfig entry. 2022-12-16 11:21:27 +01:00
rbaron
cb6ed73691 Add battery percentage computation 2022-12-09 19:02:55 +01:00
rbaron
a8c7d3c1cd <zephyr/zephyr.h> -> <zephyr/kernel.h> in prstlib 2022-12-06 19:18:37 +01:00
rbaron
cab55d9b8c <zephyr/zephyr.h> -> <zephyr/kernel.h> everywhere 2022-12-04 10:16:00 +01:00
rbaron
bc08c8284a Updates Zephyr imports to use the <zephyr/...> prefix
See https://docs.zephyrproject.org/latest/releases/release-notes-3.2.html#api-changes
2022-12-03 11:26:03 +01:00
rbaron
7c0b83e94e Add blackmagicprobe.board.cmake to board.cmake for both variants 2022-12-03 11:05:24 +01:00
rbaron
f476e69229 Adds board revisions for nRF52833 variant 2022-12-03 11:03:55 +01:00
rbaron
dc88916823 Add board 1.0.0, 1.1.0, 1.2.0 board revisions for nRF52840 variant 2022-12-03 10:46:48 +01:00
rbaron
a93171b9bf Adds support for user-supplied BT address
Also cleans up BLE configs
2022-12-01 19:48:36 +01:00
rbaron
0bda7de7cf Add b-parasite with nRF52833 board definition 2022-11-30 19:18:25 +01:00
rbaron
dbaf44ecc1 Cleanup comments 2022-11-29 20:25:15 +01:00
rbaron
3b104cdf24 Implements BTHome v1 and v2 encodings for ble sample 2022-11-29 20:05:41 +01:00
rbaron
00a7114dd1 Extracts boards/ and dts/ to prstlib 2022-11-27 18:56:47 +01:00
rbaron
5ceccfafcc Extracts prstlib
Moves ble sample to code/nrf-connect/samples
2022-11-27 18:37:42 +01:00