|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Interfacing with LCD to debug
Quote:
Quote:
1. HOW to interface an LCD to the robot. (TTL port?) I really need to know how to wire it to the robot. 2. how to talk to the LCD in programming. *note that I'm not a programmer, but I can relay the information to our team programmer. So, an idea or some sample code would be helpful. |
|
#2
|
|||||
|
|||||
|
Re: Interfacing with LCD to debug
Here's a demo example we used on a Vex robot a couple of year's ago: http://team358.org/files/programming/Vex_LCD_Demo.zip
The particular LCD we used was wired to digital input 16 and didn't use either serial port. It was a lesson on the basics of serial communication. The README.txt file talks about the communication. We used a Scott Edwards Electronics, Inc. BPP-420 is an LCD module with attached serial interface. The spec. is in the zip file. Last edited by Mark McLeod : 07-01-2008 at 12:32. Reason: NOT wired to the Vex TTL port |
|
#3
|
||||
|
||||
|
Re: Interfacing with LCD to debug
Thank you. That may come in very handy.
|
|
#4
|
|||||
|
|||||
|
Re: Interfacing with LCD to debug
Sorry, I had to add a P.S. to my post.
The example was used as a lesson on the basics of serial communication and didn't use either serial port. It used a single digital output pin to transmit serial data to the LCD module. If you use the TTL port instead then you can take advantage of the built-in serial support. |
|
#5
|
||||
|
||||
|
Re: Interfacing with LCD to debug
Yes, since there is no camera this year. (or at least no camera is really needed to track a green light) Then, I am thinking about "stealing" the port and use it for a cool LCD. Hopefully we can come up with a neat way to display errors, for real time debugging. But, it could at least display our team number.
![]() |
|
#6
|
|||
|
|||
|
Re: Interfacing with LCD to debug
I'm not too familiar with the processor in the RC but I use USART for my hobby projects. I just send a string to a for loop and it transmits at a specific baud rate.
|
|
#7
|
||||
|
||||
|
Re: Interfacing with LCD to debug
Spark Fun Electronics has a bunch of LCDs available. If you look for the ones labeled "serial enabled", then it is trivial to connect them to the FRC controller, or a Vex controller. Then you just use the "print()" function (making sure it goes to the right serial port) and whatever you print out shows up on the controller. There are a few escape sequences you can print to do things like clear the screen or move the cursor around.
|
|
#8
|
|||
|
|||
|
Re: Interfacing with LCD to debug
Have you successfully changed the splash screen on one of SparkFun's serial LCDs?
|
|
#9
|
||||
|
||||
|
Re: Interfacing with LCD to debug
Ok, I think I am going to either get this one
http://www.allelectronics.com/cgi-bi...W-GREEN)_.html or this one http://www.allelectronics.com/cgi-bi...ACKLIGHT_.html Does anyone know how to wire it up? I have no idea which pins go where. This is my first time working with LCD's. Now that I have chosen a specific model I'm hoping someone can help me out. |
|
#10
|
||||
|
||||
|
Re: Interfacing with LCD to debug
i have a more general question...how can i write and send a text command to the built in TTL port on the rc? without going into detail, a GPS reciever using the standard NMEA protocol accepts TTL ASCII text strings as commands, and sends the serial amswers back...how would i go about reading and writing from the TTL port like this, or at least use a digital pin to do this?
|
|
#11
|
||||
|
||||
|
Re: Interfacing with LCD to debug
Quote:
|
|
#12
|
||||
|
||||
|
Re: Interfacing with LCD to debug
thanks! that really helps a lot!
also, does that send to the TTL port that the CMU cam uses? or does it send to the porgram port (rs232)? Last edited by tseres : 08-01-2008 at 20:32. |
|
#13
|
||||
|
||||
|
Re: Interfacing with LCD to debug
Where do I wire up the TX and RX lines of the TTL port to the LCD?
|
|
#14
|
||||
|
||||
|
Re: Interfacing with LCD to debug
Quote:
A byte consists of 8 bits. A parallel interface uses 8 pins and sends all bits at the same time (plus some control pins). A serial interface uses 1 pin and sends each bit in sequence. You could still use the RC to control this LCD, but you would have to use the digital I/O pins, not the TTL port. |
|
#15
|
||||
|
||||
|
Re: Interfacing with LCD to debug
I'm pretty sure it has serial capabilities too. I will try and find the serial diagram when I can. But, I would like to know how to use the digital I/O pins too. how would i wire that up?
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Interfacing a digital compass with the RC | Kelly | Electrical | 14 | 27-09-2007 19:01 |
| Interfacing with Allen-Bradley Sensors | doubleslash | Electrical | 9 | 31-01-2006 14:11 |
| SERAL INSTEAD OF DEBUG... | EGG0900 | Programming | 2 | 05-11-2005 18:25 |
| Interfacing a PC with last year's Robot Controller | punarhero | Technical Discussion | 2 | 21-04-2004 00:05 |
| Debug function in programming? | archiver | 2001 | 4 | 24-06-2002 00:34 |