Cheap small self contained microprocessor

The Digispark is an ATTiny85 with a voltage regulator.
If you have another Arduino (UNO maybe?) to do the programming, you can just use an ATTiny85 by itself. Maybe a DC-to-DC voltage regulator to hook up the battery.

That would require minimal soldering and money wise you could end up far under $3.

I'm a software guy and I can do that much soldering...