Code Monkey home page Code Monkey logo

bmw_e46_android_rpi_ibus_controller's Introduction

                              Python Dependencies GitHub Issues Last Updated Contributions welcome

"Appify" your E46 BMW with a Raspberry Pi and your Smartphone! This repository contains the IBUS controller, as well as the Android application which supports smart phones and wearables. This is to be used with the IBUS USB interface which can be acquired from Reslers.de, or from Amazon/eBay.

Blog Series on Medium:

Overview

There are three main components of the solution:

  • Android Tablet - Primary front-end device for interacting with the car
  • Raspberry Pi - Mini-PC that handles communication between the IBUS adapter and the Android device
  • IBUS USB Adapter - USB adapter that provides USB/UART interface from physical wire in car

Android_RPi_IBUS_Overview

There is also an Android Wear (4.4W) component that allows you to control your vehicle from your smart watch!

  • Android Wear Device - Secondary device that provides quick interactions with the car

Android_WEAR_IBUS_Overview

Pre-Requisites

1. Car Installation

  • Remove OEM Navigation Head Unit from BMW
  • Tap the 12V (red) wire, the GND (black) wire, and the IBUS (red/white/yellow) wire
  • Connect IBUS USB adapter to BMW (using 12V, GND, IBUS)
  • Install USB 12V - 5V adapter (using 12V, GND)
  • Install Raspberry Pi in the dash (and power w/ 5V from adapter)
  • Connect IBUS USB adapter to Raspberry Pi via USB cable
  • Connect Ethernet cable to Raspberry Pi (and wire to glove box)

2. Raspberry Pi 3

  • Install Raspbian (or another OS that supports python)
  • Pair Android device with Raspberry Pi via Bluetooth

2a. Running with Docker

  • Install docker and docker-compose
    • curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh
    • pip install docker-compose
  • Download project and run with docker-compose
    • git clone https://github.com/TrentSeed/BMW_E46_Android_RPi_IBUS_Controller controller
    • cd controller/connected_car_controller/
    • docker-compose up --build -d

2b. Running without Docker

  • Install packages
    • apt-get install build-essential bluez bluez-tools libbluetooth-dev
  • Download project
    • git clone https://github.com/TrentSeed/BMW_E46_Android_RPi_IBUS_Controller controller
    • cd controller/connected_car_controller/
  • Install python modules:
    • pip install -r requirements.txt
  • Run the project: python3 start_controller.py bmw-e46

3. Android Mobile / Tablet

  • Update BluetoothInterface.remoteBluetoothAddress of 'connected_car_app/common' with RPi Bluetooth address
  • Build Android project connected_car_app/ via Android Studio
  • Install the applicaton
    • You can build and run in Android Studio by connecting your devices
    • You can also install by transfering the built APKs
      • connected_car_app/app/build/outputs/apk/debug/app-debug.apk
      • connected_car_app/ibuswear/build/outputs/apk/debug/ibuswear-debug.apk

How To Get Started

  • Install the prerequisites above
  • Ensure Android device is paired with Raspberry Pi via Bluetooth
  • Run the controller as daemon: docker-compose up -d
  • Launch Connected Car App on your Android device or wearable

bmw_e46_android_rpi_ibus_controller's People

Contributors

trentseed-oom 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.