Comparing apples to apples, MCU style
Checking from Microchips site, the current price for the 18F1320 in PDIP package appears to be $2.95 for low quantities to $2.81 for 100+
Additionally, there is a needed crystal/oscillator/resonator to get the device to work. Resonators are cheap, found a 40 MHz one for 0.64 from Digikey.
And a voltage regulator to supply the chip. An LM2937ET-5.0 is $2.06 in low quantities at Digikey.
And headers to access the signals easily. A 40 pin strip is $2.43.
And a serial level translator chip, to get TTL level serial to RS-232 levels. A MAX233CPP+G36 costs $7.45 in low quantities and doesn’t require external caps.
And there are caps needed for the voltage regulator, as well as a decoupling cap or 2 for good measure. Maybe another $1.
And a PCB to put it all on. Places like ExpressPCB and other sometimes have specials for 3 boards for $99. You could even panelize the device if you wanted to get several more boards. Board cost could go to $2 if you squeeze enough.
In addition to having it assembled, if your time assembling boards is worth anything. Probably $4 for a simple one.
So that comes up to about $22.53 each to get a PIC 18F1320 up close to the level of a Basic Stamp 2. Not including the shipping of these parts.
Of course if your time is worthless as far as assembly, and you’d rather use a proto board than have an easy to solder PCB, you could probably get it down to $19 each.
Or you could get a Stamp Stack II from Solarbotics or HVWTech for $35, operating the same as a Basic Stamp 2 in an easier to use package. Or an OEM Basic Stamp 2 in kit from Parallax for $31. Or get a Homebrew Basic Stamp 2 from Dr Peter Anderson for $24.95 plus shipping.
Maybe there isn’t such a big difference…