2pe MOBO with tsl1401 line scan cammera
dhalstead
Posts: 2
in BASIC Stamp
Hello,
I am new to the Basic stamp so any help is appreciated. I have a 2pe MOBO and a TSL1401 line scan camera. I would like to capture the grayscale data on the PC's serial port. I have the "tsl1401_template.bpe" program running with this code running in program section.
' Your program code goes here.
pixno VAR Byte
char VAR Byte(16)
DO
GOSUB Ready
OWOUT owio, 0, [ACQGRAY]
GOSUB Ready
FOR pixno = 0 TO 7
OWIN owio, 8, [STR char\16]
SEROUT 16, 6, [STR char\16]
NEXT
LOOP
END
When I go to the terminal program the data looks unusable. I have the baud set to 38400. What else do I need to do ?
Thanks
Dan H.
I am new to the Basic stamp so any help is appreciated. I have a 2pe MOBO and a TSL1401 line scan camera. I would like to capture the grayscale data on the PC's serial port. I have the "tsl1401_template.bpe" program running with this code running in program section.
' Your program code goes here.
pixno VAR Byte
char VAR Byte(16)
DO
GOSUB Ready
OWOUT owio, 0, [ACQGRAY]
GOSUB Ready
FOR pixno = 0 TO 7
OWIN owio, 8, [STR char\16]
SEROUT 16, 6, [STR char\16]
NEXT
LOOP
END
When I go to the terminal program the data looks unusable. I have the baud set to 38400. What else do I need to do ?
Thanks
Dan H.
Comments
-Phil
Sum(pixel location * pixel intensity)/sum(pixel intensity)
I can do this easily on the PC after the data is parsed and placed in arrays, but I see you have lots of functions built in to the firmware to work with the binary data. Is this calculation easy to do with your builtin functions and do you think it would be faster than doing it on the PC.
Thanks again for your fast response!
Dan H.
-Phil