Shop OBEX P1 Docs P2 Docs Learn Events
Javelin Stamp code to communicate to Visual Basic program — Parallax Forums

Javelin Stamp code to communicate to Visual Basic program

Sabre3487Sabre3487 Posts: 16
edited 2005-11-06 22:11 in General Discussion
I·want to simulate a hardware function through a display using VB6 and
a Javelin Stamp. The Javelin stamp used to use sensors to check and
see if screws were present in a design.
Instead of waiting to see if the sensors picked up the presence of a
screw, I wanted to simulate that with a visual display of the design
with screw placements. When I simulate a screw being there with the
stamp I want to then communicate to the VB program and light the
corresponding led.

Does anyone know of the proper javelin to pc communication to handle
this? Is this fairly easily accomplished?
I saw on the parallax website this: RS-232 DCE AppMod
·http://www.parallax.com/detail.asp?product_id=29120
·http://www.parallax.com/dl/docs/prod/appmod/Rs232.pdf

Comments

  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2005-11-06 20:01
    Your 2nd reference shows how to setup communication between basic stamp and vb6.

    If you have the javelin demoboard you don't need the rs232dce appmod kit because

    the javelin demoboard has the sp237 level converter chip and db9 female connector

    onboard. Checkout the javelin manual

    http://www.parallax.com/javelin/downloads.asp

    page 84-89 shows how to setup the javelin demoboard.

    If you rewrite the basic stamp example from your 2nd reference

    for the javelin you will have a working example of javelin to pc communication.

    regards peter
  • Sabre3487Sabre3487 Posts: 16
    edited 2005-11-06 21:54
    What if the only demo board I have is the bp40?· And also wouldn't I still need the adapter if I wanted to watch both the javelin code and the vb code, need to rs232 db9 connections correct?
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2005-11-06 22:11
    If you don't have the javelin board, but you do have a basic stamp board

    with an appmod header, then you need the rs232dce appmod kit.

    To see both javelin communication and the vb communication you

    need two rs232 ports. This also implies you need·two pc com ports.

    If you don't have these, you can consider to add an usb to serial adapter

    to your pc. Parallax has these as well.

    regards peter
Sign In or Register to comment.