Beaglebone simulation code