*SOLVED*Problems*SOLVED*
Asobu
Posts: 16
I have been trying for awhile now to get my BS2 working with my computer. I can't seem to even get "Hello World" to work lol.... I got an extension serial cable because no one around here has a regular one, and took it apart and soldered it according to a diagram in a previous post. I get no loopback or echo when I go to identify. Any help would be great. I got the kit where you solder it together yourself and I know I did that correctly. I have a 9v battery connected to the Vin and Vss. Thanks
Post Edited (Asobu) : 1/21/2007 3:37:39 AM GMT
Post Edited (Asobu) : 1/21/2007 3:37:39 AM GMT
Comments
Length, practically speaking, is not an issue here, as there is little current (and therefore little, if any,·"I2R loss.")
·1 <
< 1
·2 <
< 2
·3 <
< 3
·4 <
< 4
·5 <
< 5
·6 <
< 6
·7 <
< 7
·8 <
< 8
·9 <
< 9
I don't remember anything in the manual stating you needed a null modem cable nor anything different than a straight thru Serial extension cable. I have used up to 20 feet of extensions on my B-stamps without any problems and never had to modify any serial cable, Do it just like PJ Allen states and it should work.
Mike
Null modem connections, don't do the below with the B-stamps
DB9 #1 DB9 #2
3 - 2
2 - 3
7 - 8
8 - 7
5 - 5
6 - 4 this means pin 4 on DB9 #2 is connected to pins 1 and 6 on DB9 #1
1 - 4 this means pin 4 on DB9 #2 is connected to pins 1 and 6 on DB9 #1
4 - 1 this means pin 4 on DB9 #1 is connected to pins 1 and 6 on DB9 #2
4 - 6 this means pin 4 on DB9 #1 is connected to pins 1 and 6 on DB9 #2
' Hello World
' This Program Prints the String "Hello World!"
' {$STAMP BS2}
' {$PBASIC 2.5}
' Variables
' Mainline
DEBUG "Hello World!", CR ' Print the string
END ' Stop Program
I get the error "No BASIC Stamps found." Is there something really obvious that I am doing wrong? Thanks for the help and prompt replies.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
Update --
DB9M (back)· 5 4 3 2 1···· DB9F (back)· 1 2 3 4 5
············· 9 8 7 6··················· 6 7 8 9
DB9M (Pins)· 1 2 3 4 5···· DB9F (sockets)· 5 4 3 2 1
············· 6 7 8 9······················ 9 8 7 6
Post Edited (PJ Allen) : 1/20/2007 10:04:00 PM GMT
Post Edited (Asobu) : 1/20/2007 10:25:03 PM GMT
"Loopback" checks that the cable is plugged in, by checking a hard-wired loopback signal from pin 6 to pin 7 on the module. "Echo" checks that the transistor-based RS-232 circuit on the OEM is wired correctly. Only "Identify" actually 'talks' to the chip and expects an answer back from a properly powered chip.
If Echo is "Yes" without power, but "No" with power, I think it's highly likely you've mis-wired a transistor (installed it backwards, perhaps?).
Post Edited (Asobu) : 1/21/2007 1:22:40 AM GMT
Post Edited (Asobu) : 1/21/2007 1:49:37 AM GMT
Good catch.
I'll tell you comething else that's interesting about it. It has a variable resistance when crushed or compressed. Place one lead of an ohmmeter on one long side, and the other probe on the other long side. Then squeeze the foam, and watch the resistance scale!
That essentially gives you a pressure to resistance transducer for FREE! FREE is GOOD
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
We used a couple of sheets of aluminum foil separated by some anti-static foam and warped in soft plastic. It worked like charm but the resistance will change over time or if you press in exact same place over and over. But like Bruce said, "...for free! Free is good!"
Tex
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There are 10 types of people in the world:
Those that understand binary and those that don't.
·