The invention provides a power supply and an
aerosol generating device, and belongs to the field of
aerosol generating devices. The power supply comprises a shell, a
heart rate detector and a plurality of detection electrodes, the shell comprises a holding face used for holding, the detection electrodes are arranged on the shell and protrude out of the holding face, the
heart rate detector is located in the shell and electrically connected with the detection electrodes, and the detection electrodes are electrically connected with the shell. The
heart rate determining module is used for determining the heart rate according to biopotential measured values obtained by the multiple detection electrodes. When a user holds the power supply, the plurality of detection electrodes are in contact with the hand
skin of the user to obtain biopotential measurement values of different parts of the hand
skin. The detection
electrode protrudes out of the holding surface, so that the detection
electrode can abut against the hand
skin in the holding process, the biopotential measurement value can be more accurately obtained, and the heart rate
detector can more accurately determine the heart rate of a user according to the obtained biopotential measurement value; the user can accurately know the heart rate of the user in the process of using the
aerosol generating device.