GithubHelp home page GithubHelp logo

androidthings / robocar Goto Github PK

View Code? Open in Web Editor NEW
32.0 3.0 21.0 268 KB

Android Things robot car controlled by a companion app using local Nearby APIs

License: Apache License 2.0

Java 100.00%
android-things

robocar's Introduction

Android Things Robocar

Introduction

This project contains all the code required to build a robot car that runs on Android Things, as well as a companion "controller" Android app.

This sample uses the following Google platforms and APIs:

  • Android Things - The car's onboard operating system.
  • Nearby APIs - Local communication API used for pairing the robocar to a companion app which controls the car.

Note: The Android Things Console will be turned down for non-commercial use on January 5, 2022. For more details, see the FAQ page.

Pre-requisites

To build the car, you will need the following hardware:

(Optional) To assist in distinguishing between multiple robocars during the pairing process, the robocar also supports alphanumeric displays or RGB LED's for displaying a pairing code. Note that this is meant to assist the user, and is not intended or sufficient as a security measure. If you'd like to add these to your setup, you'll need:

Support and Discussion

If you've found an error in this sample, please file an issue: https://github.com/androidthings/robocar/issues

Patches are encouraged, and may be submitted by forking this project and submitting a pull request through GitHub.

Enable auto-launch behavior

This Android Things app is currently configured to launch only when deployed from your development machine. To enable the main activity to launch automatically on boot, add the following intent-filter to the app's manifest file:

<activity ...>

    <intent-filter>
        <action android:name="android.intent.action.MAIN"/>
        <category android:name="android.intent.category.HOME"/>
        <category android:name="android.intent.category.DEFAULT"/>
    </intent-filter>

</activity>

License

Copyright 2017 Google, Inc.

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

robocar's People

Contributors

jdkoren avatar mangini avatar proppy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

robocar's Issues

Google nearby api 12.0.1 with android things stable release 1.0 throws 8007 STATUS_BLUETOOTH_ERROR

I am using NearBy 2.0 API version 'com.google.android.gms:play-services-nearby:12.0.1' with android things'com.google.android.things:androidthings:1.0'to create a smart home app, but previously upto 8th may it was working fine with the build downloaded from android things console , but from yesterday it is throwing com.google.android.gms.common.api.ApiException:8007 STATUS_BLUETOOTH_ERROR. when i am starting advertisement or discovery whichever maybe. But if I use the previous build(image with apk) of 8th may it is working fine . I tried with that old apk also like new os image with old apk , found not working. In logcat i found it is unable to start listening for incoming connections. I searched SO and google a lot but no solution worked. Even followed this https://stackoverflow.com/questions/46036191/error-codes-in-nearby-connections-2-0/46328410 but no luck. I am using Raspberry PI 3 model B. Help!!

Error : Not able to connect thing and companion app

How to solve this error :

10-24 06:55:38.922 3975-3975/com.example.androidthings.robocar I/FirebaseInitProvider: FirebaseApp initialization unsuccessful
10-24 06:55:38.925 3975-3975/com.example.androidthings.robocar I/InstantRun: starting instant run server: is main process
10-24 06:55:39.910 3975-3975/com.example.androidthings.robocar D/vndksupport: Loading /vendor/lib/hw/[email protected] from current namespace instead of sphal namespace.
10-24 06:55:39.928 3975-3975/com.example.androidthings.robocar E/RobocarActivity: Google API connection failed: ConnectionResult{statusCode=UNKNOWN_ERROR_CODE(8050), resolution=null, message=null}

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.