GithubHelp home page GithubHelp logo

chobbes / emulard Goto Github PK

View Code? Open in Web Editor NEW
5.0 4.0 0.0 484 KB

Arduino emulation! Well, sort of! A fake Arduino.h and black magic for testing Arduino code on any computer, and it even allows you to test entire networks of Arduinos!

C++ 88.17% C 11.83%

emulard's Introduction

EmulArd README

Introduction

EmulArd is an Arduino testing framework based on providing a fake Arduino.h with common Arduino functions.

This framework will also allow for creating networks of fake Arduinos.

Here’s a video of a network of fake Arduinos running a ring orientation algorithm. Each Arduino tries to figure out which neighbours are to the “left” and “right” consistently. The colour is the orientation, and the edges are the connections between the digital pins on the Arduino (red edges are HIGH, black edges are LOW):

Fake Arduino network!

And here is a video of the same algorithm running on a bunch of Ardweenys (small Arduinos). The red LEDs represent their current orientation:

Real Arduino network!

While testing on actual hardware is nice, and is certainly valuable, the ability to simulate the exact same behaviour is quite useful as well. Wiring up a lot of Arduinos in a network for testing can be impractical and time consuming, especially if you want to test a variety of different topologies. You can’t easily see the values of all of the connections without expensive logic analyzers, whereas with EmulArd you can easily view all of the connections and even automatically point out when something goes wrong and print more debugging information. Furthermore, with something like EmulArd you can very easily write a bunch of automated unit tests for your programs, and you can even write tests for how your programs interract in a network of arbitrary topology!

emulard's People

Contributors

chobbes avatar

Stargazers

Sean Stevens avatar gassechen avatar Indragie Karunaratne avatar Justin Hornosty avatar  avatar

Watchers

James Cloos avatar Justin Hornosty avatar  avatar  avatar

emulard's Issues

Installation and Reorganization

The main Makefile was hacked together pretty quickly -- need to reorganize all of the separate parts and make everything install nicely.

Currently the main makefile depends on the name of the cloned directory (should be 'emulard', not 'EmulArd' in order to work properly).

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.