Issue with Attaching BME280 Sensor to Raspberry Pi 4B on LinuxCNC

More
26 Nov 2024 07:39 #315278 by 4ashishkr
Hello #MyFirstPostHere,I am trying to attach a BME280 sensor to a Raspberry Pi 4B to monitor environmental variables (temperature, pressure, and humidity). The sensor is connected to the 3.3V, GND, GPIO2, and GPIO3 pins. It works flawlessly when running Raspbian OS (64-bit), and I can retrieve readings via the terminal.However, when trying to use it with LinuxCNC, I encountered multiple errors.Upon checking the I2C buses with the command
ls /dev/i2c-*
, I found
/dev/i2c-20
and
/dev/i2c-21
, but I was expecting
/dev/i2c-1
, as seen in Raspbian OS.I was wondering if there is a solution for this? Is it possible to get this sensor working on LinuxCNC?Please feel free to ask for any additional information.

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
30 Nov 2024 07:39 #315613 by tommylight
No idea if there is a driver for I2C in LinuxCNC, maybe searching on github project page would show if there is anything about it there.

Please Log in or Create an account to join the conversation.

More
More
02 Dec 2024 10:59 #315777 by 4ashishkr
Thank you cakeslob for the response,

I was checking in Linuxcnc system, and the observation was there is no /dev/i2c-1 even if i create it couldn't be read and shows "no such devices or address".

Is it possible to get it ?

What are all the process ?

What am i doing wrong ?

Please Log in or Create an account to join the conversation.

Time to create page: 0.060 seconds
Powered by Kunena Forum