Help Needed: Error in Real-Time Data Acquisition Using I2C on BeagleBone Black
Hello guys, am settling up the BeagleBone Black for real-time data acquisition using I2C on an embedded Linux OS? I have tried setting up the BeagleBone Black with the embedded Linux OS, configured the I2C protocol on the BeagleBone Black, connected the I2C device to the BeagleBone Black, implemented the necessary code to communicate with the I2C device, attempted to acquire real-time data from the I2C device.
But keep getting the error
Failed to acquire bus access and/or talk to slave.
This is my code
Can anyone help me with documentations or steps I can use or study to solve my current predicament
@Middleware & OS @HelperSolution:Jump to solution
Thanks, it worked can u help me with any documentations so I can study more in it
7 Replies
You can use i2cdetect command to check your slave address is exist or not
I think it does not exist on bus
Hi make sure your user has permission to access the I2C bus. You might need to add your user to the i2c group using
Might be problem with your i2C permission
Okay I would try this now
Okay, I should replacer
$USER
with the name of my user right??Yes sure, see if it works
Solution
Thanks, it worked can u help me with any documentations so I can study more in it