Developing small motion data loggers based on Microchip PIC microcontrollers, accelerometers and gyro chips