Serout
John Board
Posts: 371
Hi All,
I'm new to the forums, and I have a problem (not many people hear from me when I don't :P),
I am using a BS2px and am trying to send this:
SEROUT 16,32,[$80,2,68]
To my computer. I know there I am using the "32" baud mode. However, I have no idea what the 32 refers to. For example, how can I find out what setting a 9600 baud mode is? I hope this makes sense, and please answer soon!
-John
I'm new to the forums, and I have a problem (not many people hear from me when I don't :P),
I am using a BS2px and am trying to send this:
SEROUT 16,32,[$80,2,68]
To my computer. I know there I am using the "32" baud mode. However, I have no idea what the 32 refers to. For example, how can I find out what setting a 9600 baud mode is? I hope this makes sense, and please answer soon!
-John
Comments
I'm not sure why you'd be trying 32 for your baudmode. That would correspond to an extremely quick baud value. Can you explain why that's the number you're using?
32... err... I was at that time just desperate for anything, so I was searching the internet and found a PIC table of bauds (I think). So I was using whatever I found.
Ohh, and one last thing, what should this code display in the PST:
SEROUT 16,396,[$80,2,68]
Thanks again, and good meeting you,
John
2 is an unprintable character ("Start of Text"), which will probably screw up anything else you try to send.
68 is a capital letter "D".
When I try your SEROUT statement I just get the Euro sign, not surprisingly.
You can see what each code should send out by looking at an ASCII table like this one:
http://www.ascii-code.com/
Try
SEROUT 16, 396, [74,$6F,$68,110]
for example.
Why?
PBASIC Help, part of the IDE (the Stamp programming app), tells all in detail.
Why despair when PBasic Help is there?
Welcome to the Parallax Forums, John Board!
Paul
I had thought of the PBASIC help, however, I couldn't find what I was after. However, that is bast now, and I have made my robot base using the BOE with a BS2px and 2 gearboxes and a serial motor driver. I can tell you, it was so good seeing it moving around the floor
Thanks for all your help everyone,
John
I started out with Lego mindstorms... I soon moved onto:
The BOE-Bot where I learned quite a bit more for robotics:
Then the Octobot, a robot powered by the PropStick.
Then back to BOE-Bot temporarily for the RoboCup Junior Comps in Australia. (I came 3rd in regional and 8th out of 58 teams at state ).
The robot that I am building now is gonna be for next years RCJA (RoboCup). I am wanting it to be powered by the Prop and it will use some of the TAOS color sensors for the line following.
Anyway, thanks again for the help;
-John Board