Giter Club home page Giter Club logo

rust-arduino-car-model's Introduction

Model to run an arduino car autonomously

This is a personal project to train and create a model that allow you to drive an arduino car without human intervention.

How to build

make build

How to run

Convert a binary file to a text file

The binary file contains the data captured in the arduino car, like sensor distances, speed, status, etc...

This target will convert the binary file (created in Arduino), to a text file, in CSV format.

make convert

Car Data Struct

To create the model, I decided to start with the following data:

millis: Time where the event occurred
us_left: Distance to the left before an obstacle was found
us_center: Distance to the center before an obstacle was found
us_right: Distance to the right before an obstacle was found
pwmleft: PWM applied to the left motor (from 0 to 130)
pwmright: PWM applied to the right motor (from 0 to 130)
collision: Collistion status: NO_DANGER = 0, WARNING = 1, INMINENT = 2 
status: The current car state: MOVING_BD = 1, MOVING_FD = 2, BRAKING = 3, STOPPED = 4, TURN_RIGHT = 5, TURN_LEFT = 6
direction: The car direction: FORWARD = 1, BACKWARD = 0

rust-arduino-car-model's People

Watchers

James Cloos avatar Ivan Fontanals 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.