I have barely any knowledge in this area, the most I have done is used my RPi3 with pre-built python libraries for sensors such as ADS1115 so I didn't have to go through the process of understanding the nut and bolts of communicating with the device.
I am trying to use a accel/gyro (choice based on performance, needed something good). I am attempting to decipher how to communicate with the device using i2c on my RPi..it may as well be in another language.
I am hoping someone would be so kind as to give me some pointers / potentially help me develop my code to read the accel/gyro values.
For specifics: I want to read the accel at 16g, the gyro at 2000dps, both at 6664Hz..any filters or anything to improve the accuracy would also be good
Based on tutorials/i2c python doc, I would imagine the code would go something like:
import smbus
i2c_ch = 1
i2c_address = ?x?? #whatever comes up when I detect the i2c address after connecting SDA/SCL wires
bus = smbus.SMBus(i2c_ch)
reg_accel = ? #need help
reg_gyro = ? #need help
reg_config = ? #need help
bus.write_i2c_block_data(i2c_address, reg_config, ?) #send commands to config to get the desired operating characteristics
accel = bus.read_i2c_block_data(i2c_address, reg_accel, ?) #read raw accel data
gyro = bus.read_i2c_block_data(i2c_address, reg_gyro, ?) #read raw gyro data
Please someone help me!! Not my area of expertise