Shop OBEX P1 Docs P2 Docs Learn Events
BS1-USB newbie question — Parallax Forums

BS1-USB newbie question

eddie69eddie69 Posts: 3
edited 2007-02-15 20:15 in BASIC Stamp
Hi,

I am new to this whole stamping experience, so please excuse my ignorance. I am trying to get a PIR sensor Module (Parallax # 555-28027)·to interact·with a BS1USB card using Visual Basic 2005. I have read some other posts in which they referenced VB net, but have not find to much help there either.
Basically, I want to be able to manage an VB application depending on the input state change of the PIR sensor. More like a security system in which the VB application will do something like making a sound or send an email if the PIR sensor changes state.

I am not sure if this could be done just with these materials, or I might have to adquire something else. So far I only have a BS1USB and PIR sensor.
I have the PIR sensor wired to BS1 using Vdd to provide power and Vss to provide ground. The Out from the PIR sensor comes in to the BS1 pin 0.

I have not been·able to verify the simplest functionality, a least to see it I could monitor any input state changes using Basic Stamp Editor in Debug.

Any help or direction will be really appreciated,

Respectfully,
Eddie

Comments

  • FranklinFranklin Posts: 4,747
    edited 2007-02-14 03:48
    It will work on the stamp end. How will you poll the stamp for input? The stamp will know if the sensor pin is high (or low) and will send a message to whatever is listening. There are examples of this in the documentation for the stamps in class workbooks.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • BeanBean Posts: 8,129
    edited 2007-02-14 14:39
    Eddie,

    This will help you http://www.parallax.com/dl/docs/cols/nv/vol7/col/NV131.pdf

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cheap used 4-digit LED display with driver IC·www.hc4led.com

    Low power SD Data Logger www.sddatalogger.com
    SX-Video Display Modules www.sxvm.com
    Stuff I'm selling on ebay http://search.ebay.com/_W0QQsassZhittconsultingQQhtZ-1

    "USA Today has come out with a new survey - apparently, three out of every four people make up 75% of the population." - David Letterman
  • eddie69eddie69 Posts: 3
    edited 2007-02-14 16:33
    Thanks for the quick response, I will take a look at your recommendations.
    Once again, thanks for the kind responses.
  • eddie69eddie69 Posts: 3
    edited 2007-02-15 20:15
    I went thought your suggeted material and found it very interesting. The examples are in Visual Basic 6 and will not·upgrade to work·on Visual Basic 2005. Most of scripting·is out of date. Though, It looks like the BS1USB is an old product, isn't it?

    Dou you recommend another USB module better suit for this kind of job?
    What is the main difference between bs1 and bs2 programming?

    What will be needed to get an on/off command across USB to an application?

    Once again thanks for your time,
    Eddie
    ·
Sign In or Register to comment.