- LinuxCNC
- General LinuxCNC Questions
- Issue with Attaching BME280 Sensor to Raspberry Pi 4B on LinuxCNC
Issue with Attaching BME280 Sensor to Raspberry Pi 4B on LinuxCNC
- 4ashishkr
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
26 Nov 2024 07:39 #315278
by 4ashishkr
Issue with Attaching BME280 Sensor to Raspberry Pi 4B on LinuxCNC was created 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 foundand, 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.
ls /dev/i2c-*
/dev/i2c-20
/dev/i2c-21
/dev/i2c-1
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19615
- Thank you received: 6609
30 Nov 2024 07:39 #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 or Create an account to join the conversation.
- cakeslob
- Offline
- Platinum Member
Less
More
- Posts: 814
- Thank you received: 234
30 Nov 2024 19:42 #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 or Create an account to join the conversation.
- 4ashishkr
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
02 Dec 2024 10:59 #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 or Create an account to join the conversation.
- LinuxCNC
- General LinuxCNC Questions
- Issue with Attaching BME280 Sensor to Raspberry Pi 4B on LinuxCNC
Time to create page: 0.060 seconds