[Feature Request]: sensors i2c (bme280, ahtxx,...) in XIAO nRF52840 y Wio-SX1262 #9424
Replies: 12 comments 2 replies
-
|
Seeed decided to use D6/D7 as UART for GPS in their official firmware, however there is a firmware/variants/nrf52840/seeed_xiao_nrf52840_kit/variant.h Lines 188 to 189 in 68250dc |
Beta Was this translation helpful? Give feedback.
-
|
@porkcube Would it be possible to include the i2c variant in the web flasher? With time and effort I might be able to build this myself but it would be so much easier if it was part of the regular build workflow of Meshtastic. In my attempts to compile the i2c variant, i encountered these problems: |
Beta Was this translation helpful? Give feedback.
-
|
Same error here with the 2.7.17 |
Beta Was this translation helpful? Give feedback.
-
The official firmware version in the official flasher is Seeed's own, they decided to opt for GPS support on those pins instead of i2c so an "official" variant is very unlikely. I have hit the |
Beta Was this translation helpful? Give feedback.
-
|
Sorry, could you be more specific what we have to edit out? I can't seem the find exactly what needs to commented out to make compilation work. |
Beta Was this translation helpful? Give feedback.
-
|
Here is what I've done: variant.cpp: And variant.h: |
Beta Was this translation helpful? Give feedback.
-
|
@spfmoby i think i am doing something entirely wrong, even with your files i am running into the memory error. |
Beta Was this translation helpful? Give feedback.
-
|
Hrmm try adding |
Beta Was this translation helpful? Give feedback.
-
|
@porkcube |
Beta Was this translation helpful? Give feedback.
-
|
I saw that you converted the issue to a "feature request" and thus a discussion. I don't think it's a feature request, but rather a bug because there is a designated firmware to use with the Seeed Xiao nRF52 which doesn't work.
Could you elaborate why this is considered a feature request, I had assumed working i2c and sensor support is one of the core functionality of Meshtastic? |
Beta Was this translation helpful? Give feedback.
-
|
Purely conjecture on my part.... but as has already been mentioned Seeed decided to use D6/D7 as UART for GPS in their officially supported variant which would make |
Beta Was this translation helpful? Give feedback.
-
|
Ok, so if we look into the platform.ini of the Seeed Xiao nRF52, there are two variants of the device defined. seeed_xiao_nrf52840_kit Neither works with i2c sensors. I think they both refer to the "original" manufacturers firmware, with the i2c variant trying to solve the GPS / i2c pins problem, but fails. To get back to the starting point of the discussion: I would call that a bug. In earlier versions of Meshtastic, this i2c version seem to have worked, now it doesn't. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Platform
NRF52
Description
Hello, I have the XIAO nRF52840 and Wio-SX1262 kits. Which pins do I need to use to get a BME 280 I2C sensor working? I have firmware version 2.7.15 beta installed and I've tried pins D4, D5, D6, and D7, but it's not working. Any ideas? Thanks and regards.
Beta Was this translation helpful? Give feedback.
All reactions