Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Serial Port and Custom Circuit (http://www.chiefdelphi.com/forums/showthread.php?t=16828)

Ryan Meador 22-01-2003 08:31

Serial Port and Custom Circuit
 
Haha! I can't resist gloating a little bit, sorry everyone... At the very least, perhaps this will make you aware of a (major?) rules change... Apparently FIRST does listen to reason and change the rules accordingly. I asked them to relax the restriction on connecting the custom circuit to the RC's programming port and they did it! Now all us programmers get MORE toys to play with! And we can move some processing off-board. Parallel processing all the way, baby.

Rickertsen2 22-01-2003 08:33

Yea the very least that we will have is a current sensing circuit and an LCD

JLambert 22-01-2003 21:06

Are there any documents on how exactly we are supposed to interface with this board? (Not physically, I'm looking for code-wise interface)

rbayer 22-01-2003 21:08

Yes. Read the documentation for the DEBUG command. Also, RoboCon's bsx file contains SERIN and SEROUT commands that talk directly to this port.

--Rob

Rickertsen2 22-01-2003 21:23

Yes! go to the parallax website. they have some great documentation. Use the SEROUT and SERIN commands. also any book about Basic Stamps will explain things.

Joe Ross 22-01-2003 22:06

me: imagine this program:
serin 'from IFI
serout 'to athalon
serin 'from athalon
serout 'to IFI
Jeff (another team member): hahaha
Jeff: can you get one for $200?
Me: easily
Jeff: i think i have a 600mhz duron sitting around at home

If this had been legal earlier, my custom circuit plans would have been a lot more complex. It is much easier to I/O data serially to another micro then either through the digital inputs or the analog inputs.

Ryan Meador 23-01-2003 08:55

Well said, Joe. That's the reason I went on my little campaign in the first place. The thing is, you'd probably have much more luck with 2 or 3 PIC micros than one Athlon. The Athlon might be able to do a ton more processing, but it still has the bottleneck of 9600 baud back to the IFI controller. Now, if there were only a way to tap directly into the stamps I/O, instead of using it as a router... But that requires removal of the cover on the RC O:-)

rbayer 23-01-2003 19:23

Quote:

Originally posted by Ryan Meador
Well said, Joe. That's the reason I went on my little campaign in the first place. The thing is, you'd probably have much more luck with 2 or 3 PIC micros than one Athlon. The Athlon might be able to do a ton more processing, but it still has the bottleneck of 9600 baud back to the IFI controller. Now, if there were only a way to tap directly into the stamps I/O, instead of using it as a router... But that requires removal of the cover on the RC O:-)
You can use whatever baud rate you want. Look at the documentation for SERIN and SEROUT and you'll see the ways to set it to what you want.

Jnadke 23-01-2003 21:58

Quote:

Originally posted by rbayer
You can use whatever baud rate you want. Look at the documentation for SERIN and SEROUT and you'll see the ways to set it to what you want.

But you can't use anything beyond 9600 baud because that's too much incoming data for the Stamp to handle. It has no memory/buffer to store the data. 9600 is more than enough. In fact, I'd recommend using something lower just to be on the safe side.

Rickertsen2 23-01-2003 22:16

BTW if u are trying to connect a pic to the serial port be sure to use a serial driver chip such as the MAX232. Tell me how ur attempts go. Im thinking of just simply connecting a 4x16 LCD to the port to be able to debug my programs and to allow me to build a GUI for selecting "mini programs" and adjust other settings using inout from pushbuttons. Good luck

FotoPlasma 23-01-2003 22:47

I just ordered some free samples of TI's MAX232Ns, this morning. They should arrive tomorrow.

TI will give you free samples of almost any product they have, and they ship UPS Red (overnight). They'll give you either 1, 2, or 3 pieces per part #, and you're limited to three different part #s.

I bought a couple BS2p's (1 BS2p40 and 1 BS2p24) for playing around, recently, and I'm having more than a little fun just thinking of what's possible.

I've been mulling over a dashboard interpreter using a character LCD display driven by one of the BS2p's.

Fun projects abound.

Rickertsen2 23-01-2003 22:58

yea i would order some stamps and such but my team prolly won't give me the money to do anything interesting. But i happen to have a couple crystalfontz LCDs lying around. I am also making a current sense circuit. If i had my way i would either order some of those javelin stamps or some pics and a C compiler. Tell me how things go.

FotoPlasma 24-01-2003 00:09

Heh. I had CrystalFontz in mind when I thought up the dashboard veiwer, in the first place. :)

They have some very attractive character LCDs. Too bad their cheaper onese are parallel, rather than serial driven, but if it's just taking serial data in the first place, you don't have much need for access to a whole lot of I/O pins, so you can spare them for parallel operation.

Rickertsen2 24-01-2003 00:17

yea i have a Crystalfontz Crystalfontz 634 on one of my computers and a Crystalfontz 633 on another. They are great.

FotoPlasma 24-01-2003 00:29

I have a couple LCD displays right now, which I'm going to screw around with for a while, but I was mostly considering using the exotic colored displays (yellow on dark blue, light red on dark red, white on blue).

You already have some good ones, but for me, sinking another $60 into a serial LCD is a little steep, when I could pay just as much for two attractive 4x20s (I'm almost becoming comfortable with my soldering ability not to worry at all about just frying these things :p).


All times are GMT -5. The time now is 04:26.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi