Jump to content
I2Cdevlib Forums

Error

Members
  • Posts

    7
  • Joined

  • Last visited

Error's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I got an answer from elsewhere and want to Share it. The problem is that the function getAccelXSelfTest is a basic function and written in C++. I am using Python for the rest of my Code. To use this function you would have to use an implementet function in C++. In Python you could Just read the register 0xD. Pm does sb knows how to just read one Bit of the register? What values die you get from which Register dir the gyro? Mine seem to be wrong. Thanks
  2. I got an answer from elsewhere and want to Share it. The problem is that the function getAccelXSelfTest is a basic function and written in C++. I am using Python for the rest of my Code. To use this function you would have to use an implementet function in C++. In Python you could Just read the register 0xD. Pm does sb knows how to just read one Bit of the register? Thanks
  3. My second question is if It ist possible and how to read a single Bit of a Register. Thanks
  4. Hello, I am not sure that my data from the mpu6050 is correct. Could you please write what data you get if you do read the register 0x43 when the gyro is in rest. Thanks a lot Eric
  5. The second question I've got is that if I read the raw values from the gyro, if it is in rest, the values are all around 256. Not as expected around 0. Could somebody explain this. thanks
  6. Hi everyone This is my first attempt to sensor programming, so please describe everything from basics on thanks. I want to use the the given methods of I2c. As an example the getAccelXSelfTest(). To use it I tried this (here simplificated) code: import smbus bus = smbus.SMBus(1) address = 0x68 print(bus.getAccelXSelfTest()) What is wrong with it. How do I have to call These methods? Thanks a lot for your answers.
  7. Hi everyone This is my first attempt to sensor programming, so please describe everything from basics on thanks. I want to use the the given methods of I2c. As an example the getAccelXSelfTest(). To use it I tried this (here simplificated) code: import smbus bus = smbus.SMBus(1) address = 0x68 print(bus.getAccelXSelfTest()) What is wrong with it. How do I have to call These methods? Thanks a lot for your answers.
×
×
  • Create New...