Foosball hardware project using PIC and RaspberryPi