see repository of hardware (Arduino) portion of project: https://github.com/the-akze/berkAI-hardware-arduino