Smart device for mechanical characterization of materials