Git Product home page Git Product logo

website-controlled-car's Introduction

Website-Controlled-Car V1

This is fun project made by me in which you can control a Arduino RC car through any device using browser. Im hosting a web server on a raspberry pi which will work as the remote controller. Here is the archetecture behind it so far.

Check the working demo of the project HERE

The Archetecture

Archetecture

The Workflow

  • Read this for hardware setup Link
  • Read this for server setup Link
  • So everything starts with the Flask app, this serve the webpage for the joystick controller.
  • The JavaScript in the webpage is responsible for the shoing the Joystick on screen, reading the joystick position and send the joystick position to the Flask backend using POST request in the /send route.
  • As the Flask app get the joystick position it calcuates the pwm values for the motors and send to arduino though I2C line. But here is problem I am not able to use the I2C bus using my Flask app so I used an another way.
  • The Flask app write the pwm values to a text file named pwmVal.txt.
  • Then an another python program named i2c.py is executed, this program read the pwm vaues from the pwmVal.txt file and send the pwmValues to arduino though the I2C bus
  • No the arduino fetches the pwm valus and run motors according to the pwm values.

Hope you understood the project, if you have any doubt so post the query in the discussion section.

website-controlled-car's People

Contributors

anurag3301 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

pbsgoncalves

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.