Skip to content

Arnau029/Arduino-Car

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino-Car

This project enables remote control of an Arduino-based car through a web interface. A Flask server is used to relay commands between the web interface and an Arduino connected via serial communication.

Table of Contents

  1. Description
  2. Requirements
  3. Dependencies
  4. Setup and Usage
  5. Web Interface Preview
  6. Movement Demonstrations
  7. Project contributors
  8. License

Description

This project showcases how to integrate an Arduino with Python's Flask framework to create an interactive car controller. It serves as a practical example of robotics integration, perfect for learning microcontroller-based projects.

  • For this code, you need Arduino IDE and a compiler for Python.

Requirements

Important

You need this hardware and software for do this proyect

  • Hardware
    • Arduino board (compatible with the pins defined in the code).
    • Motor driver module (e.g., L298N or similar).
    • DC motors.
    • USB connection for Arduino communication.
  • Software:
    • Arduino IDE
    • Python 3.9 or higher.
    • Flask (pip install flask)
    • Serial communication library: pyserial (pip install pyserial).

Dependencies

Important

You need to download the dependencies for the configuration to work.

  • This is for the dependecies for the python code.
pip install flask pyserial
  • The code for Arduino doesn't need dependencies.

Setup and Usage

  • Upload the Arduino code:
    • Open the Arduino IDE and upload the provided .ino file to your Arduino board.
  • Install Python dependencies:
    • Run pip install flask pyserial in your terminal.
  • Run the Flask server: *python app.py
  • The server will start at http://:4353 (replace with the ip the host give you).

Web Interface Preview

screenshot

Movements

Movement Demonstrations

Forward Backward Left Right
Forward Backward Left Right

Project contributors

We are grateful for the efforts of the following contributors who made this project possible:

Arnau Borja Etreve

License

This project is licensed under the MIT License.

Releases

Packages

Contributors

Languages