I am using and Adafruit BNO055 IMU and using their provided modules to read the data, i have been able to do so. However i want to be able to turn some of the GPIO pins to high as i want to control stuff from this data, to do that in python you normally use import RPi as GPIO ect. However doing this before the initialisation of the IMU means that the GPIOs aren't available to use for the serial connection (pin 18 , Rx and Tx) and if you do it after you get an error 'GPIO mode already set' however try as i might i can see it being set to any mode in the module. How can i get past this?

  • Your question is vague. You haven't listed any code or what you have tried. I haven't any idea what a "BNO055 IMU" is or how it is connected - provide more details. – Milliways Sep 21 '16 at 0:13

Have you tried using a different library to control the GPIO?

I don't see why Adafruit should care what other libraries are doing.

E.g. try my pigpio or wiringPi etc.

| improve this answer | |
  • the serial connection includes a GPIO pin and if i change to GPIO library it doesn't connect to the sensor. i have had a look at the module for the sensor at it does import adafruits own GPIO library, i now need to find out how to use this library and it isn't that simple (for me any way) – William.lockett Sep 20 '16 at 15:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.