Master and slave Arduino code for the PHIC