Sensor values different to Uno
Posted: Sat Nov 09, 2019 5:30 pm
Hi
Sorry if this is a very basic question but I'd like to know how to change code that reads sensor data from things like MPU-6050 boards on an Arduino Uno so it reads it correctly on an ESP32. I realise that the Uno is 16 bit and the ESP32 is 32 but I'm not sure how to change it. Changing int to uint16_t isn't enough. Apologies if this is obvious to many of you but I'd love a clear explanation.
Thanks
Sorry if this is a very basic question but I'd like to know how to change code that reads sensor data from things like MPU-6050 boards on an Arduino Uno so it reads it correctly on an ESP32. I realise that the Uno is 16 bit and the ESP32 is 32 but I'm not sure how to change it. Changing int to uint16_t isn't enough. Apologies if this is obvious to many of you but I'd love a clear explanation.
Thanks