What's the difference between the BS programming language and PIC's Language?

I have never used PICBasic.
I have never used PICBasic. Swordfish basic works in modules and is free. Try that.

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…

 

You PAY for them?

You know, I don’t think I’ve ever looked at the price of a PIC? Micochip give you them a dozen at a time, and they even pay the postage! So long as you don’t get more than 12 per month (who needs more than that?) you can have 3 of 4 different types each month.

Anyway, that aside, you’re quite correct: we can always trade off time against money. I know a great shop where you can buy a bipedal walking robot for $800 and you don’t need to do any assembly at all, but that’s not really robotics…!

The ever changing question

IN answer to you ever changing question, all those variants which are based around PICs will run on PICs. They are all based on PICs, after all!

Wether the bootloader firmware is AVAILABLE for you to flash into the PIC is a different story. I understand there are freely available through programmers supporting several languages.

 

That is incredably biased

That is incredably biased BTW. I have not checked the price of the 18F1320 since it was 2.07! Digikey buys from the same supplier then adds a dollar to every product they have. Most of your parts are incredably expensive. You can get a 5VDC regulator for a quarter. Caps for 10 cents each. you can get free PCB’s done up to 500dollars worth. ST232 for 1.50. Internal oscilliator.

Also I noticed that you said that it needs a oscilliator to work. You obviously are guessing at what you are trying to get.

Pot - Kettle - black
Look in the mirror kid, for all the bias you want.

 

 

Not quite the point, but samples are good

Yes, I agree BOA, samples can be very good to have fun with, to build up. But my main issue was with the comparison of the price of a microcontoller to that of a small development system.

Can’t say I’ve sampled 12 of any type in a month, but do have a few freebie AVRs hanging about. I think I’ve gotten a few h-bridges too, and some other devices.

Each person does have their own definition of what makes thier hobby. I still have a difficulty calling a remote controlled device a robot, though some Battlebots are very sophisticated. All that craftsmanship, just to see it ripped up in an arena! I did know a robot builder that was trying to smelt his own metal, to put in piece molds for his robot projects. I don’t think he ever tried growing silicon crystals though, for making his own ICs or MCUs. Most of my robots are homebuilt, though I do have 2 or 3 kit robots. Oh, and one RC conversion. It is more fun getting something put together as you envision it. Most of these do have microcontroller development boards on, rather than MCU systems I’ve put together.

Those prices are not
Those prices are not accurate of actual parts either. No way 2 capacitors cost 1 dollar. 7 dollars for a 232?

**Links to pricing **

I did not hide how I found pricing. I generally provide back-up and details for the statements I post. Since you find it difficult to look this up yourself, check these :

MAX233CPP+G36 from Digikey 7.45 just as stated. This was the first 232 transceiver I came across that did not require external capacitors, to allow for an easier hook-up.

As stated in my post, I figured ABOUT a dollar for 3 caps not 2. For the low drop out reg I posted, a needed 10 uF electrolytic cap at Digikey is a Panasonic ECE-A1CKA100 priced at 14 cents. Additionally, here is a Vishay K104Z15Y5VE5TL2 0.1 uF cap that can be had at 0.066 for a minimum order of 10. Since only 2 would be needed, that comes to a whole 13.2 cents. So yeah, I overestimated by about 73 cents. Congratulations, ya got me in my evil scheme.

 

Too true
Yes. You have to laugh, though: I wonder if we could create the electrons from which the component parts are manufactured?

You seem to be trying to
You seem to be trying to start an arguement.

I don’t think you’re helping

I don’t think you’re helping with your comments… :slight_smile:

Anyway, his original point was just that it requires a few other components to get it to work and it’s not just the cost of the mcu that you should look at…but I’m sure that you already got that.

The picaxe command set is

The picaxe command set is very similar to the bs1 command set from what I’ve looked at of the source. I’ve used it also to use some of the parallax products as it easily converts. There are only a few commands, like pot(bs1) and adc(picaxe) for example that are different but do esentually the same thing. I think the picaxe basic also has some extra commands that are helful and of course some of the functions only run on certain models.

The bs2 uses several of the same commands as the bs1 with some added extras to do more advanced functions.

As far as the standard pic(generic), I think it’s covered in several of the comments above.

It can b e much cheaper to
It can b e much cheaper to make a 18F1320 board. It all depends on how you design it, so It could be a lot less or a lot more than a BS2, but thats the thing, you can make it how you want. the BS2 is already premade, so you would need a pinout board for pretty much a pinout board. He is obviously thinking of a board that is expensive.

Reminds me of this XKCD

Reminds me of this XKCD comic. :slight_smile:

Dan

Lol! so true…
Lol! so true…

Moi?

Let see, you make a wildly inaccurate comparison, accuse me of bias, present half truths as a rebuttal without backup, and accuse me of lying.

So no, I’M not trying to start an arguement.

Certainly!

It indeed can be much cheaper or more expensive to make any mcu into an operating robot controller.

What I was trying to do was develop a price list for making an 18F1320 into something that had the equivalent functionality of a Basic Stamp 2, for a more accurate price comparision.

That includes a low drop voltage regulator (not just any 7805), RS232 translation, a resonator, headers pins, and a PCB to put it all on that are all present on the Basic Stamp 2. And I was not adding the serial EPROM that they have.

I did leave a hole in the comparison accidentally, but you haven’t found it yet.

 

They also have a brownout

They also have a brownout detector onboard.

This is a better example of what is onboard.

http://www.me.psu.edu/rahn/me462/bs2csche.gif

or this one as well

http://www.me.psu.edu/rahn/me462/bs2_fig2.gif

The 18F1320 has a internal
The 18F1320 has a internal brownout detector.