Skip to content

Add rak12035 VB Soil Monitor Tested & Working #6741

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 45 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
fee9166
[WIP] Add RAK12035VB Soil Moisture Sensor support
fifieldt Mar 7, 2025
37e6769
[WIP] Add RAK12035VB Soil Moisture Sensor support
fifieldt Mar 7, 2025
b0ecfb8
Merge branch 'RAK12035VB' of https://github.com/fifieldt/meshtastic-f…
Justin-Mann Mar 10, 2025
0c41f90
[WIP] Add RAK12035VB Soil Moisture Sensor support
fifieldt Mar 7, 2025
3200102
Merge branch 'RAK12035VB' of https://github.com/fifieldt/meshtastic-f…
Justin-Mann Mar 11, 2025
3ca6d2f
[WIP] Add RAK12035VB Soil Moisture Sensor support
fifieldt Mar 7, 2025
b88ab86
Merge branch 'RAK12035VB' of https://github.com/fifieldt/meshtastic-f…
Justin-Mann Mar 22, 2025
8562d0c
Merge branch 'master' into RAK12035VB
caveman99 Apr 7, 2025
8704c15
Update to 1.0.4 release of RAK12035_SoilMoisture
fifieldt Apr 14, 2025
6f0b083
Merge branch 'master' into RAK12035VB
fifieldt Apr 14, 2025
37c1715
Merge branch 'RAK12035VB' of https://github.com/fifieldt/meshtastic-f…
Justin-Mann Apr 15, 2025
e2b6375
cleanup
Justin-Mann Apr 17, 2025
5c721bd
Merge branch 'pr/6259' into AddRAK12035VB_4.19.25
Justin-Mann Apr 19, 2025
492b35a
cool
Justin-Mann Apr 19, 2025
77cd76b
Merge branch 'master' into AddRAK12035VB_4.19.25
Justin-Mann Apr 25, 2025
6f87b6a
Merge branch 'master' into AddRAK12035VB_4.19.25
Justin-Mann May 5, 2025
adfacf7
.
Justin-Mann May 5, 2025
0a3f27b
..
Justin-Mann May 5, 2025
440f3fd
little bit of cleanup and recompile/upload/test on RAK WISBLAOCK STAC…
Justin-Mann May 5, 2025
b33ddfe
. comments about current limitations and TODOs
Justin-Mann May 5, 2025
b5be032
trunk update
Justin-Mann May 5, 2025
07b76e8
trying to autoformat..
Justin-Mann May 5, 2025
f21235a
fix formatting attempt 2
Justin-Mann May 5, 2025
3ca2937
..
Justin-Mann May 5, 2025
0b31f6d
...
Justin-Mann May 5, 2025
3b642ae
...
Justin-Mann May 5, 2025
5bed595
.
Justin-Mann May 5, 2025
3f2dd95
some corrections and local build success
Justin-Mann May 5, 2025
171ea1b
correction in temp code
Justin-Mann May 5, 2025
58d6f64
grr formatting
Justin-Mann May 5, 2025
ad9bc53
cleanup after a few experiments
Justin-Mann May 6, 2025
b02e33a
remove temp code to overwrite values for temp and humidity protos.. n…
Justin-Mann May 6, 2025
7873fb4
Merge branch 'master' into AddRAK12035VB_4.19.25
Justin-Mann May 6, 2025
34b56ef
update some values in varient for rak wistap
Justin-Mann May 6, 2025
ab0d76f
working out trunk formatting..
Justin-Mann May 7, 2025
3fcb2ab
Merge branch 'master' into AddRAK12035VB_4.19.25
Justin-Mann May 7, 2025
2b8c791
wip
Justin-Mann May 19, 2025
8c9988e
.
Justin-Mann May 19, 2025
226ab3c
Merge branch 'master' into AddRAK12035VB_4.19.25
Justin-Mann May 19, 2025
911f7f5
Merge branch 'master' of https://github.com/meshtastic/firmware
Justin-Mann May 19, 2025
825a17f
Merge branch 'master' into AddRAK12035VB_4.19.25
Justin-Mann May 19, 2025
488216a
Merge branch 'master' into AddRAK12035VB_4.19.25
Justin-Mann May 20, 2025
5ce965d
Merge branch 'master' of https://github.com/meshtastic/firmware
Justin-Mann May 21, 2025
ad56c70
Merge branch 'master' into AddRAK12035VB_4.19.25
Justin-Mann May 21, 2025
fca402c
Merge branch 'master' into AddRAK12035VB_4.19.25
caveman99 May 23, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ plugins:
uri: https://github.com/trunk-io/plugins
lint:
enabled:
- [email protected]
- [email protected]
- [email protected]
- [email protected]
Expand Down
9 changes: 9 additions & 0 deletions src/configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// -----------------------------------------------------------------------------
#define FT6336U_ADDR 0x48

// -----------------------------------------------------------------------------
// RAK12035VB Soil Monitor (using RAK12023 up to 3 RAK12035 monitors can be connected)
// - the default i2c address for this sensor is 0x20, and users are instructed to
// set 0x21 and 0x22 for the second and third sensor if present.
// -----------------------------------------------------------------------------
#define RAK120351_ADDR 0x20
#define RAK120352_ADDR 0x21
#define RAK120353_ADDR 0x22

// -----------------------------------------------------------------------------
// BIAS-T Generator
// -----------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions src/detect/ScanI2C.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ class ScanI2C
DFROBOT_RAIN,
DPS310,
LTR390UV,
RAK12035,
TCA8418KB,
} DeviceType;

Expand Down
14 changes: 13 additions & 1 deletion src/detect/ScanI2CTwoWire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -423,9 +423,21 @@ void ScanI2CTwoWire::scanPort(I2CPort port, uint8_t *address, uint8_t asize)
logFoundDevice("BMA423", (uint8_t)addr.address);
}
break;
case TCA9535_ADDR:
case RAK120352_ADDR:
case RAK120353_ADDR:
registerValue = getRegisterValue(ScanI2CTwoWire::RegisterLocation(addr, 0x02), 1);
if (registerValue == addr.address) { // RAK12035 returns its I2C address at 0x02 (eg 0x20)
type = RAK12035;
logFoundDevice("RAK12035", (uint8_t)addr.address);
} else {
type = TCA9535;
logFoundDevice("TCA9535", (uint8_t)addr.address);
}

break;

SCAN_SIMPLE_CASE(LSM6DS3_ADDR, LSM6DS3, "LSM6DS3", (uint8_t)addr.address);
SCAN_SIMPLE_CASE(TCA9535_ADDR, TCA9535, "TCA9535", (uint8_t)addr.address);
SCAN_SIMPLE_CASE(TCA9555_ADDR, TCA9555, "TCA9555", (uint8_t)addr.address);
SCAN_SIMPLE_CASE(VEML7700_ADDR, VEML7700, "VEML7700", (uint8_t)addr.address);
SCAN_SIMPLE_CASE(TSL25911_ADDR, TSL2591, "TSL2591", (uint8_t)addr.address);
Expand Down
1 change: 1 addition & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,7 @@ void setup()
scannerToSensorsMap(i2cScanner, ScanI2C::DeviceType::DFROBOT_RAIN, meshtastic_TelemetrySensorType_DFROBOT_RAIN);
scannerToSensorsMap(i2cScanner, ScanI2C::DeviceType::LTR390UV, meshtastic_TelemetrySensorType_LTR390UV);
scannerToSensorsMap(i2cScanner, ScanI2C::DeviceType::DPS310, meshtastic_TelemetrySensorType_DPS310);
scannerToSensorsMap(i2cScanner, ScanI2C::DeviceType::RAK12035, meshtastic_TelemetrySensorType_RAK12035);

i2cScanner.reset();
#endif
Expand Down
Loading
Loading