Shop OBEX P1 Docs P2 Docs Learn Events
Simple LCD Object Question — Parallax Forums

Simple LCD Object Question

IRobot2IRobot2 Posts: 164
edited 2009-10-06 22:43 in Propeller 1
I know there is probably a really simple answer to this but it is just not clicking in my brain. I am using a serial LCD (27977) along with the Serial LCD Driver from the Object Exchange. For the life of me I can not figure out what (or where) to pass commands to the object to print out a statement on the screen. I have went over and over the tutorial in the "Objects Lab of the Education Kit Book". Am I just missing the obvious or am I missing some much needed tutorials? Could some one give me a little insight (and maybe a snipit of spin code) on how I can get my program to print something out using this object? Thanks every one for your help.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Alex Burke
"Beware of computer programmers that carry screwdrivers." -Leonard Brandwein

Comments

  • mikedivmikediv Posts: 825
    edited 2009-10-05 20:32
    IRobot I am quite a neewb with spin programing but if you list which LCD driver you are using I will try and help. I have gotten my 4X20 serial to work with my prop but there are a few LCD drivers to pick from
  • IRobot2IRobot2 Posts: 164
    edited 2009-10-05 20:48
    Well I will use whatever driver you can help me get to work for this particular project. I am not picky and I really appreciate the help. But at some point I need to learn how to use any that are available in the OBEX. I understand how to call methods in other objects (simple ones) but I can not figure out what I should be calling with the one I am trying to use now (Serial LCD Driver ( http://obex.parallax.com/objects/181/ ) ). There are quite a few posts on the forums about LCDs and Props but they all say something to the tune of "Use this object"... not really explaining how I am supposed to use that particular object. Like I said it is probably going to be some basic principle that I keep reading over that every one else understands. Thanks for the help!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Alex Burke
    "Beware of computer programmers that carry screwdrivers." -Leonard Brandwein
  • rokickirokicki Posts: 1,000
    edited 2009-10-05 21:04
    Well, why not start by posting code that you hoped would work, but somehow doesn't? Along with a photo
    of your wiring setup? That would give us a really good idea of where you are at.
  • IRobot2IRobot2 Posts: 164
    edited 2009-10-05 21:15
    Rokicki,

    I would normally have included that in my first post but the thing is I really do not have any code at all.... because I don't know what to put. There really is no complex project yet... I have to learn how to talk to the LCD by calling a method in another object first.

    Let me simplify my question a little. How do I use the Serial LCD Driver Object listed above? My circuit consists of the 27977 LCD (Power to 5v, ground to ground and RX to Pin0 (or whatever)) and the prop. All I want to do is put text on the LCD screen.

    All this sounds even more basic when I type it out. I am sure I have just not been reading/learning the right thing.

    Does this clear things up a bit? Sorry for any confusion. Thanks for all the help.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Alex Burke
    "Beware of computer programmers that carry screwdrivers." -Leonard Brandwein
  • hover1hover1 Posts: 1,929
    edited 2009-10-05 21:53
    This was written for the 4x20 but should show the basics.

    ·Open Debug_LCD_Test and see how it calls Debug_LCD.
    IRobot2 said...
    I know there is probably a really simple answer to this but it is just not clicking in my brain. I am using a serial LCD (27977) along with the Serial LCD Driver from the Object Exchange. For the life of me I can not figure out what (or where) to pass commands to the object to print out a statement on the screen. I have went over and over the tutorial in the "Objects Lab of the Education Kit Book". Am I just missing the obvious or am I missing some much needed tutorials? Could some one give me a little insight (and maybe a snipit of spin code) on how I can get my program to print something out using this object? Thanks every one for your help.

    Post Edited (hover1) : 10/5/2009 9:58:56 PM GMT
  • mikedivmikediv Posts: 825
    edited 2009-10-05 23:33
    Irobot here is what I have working its uses "FullDuplexSerialPlus" so you will need a copy of that ,, look at the code I have attached I have some stuff typed in quotes you can change that to whatever you want and it will print on your LCD

    Oh just use P0 off the prop and it runs at 19200 baud
  • StefanL38StefanL38 Posts: 2,292
    edited 2009-10-06 22:43
    the propeller is a 3.3V device. Your LCD is a %V device. you should use a 1kResistor between prop and LCD

    to state the obvious: did you connect the right Tx to Rx pin-pair ?
    I mean the prop is the Tx and the LCD is the Rx.

    best regards

    Stefan
Sign In or Register to comment.