A boost converter steps up voltage from a battery by switching ... Normally dedicated chips do this at an incredibly high frequency, but the PWM signal from an AVR works well enough.