Object for QTI Line Sensor.
Kye
Posts: 2,200
Hey everyone and parallax.
I uploaded a QTI Line Sensor driver to the OBEX.
http://obex.parallax.com/objects/584/
The driver runs 8 QTI line sensors at once. It gives back an 8 bit value for each sensor that has been inverted so that dark surfaces show up·near 0 and lighter surfaces show up near 255.
The driver also allows you to set a threshold for each sensor so that you can get a digital value back from them.
The driver gets about 500 samples per second per channel.
...
I developed this driver for a line following competition that Carngie Mellon Univeristy host every year called Mobot. I'll be showing off the String Ray robot there. Hopefully I'll win. (The string ray robot works great with QTI line sensors. I'll be posting my project up once I finish it. You have to hack the robot controller board however as the 5V to 3V converters are in the way.)
Anyway, when I was looking for other drivers for QTI line sensors I noticed that there were none avialable so this should be a nice addition to the OBEX. I also noticed a link on the QTI line sensor sales page which links to nothing.
If parallax wants to test out my driver and link to it on their product page that is fine with me.
Cheers.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
Post Edited (Kye) : 3/5/2010 9:52:27 PM GMT
I uploaded a QTI Line Sensor driver to the OBEX.
http://obex.parallax.com/objects/584/
The driver runs 8 QTI line sensors at once. It gives back an 8 bit value for each sensor that has been inverted so that dark surfaces show up·near 0 and lighter surfaces show up near 255.
The driver also allows you to set a threshold for each sensor so that you can get a digital value back from them.
The driver gets about 500 samples per second per channel.
...
I developed this driver for a line following competition that Carngie Mellon Univeristy host every year called Mobot. I'll be showing off the String Ray robot there. Hopefully I'll win. (The string ray robot works great with QTI line sensors. I'll be posting my project up once I finish it. You have to hack the robot controller board however as the 5V to 3V converters are in the way.)
Anyway, when I was looking for other drivers for QTI line sensors I noticed that there were none avialable so this should be a nice addition to the OBEX. I also noticed a link on the QTI line sensor sales page which links to nothing.
If parallax wants to test out my driver and link to it on their product page that is fine with me.
Cheers.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
Post Edited (Kye) : 3/5/2010 9:52:27 PM GMT
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The smarter I get, the more I understand I don't know!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The smarter I get, the more I understand I don't know!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The smarter I get, the more I understand I don't know!
What if I don't have exactly 8? Maybe 4 or something...
Can I specify -1 for unused QTI-pins, or are there any other way to reduce the capacity?
(except deleting assembly lines...)
I thought about putting in a variable allowing you to turn off unused lines but it got awkward really quickly.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
John Abshier
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
John Abshier
I thought I would give it a try but I don't think I'm using the object correctly. I am using the·attached code, the·propeller demo board·and the·QTI hooked up per the schematic included with·the object (pin 0 to W, VDD to R·and GND to . I receive a reading of 250 regardless of the surface the QTI is looking at. The object shows 3.3v but the data sheet for the QTI shows a 5v requirement. Could that be the problem?
Any help would be appreciated.
Jay
The QTI line senor has white as the power and red as the sensor input.
It works with 3.3v also, 5v works better of course.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
Jay