Giter Club home page Giter Club logo

speeduino-serial-sim's Introduction

Speeduino Serial Simulator

This Arduino sketch provides a basic simulation of a Speeduino ECU serial interface, generating and transmitting simulated real-time engine status data. The simulation includes a simplified engine model and supports the 'A' command for real-time data. This solution could be useful when quickly testing logging, gauge or other Speeduino ECU implementations without the ECU itself. Hopefully more detailed serial interface simulation will be added in future releases.

Table of Contents

Prerequisites

Make sure you have the following tools installed before running the simulator:

Installation

  1. Clone the repository
  2. Open the speeduino-serial-sim.ino file using the Arduino IDE.
  3. Connect your Arduino board to your computer.
  4. Select the appropriate board and port in the Arduino IDE.
  5. Upload the sketch to your Arduino board.

Usage

  1. Upload the sketch to your Arduino board.
  2. Open the Arduino Serial Monitor (or any other serial communication tool) to view the simulated engine data.
  3. The sketch listens for the 'A' command, and upon receiving it, responds with simulated real-time engine data.

Customization

Feel free to customize the simulation parameters and add more features according to your needs. The key parts of the code for customization are:

  • The EngineStatus struct: Modify this structure to include or exclude specific engine parameters.
  • The EngineSimulation.cpp class: Adjust the simulation logic to better match your requirements.
  • The baud rate: You can change the baud rate by modifying the SERIAL_BAUD_RATE constant.

Compatibility

This simulator is a basic implementation and just barely been tested for compatibility with a real Speeduino ECU system. It currently supports only the 'A' command for basic real-time data.

Use cases

Can be used together with speeduino-to-mqtt project to generate test data and golf86-info to display in on LED matrix display. This was the original use case that this was created for: to test pushing parameters to MQTT and display without physical ECU.

License

This project is licensed under the MIT License. Feel free to modify and distribute it as needed.

Note: This simulator is a basic implementation and may not fully represent the complexity of a real Speeduino ECU system. Use it for educational or testing purposes only.

speeduino-serial-sim's People

Contributors

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