Raspberry Pi based cosmic ray detector