Adding an accelerometer to Android
#1
I have a accelerometer for Arduino (MPU-6050) It has connections for VCC, GND, SCL SDA, XDA, XCL, AD0, and INT. How difficult would it be to use this with Android for the screen rotation and other compass/Gyro android features? Could it possibly be plug and play?
#2
It's not possible in the current build of Android, cause someone forgot include i2c supporting in the core.


Sent from my iPhone using Tapatalk
#3
Thank you for letting me know. Hopefully someone will add it in the future.

Sent from my SM-G930V using Tapatalk
#4
(06-24-2016, 05:43 PM)modsbyus Wrote: Thank you for letting me know. Hopefully someone will add it in the future.

Sent from my SM-G930V using Tapatalk

I will explore with Android to add in this feature.
#5
Let me know when you want me to test it.

Sent from my SM-G930V using Tapatalk
#6
ya it would be nice to be able to attach all kind of sensors via i2c specialy acelerometer and compass Big Grin
By. Zoidiano0!
Installed:
LAMP: Linux , Apache2.4 , Mariadb, phpMyadmin, PHP5 
Java 8 arm by oracle
Netbeans 8.1
chromium (uses way toooo much Ram)

Pine64 Head Unit Project.!
#7
(06-25-2016, 02:23 PM)modsbyus Wrote: Let me know when you want me to test it.

Sent from my SM-G930V using Tapatalk

Noted and thanks in advance, I will explore and will ping you when need your assistance.
#8
I have an I2C acelerometer and photosensor as well as a bunch of others. I know there addresses as well, so if we can get the I2C working I can test, as long as someone lets me know how to set the address of the sensor in android... and assuming I can get the darn images to work... I have burned them several times now and got it working once, but broke it accidentally when I was restoring app data from the HDMI install. for some reason two computers with two seperate cards that have held android installs before say they finish burning magic complete in phoenix and none of them will boot after 30 minutes to an hour or more.... considering opening another thread about it. When I look at the cards after burning they just show up as an empty partition formatted with fat32. That does not seem right to me, and I can send data to them manually... not sure whats up ... so... I am going to burn here for another hour maybe and then if its still no go, I will give up and start a help me thread hahaha.... Sad
Little beats big when little is smart. First with the head, then with the heart.  P.K. ~Power of One~
#9
(06-25-2016, 02:03 PM)tllim Wrote:
(06-24-2016, 05:43 PM)modsbyus Wrote: Thank you for letting me know. Hopefully someone will add it in the future.

Sent from my SM-G930V using Tapatalk

I will explore with Android to add in this feature.


it would be great if other interfaces (SPI, GPIO) have also been added


Sent from my iPhone using Tapatalk
#10
so, there's been a release since the post saying it was going to be looked at and today (the 20160711 release)
was it part of that release? does i2c work now?


Possibly Related Threads…
Thread Author Replies Views Last Post
  Android 6.0 Tablet and TV (release candidate, maintained) ayufan 228 170,905 12-29-2020, 01:13 AM
Last Post: firmwarefile
Shocked Remote for Android? liodra 18 15,294 12-23-2020, 06:11 AM
Last Post: Learnincurve
  Android Things OS dqvsra 2 3,390 12-03-2019, 09:52 AM
Last Post: hangglider
  Is there another link for Android images? Maalth 3 2,830 10-10-2019, 07:57 AM
Last Post: tophneal
Question Android SDK Oreo NGC6691 2 2,449 07-15-2019, 08:29 PM
Last Post: dazza5000
  Putting Android 9 RockPro64 source into easier to manage repositories dazza5000 0 1,479 07-15-2019, 08:29 PM
Last Post: dazza5000
  Android 5.1.1 TV (old-stable, no longer maintained) ayufan 194 121,038 03-12-2019, 04:53 PM
Last Post: neosapien
  Issues with SD Card and Running Android Twistedx 0 1,619 02-26-2019, 11:58 AM
Last Post: Twistedx
  Android 7.1 (PINE A64(+)) pineadmin 59 57,508 02-10-2019, 07:44 PM
Last Post: mmmarcus
  +LTS/SOPINE Android SDK support and Customization biplab777 1 2,116 01-07-2019, 01:21 AM
Last Post: tllim

Forum Jump:


Users browsing this thread: 1 Guest(s)