Shop OBEX P1 Docs P2 Docs Learn Events
Webcam & Stamp? — Parallax Forums

Webcam & Stamp?

ArchiverArchiver Posts: 46,084
edited 2003-07-20 15:48 in General Discussion
Hi, I am wondering if anyone has connected a BS2 to a USB device like
a Webcam. I have rigged up such a circuit with the green USB wire to
one pin and the white wire to another pin on the BS2. Using SERIN, I
manage to read 255 on the green and 0 on the white. I wish to be
able to coax the webcam to send data to the Stamp for analysis.
Appreciate any pointers. Thank you!

Best Regards,
George

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-07-19 21:59
    People have made USB-Stamp chip interfaces (one being
    the www.ftdichip.com. The USB standard is very nice,
    supporting 48 MBit/Sec (USB 1.1). You can connect
    a BS2's signals to a USB port to a PC this way.

    However, what you have done by wiring up to the
    'green' and 'white' wire does not meet the USB
    standard. This is not an RS-232 compatible
    standard -- which is what SERIN/SEROUT do.
    I don't think you are reading anything meaningful
    this way, nor will you be able to send anything
    meaningful this way.

    Parallax carries the CMU-Cam, which interfaces
    with the Stamp, and has on-module processing.
    The BS2 will definitely be too slow to do any
    useful pixel processing or frame analysis
    on-chip.

    Your best bet is to learn how to program the
    WebCam from the PC itself, using the PC's
    USB port for the purpose. This is much more
    likely to work than the BS2, as you have a
    high-bandwidth PC processor, loads of memory,
    and all the necessary hardware already in place.

    --- In basicstamps@yahoogroups.com, "gloo0037" <gloo0037@y...> wrote:
    > Hi, I am wondering if anyone has connected a BS2 to a USB device
    like
    > a Webcam. I have rigged up such a circuit with the green USB wire
    to
    > one pin and the white wire to another pin on the BS2. Using SERIN,
    I
    > manage to read 255 on the green and 0 on the white. I wish to be
    > able to coax the webcam to send data to the Stamp for analysis.
    > Appreciate any pointers. Thank you!
    >
    > Best Regards,
    > George
  • ArchiverArchiver Posts: 46,084
    edited 2003-07-20 03:58
    Allan ,

    Thanks for your reply...what I need to do is to use the BS2 to
    analyse
    small amounts of data from a USB Cam. I know I could use a PC but
    that
    would be an overkill in my area. I want a portable solution which is
    offered by the BS2. I do not wish to use the CMU Cam as I want to be
    able to use any off the shelf webcam. Also, I am not concerned about
    following USB standards as this is a standalone gadget that will not
    connect to the PC. I cannot reveal more as I am under
    non-disclosure.

    -George

    --- In basicstamps@yahoogroups.com, "Allan Lane" <allan.lane@h...>
    wrote:
    > People have made USB-Stamp chip interfaces (one being
    > the www.ftdichip.com. The USB standard is very nice,
    > supporting 48 MBit/Sec (USB 1.1). You can connect
    > a BS2's signals to a USB port to a PC this way.
    >
    > However, what you have done by wiring up to the
    > 'green' and 'white' wire does not meet the USB
    > standard. This is not an RS-232 compatible
    > standard -- which is what SERIN/SEROUT do.
    > I don't think you are reading anything meaningful
    > this way, nor will you be able to send anything
    > meaningful this way.
    >
    > Parallax carries the CMU-Cam, which interfaces
    > with the Stamp, and has on-module processing.
    > The BS2 will definitely be too slow to do any
    > useful pixel processing or frame analysis
    > on-chip.
    >
    > Your best bet is to learn how to program the
    > WebCam from the PC itself, using the PC's
    > USB port for the purpose. This is much more
    > likely to work than the BS2, as you have a
    > high-bandwidth PC processor, loads of memory,
    > and all the necessary hardware already in place.
    >
    > --- In basicstamps@yahoogroups.com, "gloo0037" <gloo0037@y...>
    wrote:
    > > Hi, I am wondering if anyone has connected a BS2 to a USB device
    > like
    > > a Webcam. I have rigged up such a circuit with the green USB
    wire
    > to
    > > one pin and the white wire to another pin on the BS2. Using
    SERIN,
    > I
    > > manage to read 255 on the green and 0 on the white. I wish to be
    > > able to coax the webcam to send data to the Stamp for analysis.
    > > Appreciate any pointers. Thank you!
    > >
    > > Best Regards,
    > > George
  • ArchiverArchiver Posts: 46,084
    edited 2003-07-20 15:48
    Fair enough.
    You may not care about USB standard, but if
    you want the USB camera to talk to the BS2,
    you'll have to have some way of connecting
    which is USB compatible.

    Note there are USB 'master' devices (PC),
    and USB 'slave' devices (the camera, and
    FTDIChip's solutions). To make this work,
    you're going to need a USB 'master' device.

    There used to be WebCams which spoke RS-232,
    and these were much easier to interface
    with the BS2.

    --- In basicstamps@yahoogroups.com, "gloo0037" <gloo0037@y...> wrote:
    > Allan ,
    >
    > Thanks for your reply...what I need to do is to use the BS2 to
    > analyse
    > small amounts of data from a USB Cam. I know I could use a PC but
    > that
    > would be an overkill in my area. I want a portable solution which
    is
    > offered by the BS2. I do not wish to use the CMU Cam as I want to be
    > able to use any off the shelf webcam. Also, I am not concerned
    about
    > following USB standards as this is a standalone gadget that will
    not
    > connect to the PC. I cannot reveal more as I am under
    > non-disclosure.
    >
    > -George
    >
    > --- In basicstamps@yahoogroups.com, "Allan Lane" <allan.lane@h...>
    > wrote:
    > > People have made USB-Stamp chip interfaces (one being
    > > the www.ftdichip.com. The USB standard is very nice,
    > > supporting 48 MBit/Sec (USB 1.1). You can connect
    > > a BS2's signals to a USB port to a PC this way.
    > >
    > > However, what you have done by wiring up to the
    > > 'green' and 'white' wire does not meet the USB
    > > standard. This is not an RS-232 compatible
    > > standard -- which is what SERIN/SEROUT do.
    > > I don't think you are reading anything meaningful
    > > this way, nor will you be able to send anything
    > > meaningful this way.
    > >
    > > Parallax carries the CMU-Cam, which interfaces
    > > with the Stamp, and has on-module processing.
    > > The BS2 will definitely be too slow to do any
    > > useful pixel processing or frame analysis
    > > on-chip.
    > >
    > > Your best bet is to learn how to program the
    > > WebCam from the PC itself, using the PC's
    > > USB port for the purpose. This is much more
    > > likely to work than the BS2, as you have a
    > > high-bandwidth PC processor, loads of memory,
    > > and all the necessary hardware already in place.
    > >
    > > --- In basicstamps@yahoogroups.com, "gloo0037" <gloo0037@y...>
    > wrote:
    > > > Hi, I am wondering if anyone has connected a BS2 to a USB
    device
    > > like
    > > > a Webcam. I have rigged up such a circuit with the green USB
    > wire
    > > to
    > > > one pin and the white wire to another pin on the BS2. Using
    > SERIN,
    > > I
    > > > manage to read 255 on the green and 0 on the white. I wish to
    be
    > > > able to coax the webcam to send data to the Stamp for analysis.
    > > > Appreciate any pointers. Thank you!
    > > >
    > > > Best Regards,
    > > > George
Sign In or Register to comment.