Skip to content

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!

Notifications You must be signed in to change notification settings

Chobbes/EmulArd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

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!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published