View Full Version : QTI sensor With Stamp bug
02-10-2010, 11:28 PM
Hey guys, Im having problems working out how to connect a QTI line sensor unit to my Stamp bug, all the informationˇI find is for boe-bots, any help would be appericated.ˇIve just found out that the Stamp bug was discontinued before the QTI sensor was made, but surely someone else has got it to work.ˇThanks
Post Edited (1alph1) : 2/10/2010 4:42:39 PM GMT
02-11-2010, 12:37 AM
As I recall, the Stamp bug uses a BS1 microcontroller. The QTI sensor has an analog output which is probably read using the RCTIME statement that is only available in the BS2. The equivalent statement for the BS1 is the POT statement, but I'm not sure if that can be used the same way. You could use an external analog to digital converter like the ADC0831 and there are examples of its use with a BS1. Remember that a BS1 has very limited program storage (256 bytes) and there's probably very little left once you include the main Stamp bug code. You may be better off using a comparator and a 10-turn pot to set the reference voltage so the Stamp gets a simple on/off signal when the QTI voltage is above some set threshold that you can figure out experimentally.
02-11-2010, 08:51 PM
Hi thanks for your reply, my Stamp uses BS2 its one of the "newer" ones,ˇcan i use a simular hardware setup to that of the Boe-Bot? Regardsˇ
02-11-2010, 10:13 PM
The BoeBot uses a BS2, so the same code and hardware should work on a BS2-based Stamp bug. The I/O pins used may have to be changed (not a big deal) and there may be less +5V power available (shouldn't make much difference with the QTI sensor) on the bug.