Shop OBEX P1 Docs P2 Docs Learn Events
MSE-S110.2 sensoor! — Parallax Forums

MSE-S110.2 sensoor!

IzzyIzzy Posts: 24
edited 2009-01-21 16:07 in Robotics
Hi all!
Weell I have onee problem... I bought the MSE-S110.2 sensor, but I don't know how to connect it to my Home Work Board.
Can someonel tell me how to connect it?
I attach a photo of the sensor.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sorry for my english, I'm spanish.

Post Edited (Izzy) : 1/19/2009 7:06:01 PM GMT
518 x 521 - 41K
498 x 240 - 10K

Comments

  • SRLMSRLM Posts: 5,045
    edited 2009-01-19 19:41
    Well, you provided the schematics needed (or rather the pinout) in the second picture. Out1 and Out2 probably connect to your I/O pins, while GND is ground. Do you have a link to the datasheet? I tried searching, but it appears as if the name is spanish...
  • IzzyIzzy Posts: 24
    edited 2009-01-19 20:01
    Yes, is spanish but I can't find the datasheet too =S

    I can upload all the info that I have

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sorry for my english, I'm spanish.
  • Beau SchwabeBeau Schwabe Posts: 6,566
    edited 2009-01-19 20:40
    Izzy,

    This is a Black/White detector with a dual head,· When you apply +5V and GND to the sensor, each sensor head has a separate output.
    When the sensor detects A·dark line, object, etc., the output for that sensor goes HIGH(+5V).· Likewise when the sensor detects a light line, object, etc., the output for that sensor goes LOW(0V).

    I would treat the output form the sensors the same way as a switch.

    See: What's a Microcontroller·starting on page 71 and working your way through some of the exercises

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
  • IzzyIzzy Posts: 24
    edited 2009-01-19 21:16
    @Beau

    So I must connect the sensor like the switch? I mean with the circuit as the photo?

    Izzy.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sorry for my english, I'm spanish.
    256 x 271 - 18K
  • SRLMSRLM Posts: 5,045
    edited 2009-01-19 21:22
    No. He said to treat it the same way as a switch. That means, when one is high then it's sensing something. You can hook it up to the pin, and you'll probably want to include a current limiting resistor. 220 Ohms would probably be fine.
  • Beau SchwabeBeau Schwabe Posts: 6,566
    edited 2009-01-19 21:33
    Izzy,
    ·
    SRLM is correct... if you consider the Switch and Pull-down resistor to be as one device or unit providing an output HIGH or LOW depending on the state of the switch ...·Then you can also look at your device as thought it were a switch providing a·HIGH or LOW output depending on what it is looking at.
    ·
    Saying that, the output(s) from your sensor should go through a 220 Ohm resistor as SRLM suggested before they go to any of the I/O pins.· This is just to protect the I/O pins of the Stamp from any accidental damage that could be caused with a short.
    ·
    The example code that is given for the switches should work for your sensor enough to help get you going.
    ·


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
  • SRLMSRLM Posts: 5,045
    edited 2009-01-19 22:18
    The circuit is as follows:

    OUT 1/2 of Device
    /\/\/\/ 220 Ohm \/\/\/\/\
    I/O pin of your choice

    Then, you can use the same code that a button would use.
  • IzzyIzzy Posts: 24
    edited 2009-01-19 22:24
    One more question! GND are the Vss I/O of the board no?
    Thanks SRLM and Beau~
    If I have more questions I will post them =P

    Izzy

    P.S: I forgot to say that this sensor is for a Line Follower HOMO-BOT (HomeWork Boe-Bot)

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sorry for my english, I'm spanish.

    Post Edited (Izzy) : 1/19/2009 10:29:56 PM GMT
  • sylvie369sylvie369 Posts: 1,622
    edited 2009-01-19 23:08
    Yes, GND is VSS.
  • GWJaxGWJax Posts: 267
    edited 2009-01-20 01:41
    On the Homework board the 220 ohm resistor is already provided on the board so this step can be omitted only on the Homework Board though.

    Jax
    SRLM said...
    No. He said to treat it the same way as a switch. That means, when one is high then it's sensing something. You can hook it up to the pin, and you'll probably want to include a current limiting resistor. 220 Ohms would probably be fine.
    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    If a robot has a screw then it must be romoved and hacked into..
  • IzzyIzzy Posts: 24
    edited 2009-01-21 16:07
    Thanks to all for reply me,
    but I didn't get that the sensors run, can someone upload a photo or something where I can see it how to connect them well?

    Thanks in advance,
    Izzy.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sorry for my english, I'm spanish.
Sign In or Register to comment.