Skip to content
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

[Feature Request]: add support for linux iio (Industrial I/O) subsystem for sensors #3857

Open
Jorropo opened this issue May 11, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@Jorropo
Copy link
Contributor

Jorropo commented May 11, 2024

Platform

Linux Native

Description

Linux iio provide many drivers for different kind of sensors:
https://www.kernel.org/doc/html/latest/driver-api/iio/intro.html

  • analog to digital converters (ADCs)
  • accelerometers
  • capacitance to digital converters (CDCs)
  • digital to analog converters (DACs)
  • gyroscopes
  • inertial measurement units (IMUs)
  • color and light sensors
  • magnetometers
  • pressure sensors
  • proximity sensors
  • temperature sensors

It would be nice if sensors that are already supported in meshtastic (pressure, temperature, ...) could fetch data through /sys/bus/iio so any pressure or temperature sensor with a linux driver would be usable in meshtastic.

@Jorropo Jorropo added the enhancement New feature or request label May 11, 2024
@jp-bennett
Copy link
Collaborator

@Jorropo have a suggested affordable sensor to start with?

@Jorropo
Copy link
Contributor Author

Jorropo commented May 11, 2024

There a couple sensors supported by mesthastic already would allow to confirm the feature work properly.
BMP and BME family are the one that come to my mind. https://github.com/torvalds/linux/blob/master/drivers/iio/pressure/bmp280-spi.c#L120-L141

@rexbyrns
Copy link

rexbyrns commented Jun 4, 2024

1-wire is very rich.... I2C to 1-wire bridges are cool..

@thebentern
Copy link
Contributor

thebentern commented Jun 4, 2024

As much as I love the Dallas 1-wire sensors and use them a lot in other projects, we removed support for those in Meshtastic in favor of a rich i2c ecosystem of sensors where we have a clearly defined bus and don't have to add yet-another-gpio pin for a user to hunt down in potentially problematic boards. If you can get i2c to 1-wire bridges going, that would be a welcome addition :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants