Go to Post We live for those eureka moments. Whether we win or lose competitions, it's those moments when a student's idea makes something just "click" that will stick with them and influence them to become engineers. - ToddF [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 07-01-2008, 12:10
keen101's Avatar
keen101 keen101 is offline
Ubuntu Linux User
no team
Team Role: College Student
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Loveland, CO
Posts: 228
keen101 is a jewel in the roughkeen101 is a jewel in the roughkeen101 is a jewel in the roughkeen101 is a jewel in the rough
Interfacing robot with LCD

I really hate to post this twice, but I'm not getting any responses in the Electrical forum. I'm pretty sure it should be in the Programming section anyway. I'm really sorry about double posting.

Quote:
Originally Posted by keen101 View Post
I am interested in possibly using an LCD for real time "debugging"/errors

Is this possible/feasible? Would we have to "steal" the old camera TTL port?


i know Kevin Watson mentioned interfacing an LCD on his website briefly, but i think he meant it as kind of a joke.
Quote:
Originally Posted by Kevin Watson View Post
First, it's my understanding that the CMUcam2 (and CMUcam3) can be used in the 2008 game.

With regard to LCDs, I've used the seetron.com text displays and the earthlcd.com graphical displays on various 'bots over the past few years.

-Kevin

OK, I'm still very interested in this. I would like to know:

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   Spotlight this post!  
Unread 07-01-2008, 12:22
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: Interfacing robot with LCD

http://www.sparkfun.com/commerce/cat...s.php?cPath=76

Towards the bottom of the page there are several "serial enabled" LCDs.

Any of those, or any oher one that wil connect to their serial backpack will connect to the TTL serial port, then there are few commands, mostly you just write whatever you want to showup, and it does.

If you want to know I have two of the 16x2 black on green w/backlight
__________________
Eric Haskins KC9JVH
  #3   Spotlight this post!  
Unread 07-01-2008, 12:28
keen101's Avatar
keen101 keen101 is offline
Ubuntu Linux User
no team
Team Role: College Student
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Loveland, CO
Posts: 228
keen101 is a jewel in the roughkeen101 is a jewel in the roughkeen101 is a jewel in the roughkeen101 is a jewel in the rough
Re: Interfacing robot with LCD

Thanks. That helps a little. cool.

(Maybe I should have left the other one going for awhile. Oh, well.
Again, sorry about double posting.)

Last edited by keen101 : 07-01-2008 at 12:34.
  #4   Spotlight this post!  
Unread 07-01-2008, 12:33
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: Interfacing robot with LCD

Attached is some of the code I used to drive it. It needs Kevin's serial port code already installed.

Its not totally complete, since I finished it as I needed it.

You should read the datasheet for the serial adapter.
Attached Files
File Type: zip ser_display.zip (1.6 KB, 74 views)
__________________
Eric Haskins KC9JVH

Last edited by EHaskins : 07-01-2008 at 12:36.
  #5   Spotlight this post!  
Unread 07-01-2008, 12:36
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Interfacing robot with LCD

The question is too general to permit a simple answer. "How" depends entirely on what LCD panel you use. Its documentation will explain what signals it needs.

Filtering programming information through a non-programmer is usually a bad idea. It's very easy for useful suggestions to get misinterpreted and miscommunicated. Once your programmer has specific questions, it would be best for him or her to ask them himself/herself.
  #6   Spotlight this post!  
Unread 07-01-2008, 12:45
keen101's Avatar
keen101 keen101 is offline
Ubuntu Linux User
no team
Team Role: College Student
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Loveland, CO
Posts: 228
keen101 is a jewel in the roughkeen101 is a jewel in the roughkeen101 is a jewel in the roughkeen101 is a jewel in the rough
Re: Interfacing robot with LCD

Quote:
Originally Posted by Alan Anderson View Post
Filtering programming information through a non-programmer is usually a bad idea. It's very easy for useful suggestions to get misinterpreted and miscommunicated. Once your programmer has specific questions, it would be best for him or her to ask them himself/herself.
Good point. I will try and get him to use chief delphi. but, sometimes he likes to do his own things.

as for wiring. I see your point about different LCD's having different inputs. But, I had not seen any "wiring diagrams for TTL" connections. I know it's a type of serial communication, but I am a little confused. there has to be a general guideline to wiring doesn't there?
  #7   Spotlight this post!  
Unread 07-01-2008, 17:39
Capt. Quirk Capt. Quirk is offline
Registered User
AKA: Bill Mazzacane
FRC #1704 (Robotic Steelers)
Team Role: Mentor
 
Join Date: Aug 2007
Rookie Year: 2007
Location: SoCalif
Posts: 64
Capt. Quirk will become famous soon enoughCapt. Quirk will become famous soon enough
Re: Interfacing robot with LCD

A problem with serial LCD that I have had, is they require to many programming delays and may interfer with interrupts. On the other hand a Parallel LCD is very fast, but requires too many I/O pins.

If you are using it just temporarily, perhaps a self contained data acquisition - LCD would do the trick. A cheap Parallax SX chip (aprox $3.50 + $14.00 for a 4 line LCD (ebay) ) and use the SX/Basic example in the SX-IDE. That way you don't have to add any unnecessary code that may interfere with your actual program.
  #8   Spotlight this post!  
Unread 07-01-2008, 23:42
keen101's Avatar
keen101 keen101 is offline
Ubuntu Linux User
no team
Team Role: College Student
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Loveland, CO
Posts: 228
keen101 is a jewel in the roughkeen101 is a jewel in the roughkeen101 is a jewel in the roughkeen101 is a jewel in the rough
Re: Interfacing robot with LCD

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.
  #9   Spotlight this post!  
Unread 07-01-2008, 23:52
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Interfacing robot with LCD

Quote:
Originally Posted by Capt. Quirk View Post
A problem with serial LCD that I have had, is they require to many programming delays and may interfer with interrupts. On the other hand a Parallel LCD is very fast, but requires too many I/O pins.

If you are using it just temporarily, perhaps a self contained data acquisition - LCD would do the trick. A cheap Parallax SX chip (aprox $3.50 + $14.00 for a 4 line LCD (ebay) ) and use the SX/Basic example in the SX-IDE. That way you don't have to add any unnecessary code that may interfere with your actual program.
Using serial LCDs is actually really easy (I suspect you're thinking about the interface to the Hitatchi 44780 LCD controller, which was pretty ugly). Attached are a few files from a project that had a seetron.com LCD attached to the programming port.

-Kevin
Attached Files
File Type: c lcd.c (1.8 KB, 81 views)
File Type: h lcd.h (740 Bytes, 75 views)
File Type: c user_routines.c (1.8 KB, 62 views)
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #10   Spotlight this post!  
Unread 08-01-2008, 00:01
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Interfacing robot with LCD

Quote:
Originally Posted by keen101 View Post
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.
No, these have the ugly Hitatchi 44780 interface I mentioned above. An example of a display that will work is the BPP-420L, which I've been using for some time with the FRC RCs.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #11   Spotlight this post!  
Unread 10-01-2008, 02:05
Capt. Quirk Capt. Quirk is offline
Registered User
AKA: Bill Mazzacane
FRC #1704 (Robotic Steelers)
Team Role: Mentor
 
Join Date: Aug 2007
Rookie Year: 2007
Location: SoCalif
Posts: 64
Capt. Quirk will become famous soon enoughCapt. Quirk will become famous soon enough
Re: Interfacing robot with LCD

Quote:
Originally Posted by Capt. Quirk View Post
A problem with serial LCD that I have had, is they require to many programming delays and may interfer with interrupts. On the other hand a Parallel LCD is very fast, but requires too many I/O pins.

If you are using it just temporarily, perhaps a self contained data acquisition - LCD would do the trick. A cheap Parallax SX chip (aprox $3.50 + $14.00 for a 4 line LCD (ebay) ) and use the SX/Basic example in the SX-IDE. That way you don't have to add any unnecessary code that may interfere with your actual program.

With the SX/B LCD project, you can make your own serial LCD for cheap. But I left out the price of the Programmer and that will set you back another $30 to $50.00. The SX/B Serial LCD is similar to older Seetron units without any bells and whistles. For the price you would be better off purchasing a Serial LCD from Seetron or somebody else.
  #12   Spotlight this post!  
Unread 11-01-2008, 19:07
tseres's Avatar
tseres tseres is offline
obsessed with FIRST...
FRC #1565 (Think Tank Tech)
Team Role: Leadership
 
Join Date: Apr 2007
Rookie Year: 2007
Location: Cambridge, ON
Posts: 305
tseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of light
Re: Interfacing robot with LCD

Kevin,

just to clarify, on your serial code, what ports are serial 1 and 2? is it the programming port and TTL that we used with the CMUCam?
__________________


  #13   Spotlight this post!  
Unread 11-01-2008, 22:19
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Interfacing robot with LCD

Quote:
Originally Posted by tseres View Post
Kevin,

just to clarify, on your serial code, what ports are serial 1 and 2? is it the programming port and TTL that we used with the CMUCam?
The programming port is serial port one and operates at standard RS-232 voltage levels. The TTL/CMUcam2 port is serial port two and operates at TTL voltage levels.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #14   Spotlight this post!  
Unread 11-01-2008, 22:40
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: Interfacing robot with LCD

www.basicx.com by Netmedia, they have great serial LCD's, only takes 1 I/O line with no additional circuitry, i have one, and they work great! barely any code
  #15   Spotlight this post!  
Unread 12-01-2008, 04:30
Bomberofdoom's Avatar
Bomberofdoom Bomberofdoom is offline
Biggest FIRST addict in Israel
AKA: Nir Levanon
FRC #2230 (Zcharia's Angels)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Israel
Posts: 471
Bomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond repute
Send a message via MSN to Bomberofdoom
Re: Interfacing robot with LCD

Wonder why you'd want to use and LCD, a touch screen for controling the robot?? :S
__________________
TEAM 2230 ZECHARIA'S ANGELS

2009 Microsoft Israel FRC Regional Winners!
2009 Microsoft Israel FRC Regional Chairman's Award Winners!!!
---------------------------------
2008 Microsoft Israel FRC Regional semi-finalist.
2008 Microsoft Israel FRC Regional Delphi's "Driving Tommorow's Technology" Award winner.
2008 Robot Driver
---------------------------------
2007 GM/Technion Israel FRC Regional semi-Finalist.
2007 GM/Technion Israel FRC Regional Xerox Creativity Award winner.
2007 Robot Driver.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Interfacing with LCD to debug keen101 Electrical 15 18-01-2008 13:13
Interfacing a digital compass with the RC Kelly Electrical 14 27-09-2007 19:01
On robot LCD display David55 Programming 4 24-06-2006 16:12
Interfacing with Allen-Bradley Sensors doubleslash Electrical 9 31-01-2006 14:11
Interfacing a PC with last year's Robot Controller punarhero Technical Discussion 2 21-04-2004 00:05


All times are GMT -5. The time now is 21:55.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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