Shop OBEX P1 Docs P2 Docs Learn Events
VB6 to control BS2 with PC — Parallax Forums

VB6 to control BS2 with PC

ArchiverArchiver Posts: 46,084
edited 2004-06-21 18:03 in General Discussion
I want to be able to control motors and sensors connected to a BS2 with VB6. I want to do it without using BS2 pins and just the ones that are used to program the BS2, through the 9 pin serial adapter on the board. I read a page that showed how to control a BS2 with VB6 wirelessly but had used pins for the wireless device. Any examples or links are appreciated.


Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!

[noparse][[/noparse]Non-text portions of this message have been removed]

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2004-06-21 14:47
    In the Group 'File' section, see
    AlDemo\BS2_VBDemo.zip

    This is a small but complete example and tutorial
    on using VB6 Pro with the Bs2.


    --- In basicstamps@yahoogroups.com, Kyle Cooper <crazykurby@y...>
    wrote:
    > I want to be able to control motors and sensors connected to a BS2
    with VB6. I want to do it without using BS2 pins and just the ones
    that are used to program the BS2, through the 9 pin serial adapter on
    the board. I read a page that showed how to control a BS2 with VB6
    wirelessly but had used pins for the wireless device. Any examples or
    links are appreciated.
    >
    >
    >
    > Do you Yahoo!?
    > Yahoo! Mail - 50x more storage than other providers!
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2004-06-21 15:49
    You can use the programming port, but there are a couple things to
    understand: 1) You cannot do flow control without additional pins --
    this may be an issue, and 2) the programming port echoes every character
    sent to it, so you're VB program will have to filter anything it sends
    from its receive buffer.

    This article may help:

    http://www.parallax.com/dl/docs/cols/nv/vol1/col/nv41.pdf


    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office



    Original Message
    From: Kyle Cooper [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=0VriDnBLdABIKTNQ1l2zgcBQJRzmvLwHXOSIUV8kfBiLNWry4TtXrOwk0POnSmgVeXbtGAYlvSvDY_Pfzd4]crazykurby@y...[/url
    Sent: Sunday, June 20, 2004 7:18 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] VB6 to control BS2 with PC


    I want to be able to control motors and sensors connected to a BS2 with
    VB6. I want to do it without using BS2 pins and just the ones that are
    used to program the BS2, through the 9 pin serial adapter on the board.
    I read a page that showed how to control a BS2 with VB6 wirelessly but
    had used pins for the wireless device. Any examples or links are
    appreciated.
  • ArchiverArchiver Posts: 46,084
    edited 2004-06-21 18:03
    This is a project I've been working on. I successfully sent 3
    different variables to the Stamp from VB6. I am using the Motor
    Mind B, which I DO NOT recommend with VB6 because the highest baud
    rate it can accept is 2400bps which sometimes makes the steering
    jerky. I don't have the schematics up yet, but hopefully I will get
    to them soon.

    http://home.comcast.net/~a.przybilla/monster_truck.htm

    have fun,
    adam
Sign In or Register to comment.