GithubHelp home page GithubHelp logo

anuragdevon / virtual-car-automation Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 217 KB

Using termux, shell scripting and python sockets communication to create a real-time simulation of car networking inside android-mobiles

Shell 12.06% Python 87.94%
termux python bash socketserver data-visualization data-analysis

virtual-car-automation's Introduction

Car-Networking Simulation Using Android

Using Android-Mobile in-built Sensor, tried to simulate the netwokring of cars.

Pre-requisites:

  • Python version 3.8.5
  • Termux version 0.101
  • Android version 7.0 or above

Tags:

Python Bash

How to get stared:

  • Install Termux and Termux api using playstore in android.
  • Open Termux and update it through pkg apt update
  • Incase upgradation is required, use pkg apt upgrade
  • Install termux api using pkg install termux-api
  • Install the requirements:
    • pkg install python
    • pkg install neofetch
    • pkg install figlet
    • pkg install vim or you can use nano
  • Using termux-sensor -l check all the available sensors.
  • Check for Light, Accelerometer, gyroscope, and Proximity sensor.
  • Using termux-sensor -s "SensorName", you can check the values, use termux-sensor --help to check more methods to display.
  • Since android does not allow us to run executable files inside internal file system we need to copy the contents to termux home directory which is an emulatorm hence we can run executable files, run the following commands:
    • termux-storage-setup, this will grant access to internal storage.
    • move to the directory where you have saved the files, check pwd and copy it.
    • Come to home directory using cd ~/
    • copy the files using cp -r /paste/the/directory/copied/ ~/destination
  • Open client's bash script and chnage the sensors variables you want to use as mentioned above.
  • Make the bash executable using chmod +x model-s.sh or chmod +x model-y.sh
  • Run the script using ./model-y.sh or ./model-y.sh
  • TO BE CONTINUED...

ScreenShots:

  • demo4
  • demo2
  • demo2

virtual-car-automation's People

Contributors

anuragdevon avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.