Qti line sensor question
Reading the description for the QTI lIne sensor, it says other than line sensing it can serve other purposes. What are those? Could it be used as a drop off detector? So my beloved robot won't tumble down the stairs? Thanks in advance.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"THE ONLY TRUE WISDOM IS IN KNOWING YOU KNOW NOTHING." - SOCRATES
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"THE ONLY TRUE WISDOM IS IN KNOWING YOU KNOW NOTHING." - SOCRATES
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
You need to use RCTIME with the QTIs -- you will find that the RCTIME reading for a "drop-off" goes through the roof, so it's a pretty easy threshold to detect, unlike say a brown tabletop and a black line, where the thresholds are much closer. Using the circuit straight from the QTI docs and read into a Word variable, I get values approximately like the following:
- white paper -- ~163 and lower
- light brown tabletop -- ~170-250
- electrical tape -- ~500-1200
- "drop off" -- anything greater than 1600 or so, with the table edge ususally being over 3000
But don't use my numbers, that's just FYI -- debug your RCTIME values and see what you get. In my case I wrote a short bit of code that lets me just place the Boe-bot on the paper, on the tabletop, on the tape, and at the "drop-off" so that it self-calibrates.
In any case, the key to drop off detection is positioning your sensors way out in front of the chassis -- you need to give the bot enough time to reliably read and parse a drop-off state and stop in time.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
The final threshold values are calculated from the readings·and stored in EEPROM. This make it easy to recalibrate for any table top, etc.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
Dave
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"THE ONLY TRUE WISDOM IS IN KNOWING YOU KNOW NOTHING." - SOCRATES