An analog circuit would be very complex, probably containing at least 10 chips.
A microcontroller can be had for < $1, but you need to have a programmer, and be able to program it.
A microntroller board (Arduino) will cost you about $20, and you still have to program it.
There is no...