The Arduino is already inexpensive ($20-$40), but the basics can be implemented for less than $10 if necessary:
Here is a recipe for using the atmega168 as a standalone Arduino. It uses the internal oscillator of the Arduino running at 8mhz, and is powered at 3.3 volts.
Become the Maker you were born to be. Try Arduino Academy for FREE!