I need about 8 I/O digital ports and 2 more analog ports.
Why not use one of the headerless Arduinos? Like a Promini? Not much more than a microcontroller there.
A Arduino Pro Mini is super small.I bought a pro mini clone on Ebay for less than 5 euros.But you need a seperate usb-to-ttl-serial converter to upload the sketch.A Arduino Nano has a usb connector, so you don't need extra hardware.There are more options. Like the Arduino micro, very small, and it connects to the usb.
My projects are usually embedded, no PC connection when running, so I regularly have USB/Serial off board for programming.If end user is not intended to reprogram them, I'll go even farther and only put on an ICSP header and then skip the bootloader.
QuoteI need about 8 I/O digital ports and 2 more analog ports. You could take a look at the Attiny84:http://www.akafugu.jp/images/microcontroller-reference-sheet.png
There are lots of very compact and cheap Arduino clones which IMO are a far better bet than soldering up your own using stripboard etc. They're smaller, neater, probably more robust, and hardly any more expensive.If you want any other devices (H-bridge drivers, keypads, displays, radios, batteries etc) then there are also clones which have these integrated onto the main board which makes the solution even cheaper and smaller.If you're after small+cheap don't bother including a USB connection. There are small clones with them, but plenty of smaller and cheaper ones without, too. All you need is another Arduino running the 'Arduino as ISP' sketch, and some jumper wires between the two sets of ICSP connectors, and you can program your clone without it having a serial or USB port.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16