You can't program the Basic Stamps in a language other than PBasic. If you are just looking for something more "C-like", take a look at the Javelin Stamp, which uses a form of Java.
If you really want to experiment with robotics, the Basic Stamp, and C++, you can write a program that does indirect robotic control via a computer. The Basic Stamp will need to be programmed in PBasic, but a PC based control program cna be written in the language of your choice.
The way it would work is that the BS2 & control program would communicate with each other, with the BS2 providing sensor information to the control program. The control program would then process the information, and give directions back to the BS2 based on the results.
The Boe-Bot Microsoft Robotics Studio kit basically works in this manner, but you can do something similar with any configuration that allows you to communicate between a Basic Stamp & a PC, usually over a serial (wired or wireless) connection.
Post Edited (Kevin Wood) : 7/22/2007 8:15:44 PM GMT
Pbasic is so simple and is, much more powerful than most people think. Also, don't get caught up in the "Horsepower Wars". If you have a program that uses servos or requires some sort of pause statements, an SX28 @ 50_MIPS·with same amount of delays in the program, isn't going to perform any better (unless you use·Assembly) than Pbasic and a BS2. Pbasic allows you to·prototype a project faster and use less code.
Post Edited (Capt. Quirk) : 7/22/2007 8:47:44 PM GMT
C++ can require a lot of memory and horsepower because of its extra functionality. As a result many C++ compilers are not available until you get to the larger chips. An ARM is such a chip. The ARM is MUCH larger and more powerful than the stamp with typically 32K of program space and 8K of ram at the low end. A lot of cell phones and PDA's are made with ARM chips. The PINK module also uses a high end processor that runs C++. Be ready to invest a lot of time and money before you can even write your first class statement.
How about using the Parallax Java chip if you want OO?
Comments
You may want to look into the Parallax SX or Propeller processors - C is available (or soon to be available) for those processors.
If you really want to experiment with robotics, the Basic Stamp, and C++, you can write a program that does indirect robotic control via a computer. The Basic Stamp will need to be programmed in PBasic, but a PC based control program cna be written in the language of your choice.
The way it would work is that the BS2 & control program would communicate with each other, with the BS2 providing sensor information to the control program. The control program would then process the information, and give directions back to the BS2 based on the results.
The Boe-Bot Microsoft Robotics Studio kit basically works in this manner, but you can do something similar with any configuration that allows you to communicate between a Basic Stamp & a PC, usually over a serial (wired or wireless) connection.
Post Edited (Kevin Wood) : 7/22/2007 8:15:44 PM GMT
Post Edited (Capt. Quirk) : 7/22/2007 8:47:44 PM GMT
Paige
Can't you bypass the intrepreter
(or at least use it) to call
'assembly' routines ?
How about using the Parallax Java chip if you want OO?
Regards
Tim
There is no assembler on the PBASIC Stamp since it uses interpretive rather than compiled Basic. Try PBASIC you may like it.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For that facility, the SX is a very nice platform.