I saw that I have made one misstake when I posted my robot-program code. All the comments was in swedish. Ooops.·Well to make it easier for those of you that isn't that good·at swedish (if there is someone out there ) I have translated the comments to english instead.
Great... after I spent 20 hours on babblefish... now you translate it! [noparse]:)[/noparse] No, honestly, I personally really appreciate it! You would be surprised how hot of a topic this has been... I must have directed over 20 posts to this thread! We should get Andy Lindsay to package this up for a Stamps-In-Class Mini project (I bet the only reason why he hasn't is because they don't sell the TWS-434 and RWS-434 units!
Look on page one of this thread... check out the 14th posting... It will be the program code that was posted by Jonas... he simply edited his post (was sweedish, now english).
Jonas said...
I have to say that there is alot work left before the robot goes smoothly.
If you want that your robot goes smoothly. Maybe the following code wil help.
For transmitter:
IF Command= 0 THEN
Command=1
ENDIF
For reciever:
IF command= 0 THEN
command= previos
ENDIF
If the reciever don't get a singal than the last command will be repeated.
(look to my other post in this topic or see the attachment for the full code)
Martin
Post Edited (Martin_vL) : 12/24/2005 5:34:05 PM GMT
Hello, I just got my Boe Bot and finished with the assimilation and everything and gotmyself a humidity/temp sensor. Now here comes a weird question, I use the board of education in serial version. If i use your transmitters and recevers can i do exactly the same thing i was doing with the Serial? Will i be able to receve data on humidity to my laptop from my robot? Thanks Alot
Some words of caution on using the 433.92 RF modules, from www.sparkfun.com:
I'm working on a communications system using these modules. They seem to work quite well, I will post code and pictures in a few days on my progress in the 'Projects' section of the forums. Code was first developed using the BS2 & RLP-434 as the receiver and BS1 & TLP-434 as the transmitter. This code was then transferred to the SX48/52 platform using SX/B, and I'm now working on Manchester coding the RF transmission, using a SLIP format, with a CRC algorithm.
Anyway, while testing my transmitter and receiver code, for several days, my cable TV service was disconnected. Upon further analysis's I discovered that the TLP-434 transmitter was causing severe interference with cable TV channel 59 (433.25 MHz) on my Comcast Cable TV service. Ultimately this is probably due to a malfunction in my cable TV service provider and or associated wiring. However being an Amateur Radio operator, I believe it is my duty not to cause harmful interference, when necessary.
I have ordered the 315 MHz and 418 MHz Transmitter/Receiver set, from www.sparkfun.com, to test to see if they will also interference with my cable service.
Just a 'Heads Up' if anyone is working with these.
Mike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"OEM NMEA GPS Module" Now available on ebay for only $17.49
Hey... I just thought of something... Comcast channel 59 for us is that sappy girly "Lifetime" Channel that my wife always wants to watch... maybe I "accidently" just set up a RLP-434 / TLP-434 system that always seems to go on whenever shows like "How to Get Your Man to Take You Shopping" or "Men Just Don't Understand" come on... huh... you got me thinking!
you can easily control your boebot by serial cable... simply keep it plugged in and issue commands via the debugin through the debug window... the problem is that a serial cable will loose signal if it is more than 25 feet or so (maybe you could go as far as 50 feet?), but the point is, you can't have a really long serial cable.
Now I can controll my boebot with my Texas TI83 plus calculator. By connecting it to the HomeWork Board (instead of the computer) I can controll the robot wireless useing the calculator. It does not go as smooth as when useing the computer but it workes.
It is the same principle as when useing the computer with just small changes in the transmitter program and by useing two special programs in the calculator. One of the programs "SRBTEST.8xp" can be found on http://www.smallrobot.com/bs2ti.html.·It is an assembly program and I have now idea how it workes. The other program have I made myself and I have used the "stamp.8xp" (also found on http://www.smallrobot.com/bs2ti.html) as a model when I made it. I used "calcstamp.bs2" (also found on http://www.smallrobot.com/bs2ti.html) to figure out which baudrate values to use. You can also find a simple schematic on http://www.smallrobot.com/bs2ti.html·how to connect the calculator to the stamp. I just connected the tip (red wire) to·a·pin on the HomeWork board and the ground (shield) to the Vss pin.
My TI83 program is like this:
While 1
getKey→K
While K=0
getKey→K
End
Disp K
Asm(prgmSRBTEST)
If K=105
Stop
End
Remember that this is a program to the calculator and not a Basic Stamp program.
My stamp programis like this:
'{$STAMP BS2}
' {$PBASIC 2.5}
' ===================================================
'=====Wireless control of the BOEBOT. Transmitter program=====
' ===================================================
'--------- Variables -----------
InVar VAR Nib
UtVar VAR Nib
PauVar VAR Byte
Ini VAR Nib
'--------- Pins -----------
Sandare PIN 0 'Transmitter pin
Knapp1 PIN 1 'Button1
Summer PIN 2 'Buzzer
TI83 PIN 15 'Calculator pin
'--------- Main Loop ------------
UtVar = 5
Ini = 0
PauVar = 20
FREQOUT Summer,250,1000
start:
DO
DEBUG CLS
DEBUG "Invar = ", DEC Invar, CR
DEBUG "Utvar = ", DEC Utvar, CR
SEROUT Sandare, 3313, [noparse][[/noparse]utVar] 'Transmitt value from utVar to the BOEBOT (1646)
PAUSE PauVar
IF (Knapp1 = 1) THEN Ini = 1
IF Ini = 1 THEN program
LOOP
Program:
SERIN TI83,396,50,start, [noparse][[/noparse]Invar] 'Recieve value from the computer, store in InVar
PAUSE PauVar
utvar = invar
SEROUT TI83,396,[noparse][[/noparse]Invar] 'Transmitt value back to the calculator
GOTO start
As I said, it doesn't work as smooth as if you controll the robot with a computer but it is quite cool to controll it with your calculator and maybe if you do some work with it you can make it work just as good.
Comments
Can you explane what your project is? What do you want to do whit your sumobot?
Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I saw that I have made one misstake when I posted my robot-program code. All the comments was in swedish. Ooops.·Well to make it easier for those of you that isn't that good·at swedish (if there is someone out there ) I have translated the comments to english instead.
\Jonas
http://www.geocities.com/jcee324
Again, many many thanks!
Where can I find that Robot-program code?
Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
If you want that your robot goes smoothly. Maybe the following code wil help.
For transmitter:
For reciever:
If the reciever don't get a singal than the last command will be repeated.
(look to my other post in this topic or see the attachment for the full code)
Martin
Post Edited (Martin_vL) : 12/24/2005 5:34:05 PM GMT
Some words of caution on using the 433.92 RF modules, from www.sparkfun.com:
I'm working on a communications system using these modules. They seem to work quite well, I will post code and pictures in a few days on my progress in the 'Projects' section of the forums. Code was first developed using the BS2 & RLP-434 as the receiver and BS1 & TLP-434 as the transmitter. This code was then transferred to the SX48/52 platform using SX/B, and I'm now working on Manchester coding the RF transmission, using a SLIP format, with a CRC algorithm.
Anyway, while testing my transmitter and receiver code, for several days, my cable TV service was disconnected. Upon further analysis's I discovered that the TLP-434 transmitter was causing severe interference with cable TV channel 59 (433.25 MHz) on my Comcast Cable TV service. Ultimately this is probably due to a malfunction in my cable TV service provider and or associated wiring. However being an Amateur Radio operator, I believe it is my duty not to cause harmful interference, when necessary.
I have ordered the 315 MHz and 418 MHz Transmitter/Receiver set, from www.sparkfun.com, to test to see if they will also interference with my cable service.
Just a 'Heads Up' if anyone is working with these.
Mike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"OEM NMEA GPS Module" Now available on ebay for only $17.49
Product web site: http://www.allsurplus.net/Axiom/
Post Edited (Mike Cook) : 1/3/2006 9:09:36 PM GMT
As for controlling over the web, check out http://www.parallax.com/detail.asp?product_id=30013
Now I can controll my boebot with my Texas TI83 plus calculator. By connecting it to the HomeWork Board (instead of the computer) I can controll the robot wireless useing the calculator. It does not go as smooth as when useing the computer but it workes.
It is the same principle as when useing the computer with just small changes in the transmitter program and by useing two special programs in the calculator. One of the programs "SRBTEST.8xp" can be found on http://www.smallrobot.com/bs2ti.html.·It is an assembly program and I have now idea how it workes. The other program have I made myself and I have used the "stamp.8xp" (also found on http://www.smallrobot.com/bs2ti.html) as a model when I made it. I used "calcstamp.bs2" (also found on http://www.smallrobot.com/bs2ti.html) to figure out which baudrate values to use. You can also find a simple schematic on http://www.smallrobot.com/bs2ti.html·how to connect the calculator to the stamp. I just connected the tip (red wire) to·a·pin on the HomeWork board and the ground (shield) to the Vss pin.
My TI83 program is like this:
Remember that this is a program to the calculator and not a Basic Stamp program.
My stamp programis like this:
As I said, it doesn't work as smooth as if you controll the robot with a computer but it is quite cool to controll it with your calculator and maybe if you do some work with it you can make it work just as good.
\Jonas
http://www.geocities.com/jcee324