Coder Social home page Coder Social logo

allegra42 / android-srf02 Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 5.0 43 KB

Connecting a proximity sensor to Android

Makefile 1.20% C++ 35.20% C 63.59%
proximity-sensor android pandaboard-es linux linux-kernel driver driver-programming aosp-android

android-srf02's Introduction

Adding the SRF02 proximity sensor to Android

In this project, I add a proximity sensor to Android 4.4.4 running on a Pandaboard ES. To do so I had to write a kernel module and write parts of a HAL library. This project was developed during an internship at inovex GmbH. It should be considered work in progress with several ugly details that I know have to be fixed. And they will be in the future -- probably. Only those files I really had to change have been uploaded here.

The project is based on Linaro Android 14.10. U-boot has been replaced by a newer version to get it running on both Pandaboard ES Rev. B2 and B3. The sensor I used was a SRF02 connected via the I2C interface.

What I've done, I described at

Download the Linaro 14.10 Android sources

export MANIFEST_REPO=git://android.git.linaro.org/platform/manifest.git
export MANIFEST_BRANCH=linaro-android-14.10-release
export MANIFEST_FILENAME=panda-linaro.xml

repo init -u ${MANIFEST_REPO} -b ${MANIFEST_BRANCH} -m ${MANIFEST_FILENAME} --repo-url=git://android.git.linaro.org/tools/repo -g common,pandaboard

// Change broken linaro manifest
rm .repo/manifest.xml
cp fixed_manifest.xml .repo/manifest.xml

repo sync

Build

source build/envsetup.sh
lunch pandaboard-eng
export WITH_HOST_DALVIK=false
make -j4 boottarball systemtarball userdatatarball

android-srf02's People

Contributors

allegra42 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.