Shop OBEX P1 Docs P2 Docs Learn Events
QTI sensor — Parallax Forums

QTI sensor

johnprokojohnproko Posts: 121
edited 2015-02-10 16:35 in Robotics
Hello everyone.

I would like to know some facts about the QTI http://www.parallax.com/product/555-27401 sensor.
First of all do you know if the connectivity with propeller board is similar to the bs2?
Moreover, has anyone tried to write a simple program for QTI in C?
And finally, can it understand other colours? If not any other idea on colour recognision? no cameras!

Thank you very much.

Comments

  • Martin_HMartin_H Posts: 4,051
    edited 2015-02-09 11:59
    For color recognition I would use the colorpal: https://www.pololu.com/product/1608 It's built for that purpose.

    But you can use the QTIs with C and with a propeller. I've done both, and you can recognize colors a little bit.
  • DomanikDomanik Posts: 233
    edited 2015-02-09 14:11
    Hello,
    I'm curious as to the applications for devices like the QTI and colorpal.

    The QTI datasheet says it can be used for "following a line". The Colorpal sensor can be used as an ambient light detector and a color generator, but for what type of product or function. Photography, color monitor adjustment, quality control at an M&Ms factory?

    I feel like I'm missing something obvious about a device that does a lot. Thanks
  • Martin_HMartin_H Posts: 4,051
    edited 2015-02-09 15:49
    QTIs are reflectance sensors. So they're good for any application where you need to determine the light or darkness of a surface. Line following is one application, but another might be edge detection, or ring out for robot sumo.

    ColorPal determines the color of a surface. Sorting objects by color is one application, but solving a Rubik's cube could be a other.
  • DomanikDomanik Posts: 233
    edited 2015-02-10 07:18
    Martin_H wrote: »
    QTIs are reflectance sensors. So they're good for any application where you need to determine the light or darkness of a surface. Line following is one application, but another might be edge detection, or ring out for robot sumo.

    ColorPal determines the color of a surface. Sorting objects by color is one application, but solving a Rubik's cube could be a other.
    Sort of like a solution looking for a problem? A ColorPal seems limited. Outside of the previously mentioned, I can't think of how it would be all that useful for any real world application.
  • johnprokojohnproko Posts: 121
    edited 2015-02-10 09:59
    Could you please post a C code example for the colorpal and the QTI?

    Thank you very much for your advice!
  • PublisonPublison Posts: 12,366
    edited 2015-02-10 10:22
    johnproko wrote: »
    Could you please post a C code example for the colorpal and the QTI?

    Thank you very much for your advice!

    There is Arduino Code for the QTI, but not the ColorPal as far as I know.

    http://www.parallax.com/downloads/qti-line-follower-shield-bot-arduino-code
  • Martin_HMartin_H Posts: 4,051
    edited 2015-02-10 11:56
    Here's the arduino colorpal example:

    http://learn.parallax.com/colorpal-arduino-demo

    Article by the esteemed Gordon McComb, and code sample by me with an assist from Gordon.
  • PublisonPublison Posts: 12,366
    edited 2015-02-10 16:35
    Good call Martin.

    I did not find your link on the product page.
Sign In or Register to comment.