Git Product home page Git Product logo

bluebotcontroller's Introduction

BlueBotController

UML Diagram

UML Overview

Features:

  1. The app uses MVP design pattern
  2. A custom JoystickView simulates a lever-based joystick interface
  3. Joystick positions are normalized with values between -100 and 100
  4. Joystick continuous "position hold" functionality implemented using a dedicated HandlerThread
  5. Asynchronous Bluetooth communication is implemented using RxJava
  6. Test Driven Development practices were applied while overhauling the old version of this app
  7. Added ability to send custom commands to the rover (currently only supports "_off" for safe rover shutdown)

Overview

This is a basic Android App which controls Raspberry Pi W-based rover.
It communicates over standard Bluetooth sockets using Serial Port Profile.
A custom JoystickView serves as a user input mechanisms to control the rover. The JoystickView takes the handle position and translates it into control input. The X and Y coordinates specify direction, while the distance from the center specifies the motor speed.

The directional and control commands are sent in a specially-formatted string over the the serial Bluetooth connection. The Python script on the Pi side seeks out valid commands using regular expressions, parses the input and activates appropriate GPIO pins See python page.

Screenshots


Video Overview

NOTE: the video linked below shows the old version of the app.

IMAGE ALT TEXT HERE

bluebotcontroller's People

Stargazers

Pranav Lathigara avatar Bladymir Tellez avatar Jared Rummler avatar

Watchers

Vladimir 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.