BRT Community

General Category => Discussion - EVE => Topic started by: Rudolph on November 30, 2024, 11:37:49 AM

Title: Feature idea: support an accelerometer for orientation detection
Post by: Rudolph on November 30, 2024, 11:37:49 AM
I was just looking at what accelerometers are available on Mouser, sorted by price, as to detect the orientation of the display the simplest option should do.
And the most inexpensive option that is available today is a MXC4005XC with an I2C interface.

Then it hit me, EVE already is using I2C for the touch sensor.
And at least electrically it would be a no-brainer to add a second chip to the existing I2C bus, the only thing to look out for would be the chips adresses.
So what is missing in order to support an optional accelerometer is some software in the EVE chip to detect such an accelerometer on startup, read the registers if a accelerometer is present, calculate the orientation of the device from it and then provide the information in a register.

REG_ORIENTATION
Bit 2 – 0: screen orientation information bits.
0b'000: Default landscape orientation
0b'001: Inverted landscape orientation
0b'010: Portrait orientation
0b'011: Inverted portrait orientation

Well, maybe that is a dumb idea as I have no idea so far how complicated it is to implement this in software.
Hmm, I could add an accelerometer with SPI to my controller board for EVE,
this might be something extra to do untill BT820 are available to play with. :-)
Title: Re: Feature idea: support an accelerometer for orientation detection
Post by: BRT Community on December 02, 2024, 12:09:53 PM
Hello Rudolph,

Thank you for your post!

Certainly an interesting idea which we will pass along to the development team for review!

Best Regards,
BRT Community