School prject
pwsr
Posts: 4
Hi,
I'm using my BOE-Bot for a school project, and a friend of mine gave me some sensors from the "Realrobots Cybot" (the LDRs, sonar sensors, the IR-communications thingy and a IR-Beacon and its sensors used for "cyball"), I was wondering if there is a way to use these (espacially the sonar and the beacon system) with a basic stamp? By the looks of it the sonar sensors are just small speakers and microphones.
Then I was wondering if there is a way to link a basic stamp to a ti83+ graphical calculator(from texas instruments).
Thanks.
I'm using my BOE-Bot for a school project, and a friend of mine gave me some sensors from the "Realrobots Cybot" (the LDRs, sonar sensors, the IR-communications thingy and a IR-Beacon and its sensors used for "cyball"), I was wondering if there is a way to use these (espacially the sonar and the beacon system) with a basic stamp? By the looks of it the sonar sensors are just small speakers and microphones.
Then I was wondering if there is a way to link a basic stamp to a ti83+ graphical calculator(from texas instruments).
Thanks.
Comments
As for the TI83+, this cable and a short 'null-modem' cable should be enough to hook it up to your BOE.(If your BOE is a serial version, that is)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't visit my new website...
I've seen that cable before, and hardware linking isnt my problem, its the software bit that I need to know. How do I instruct my ti83+ to send signals that a Basic Stamp understands?
You may find people that can help if they can see the items.
See http://www.smallrobot.com/bs2ti.html·for his article. The software links to the programs show files where the program lines are all joined up; they can be reformatted in the Stamp Editor and I have attached the unscrambled versions.
The Stamp program uses serial commands to link to the calculator through a modified cable (see above web page):
' {$PBASIC 2.0}
serdata·· VAR·· Byte
again:
'*****this will wait for serial from calculator
SERIN 15,396,[noparse][[/noparse]serdata]
'***this will send it to the pc debug screen
DEBUG DEC serdata, CR
'***this will send the same data plus 1 back to the calculator
serdata=serdata + 1
SEROUT 15,396,[noparse][[/noparse]serdata]
GOTO again
If you find a use for this let me know!
John
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Manxstamp,
Isle of Man, British Isles
Post Edited (manxstamp) : 11/8/2006 8:04:06 PM GMT
The site itself mentions a straight forward use: a simple way of adding a display and keyboard to your basic stamp. There is only a little problem with this method: some numbers arent send over correct, IE you send 4 with the calc and the stamp receives 12... Does anyone know why this happens? I'll do some more recearch tomorrow.
As for those cybot parts, I'll see if I can take some pics and post them here, buts it's nothing spectacular.
If not, you probably have to adjust the parameters for the SERIN commands.
(Now, where is that PBASIC template with all thosee definitions... )
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't visit my new website...
I tried some more numbers and wrote them out in binary, these are the results(left is what the calc sends, right is what the stamp receives):
1 -> 1
2 -> 2
3-> 3
4[noparse][[/noparse]00000100] -> 12[noparse][[/noparse]00001100]
5[noparse][[/noparse]00000101] -> 13[noparse][[/noparse]00001101]
6[noparse][[/noparse]00000110] -> 14[noparse][[/noparse]00001110]
7[noparse][[/noparse]00000111] -> 15[noparse][[/noparse]00001111]
44[noparse][[/noparse]00101100] -> 92[noparse][[/noparse]01011100]
60[noparse][[/noparse]00111100] -> 124[noparse][[/noparse]01111100]
So if you use the "4" bit then you get the "8" bit for free....
What is causing this problem? Is the software wrong(has someone else tried it?) of is my hardware broken...