Rebuilding a Passap E6000 knitting machine with Arduino and Raspberry Pi