- Posts: 9
- Thank you received: 0
Issue with Attaching BME280 Sensor to Raspberry Pi 4B on LinuxCNC
1 year 11 months ago #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
, I found
and
, but I was expecting
, 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.
Code:
ls /dev/i2c-*
Code:
/dev/i2c-20
Code:
/dev/i2c-21
Code:
/dev/i2c-1
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22012
- Thank you received: 4
1 year 11 months ago #315613
by tommylight
Replied by tommylight on topic Issue with Attaching BME280 Sensor to Raspberry Pi 4B on LinuxCNC
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 to join the conversation.
1 year 11 months ago #315679
by cakeslob
Replied by cakeslob on topic Issue with Attaching BME280 Sensor to Raspberry Pi 4B on LinuxCNC
probably possible, here are a few rpi/ i2c driver samples i have savedĀ
github.com/bosston88/LinuxCNCRPi/blob/ma...hive/i2c%20example.c
github.com/bosston88/LinuxCNCRPi/blob/master/mcp3421.c
github.com/bosston88/LinuxCNCRPi/blob/master/si7021.c
github.com/thgerner/hal_mcp23017
github.com/bosston88/LinuxCNCRPi/blob/ma...hive/i2c%20example.c
github.com/bosston88/LinuxCNCRPi/blob/master/mcp3421.c
github.com/bosston88/LinuxCNCRPi/blob/master/si7021.c
github.com/thgerner/hal_mcp23017
Please Log in to join the conversation.
1 year 10 months ago #315777
by 4ashishkr
Replied by 4ashishkr on topic Issue with Attaching BME280 Sensor to Raspberry Pi 4B on LinuxCNC
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 ?
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 to join the conversation.
Time to create page: 3.180 seconds
