A low frequency energy converter for electromagnetic or piezoelectric energy harvesting