Shop OBEX P1 Docs P2 Docs Learn Events
Programming in other languages? — Parallax Forums

Programming in other languages?

Alex (ITT)Alex (ITT) Posts: 1
edited 2009-06-22 06:10 in BASIC Stamp
Besides PBASIC, are there any other languages you can use to program a Basic Stamp 2 module?

Thanks.

Comments

  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2009-06-20 09:29
    Not·for·a Basic Stamp module.
    But Parallax offers other DIL24 modules with identical pinout.
    Javelin Stamp is programmed in java subset.
    Spin Stamp is programmed in Spin/Assembly and there are
    compilers/interpreters for PBasic, C, Forth.

    regards peter
  • HumanoidoHumanoido Posts: 5,770
    edited 2009-06-20 10:43
    You can program in some actual languages on the Stamp,
    such as Penguin Language on the Penguin Robot and
    P-Lan, a piezo based language for the Basic Stamp
    supercomputer series. The newest Basic Stamp Super-
    computer will have an assembly guide that touches on
    this topic. I will have the info posted in the Project Forum
    in a week to 10 days (or sooner) with the release of
    a new SBS Stamp Supercomputer project.

    PBASIC will also run some other languages that were
    created for the Observatory and the Optoelectronics
    Interface. The language is OPTICS, though it will need
    some slight conversions to run on the Stamp. It is a
    project already in the works. This is a language that
    controls objects through the use of optical light. It can
    move a two ton dome, command a Thermodynamic
    Equalizer, set lights, Speech, Recognition, etc.

    There is a wireless language recently developed for
    two BS2px processors. It sends various English-based
    words and codes over a serial transfer. The programming
    is straight forward. This will appear in an upcoming book.

    There is a translator language program that uses the
    BSS Basic Stamp Supercomputer and EMIC TTS board
    that handles some English and Chinese language. It's
    limited to a few paragraphs though could become the
    basis of a much larger Stamp system.

    I would think there are many other languages that
    will run on the Stamp with PBASIC as the foundation.

    humanoido
  • Mike GreenMike Green Posts: 23,101
    edited 2009-06-20 15:08
    As Peter mentioned, you can only program the Basic Stamps in PBasic. They have an interpreter built-into the processor chip that's designed specifically for Basic programs. The format of the interpretive code is proprietary to Parallax and, although some people have figured out its format, no one has made any other compilers for it. The "other" languages that humanoido has mentioned all have interpreters written in PBasic, so you have two levels of interpretation which slows things down rather impressively.
  • LeonLeon Posts: 7,620
    edited 2009-06-20 17:53
    The BS chip is actually a pre-programmed Microchip PIC device. If you use an actual PIC you can program it in a variety of languages including assembler, BASIC, C and JAL (based on Pascal.

    Leon

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Amateur radio callsign: G1HSM
    Suzuki SV1000S motorcycle
  • xanatosxanatos Posts: 1,120
    edited 2009-06-20 22:19
    Humanoido, did I read your post right that the OPTICS setup does voice recognition???

    If so, where might I find this?

    Thanks!
  • HumanoidoHumanoido Posts: 5,770
    edited 2009-06-21 13:27
    OPTICS language controls things through the Optoelectronic
    Interface. It controls a voice recognition unit and controls a
    speech unit. It does not generate speech. I wrote OPTICS
    and used it frequently but did not publish it. Now I'm working
    on a Stamp version of the language, and will post it when
    completed. I agree we need affordable simple voice
    recognition for the Parallax Basic Stamp.

    humanoido
  • Larry~Larry~ Posts: 242
    edited 2009-06-21 17:46
    Is this interface the optoelectric·/ CIV interface ?
  • HumanoidoHumanoido Posts: 5,770
    edited 2009-06-22 06:10
    This is THE Optoelectronic Interface that I invented some years ago and it was written up in the astronomy magazine - Sky & Telescope. At the time, the chips were not available so I made my own. Eventually I will write up the home "chip making process" too. The first unit built handled a couple channels. It worked so well, the upgrade handled a massive number of channels and I ended up programming everything with OPTICS language and running the entire complex through it. It will be a really great project developing a Basic Stamp version with both the language and the interface.

    humanoido
Sign In or Register to comment.