A generator that collects oscillation energy to convert to electric energy, the generator including a support portion made of non-piezoelectric material, a piezoelectric body disposed on the support portion and having a polarization direction perpendicular to a longitudinal direction of the support portion, the piezoelectric body being configured to oscillate in an oscillating direction to generate the oscillation energy, the oscillating direction perpendicular to the polarization direction, a first electrode provided on a first surface of the piezoelectric body parallel to the polarization direction, a second electrode provided on a second surface of the piezoelectric body parallel to the polarization direction, and a weight disposed on a third surface of the piezoelectric body facing the support portion.