Experience with gyro?


#1

Someone experience in using gyro-sensor with VIM2.

We use following hardware but we cant find out how we can connect. The interface description is described differently.


#2

Hi, MaKo:
Please be more specific with your questions like:

  • Which gyro-sensor you installed on your VIM2, a simple purchase link is also helpful.
  • How you connect the module to VIM2?

You might need to note that rotation feature is disable on current Android ROMs.

Enjoy!


#3

https://de.aliexpress.com/item/GY-521-MPU-6050-Module-mpu6050-module-3-Axis-analog-gyro-sensors-3-Axis-Accelerometer/32276121395.html?src=google&albslr=221466033&isdl=y&aff_short_key=UneMJZVf&source={ifdyn:dyn}{ifpla:pla}{ifdbm:DBM&albch=DID}&src=google&albch=shopping&acnt=494-037-6276&isdl=y&albcp=664345099&albag=32945289759&slnk=&trgt=61865531738&plac=&crea=de32276121395&netw=g&device=c&mtctp=&gclid=CjwKCAiAvMPRBRBIEiwABuO6qejVNy4_adYyJQiODX39FQQ2ZIv-b_30gQg4fo2SiWkzhuhs19THBRoCBnUQAvD_BwE

Manual rotation works with this app.


So rotation is enabled in Android ROM.


#4


#5

It seems that you need add the Linux driver support for your G-Sensor module first, have you done that?


#6

Form the photo you posted, I cannot read any info about physical connections between the G-Sensor module and VIM2 board.


#7

So our first question is how we can connect the gyro because the interface description is different.


#8

You can check VIM2 Schematic on Khadas Docs for the pinout info than do the connection.

  • VCC --> PIN27 / VCC_3.3V
  • GND --> PIN28 / GND
  • SCL --> PIN22
  • SDA --> PIN23
  • INT --> PIN37

You might need read the module document for other PINs connection.


#9

We read it but the pins named differently :slight_smile:


#10

Can you give us advice how to do… witch driver an how we add?


#11

The Gyro chipset driver.

Basically, Linux have already support some Gyro chipsets, you can just get info from the Linux source tree first than buy corresponding module.

Have fun!


#12

OK…so we looked in the linux tree, organized this gyro and connected it to the board as you showed us. So everything what we tried out doesn´t work. The tool for E2C event shows nothing and nothing happen. Can you give us little support or some links were we can read something about?


#13

Can you help, please?


#14

Are you an developer? You need to build your rom with source code.
Can you describe in detail what do you do? Firstly, I think you need to enable the mma8452 module and dts tree.


#15

OK what we do is to compile an new version… and before we do that we install/enable the driver and enable the mma8452 tree. My Team has a Developer but not Android OS. So all what we do is we have to figure out and lern before. It´s frustrating because we cant find any resources an informations how to do it. I´s like looking for a needle in a haystack. And when we found out something in the next version it will not function again.

So the main problem what we have is to find the right way to setup the gyro feature.


#16

In the new android version this app doesn’t work! At least not with our compiled version.


#17

Hi, appscreen
I booked a Gsensor Mma8452 Module. I will have a test when I received it. :grinning:
jpg_400x400


#18

Your great!! :)… I´m curious about it…


#19

Any updates? :slight_smile:


#20

Yes, I have received the mma8452 gsensor and will start to debug for it.