Shop OBEX P1 Docs P2 Docs Learn Events
BS2PX and Matrix Orbital Commands — Parallax Forums

BS2PX and Matrix Orbital Commands

IRobot2IRobot2 Posts: 164
edited 2006-03-25 00:34 in BASIC Stamp
Hello, I have a Matrix Orbital LK204-25 LCD from parallax and a BS2px. I have read over the documentation for the LCD but since I am new to LCDs I do not know how to begin writing code for the device. I know it has serial communication capabilities but the documentation also talks greatly about I2C commands (which I have never used and know very little about).
·
I am so confused! Could some one point me in the direction of something that could teach me the basics of writing code for LCD’s? Or even if some one had a small program written for this particular LCD that I could learn off of. It would be greatly appreciated!

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Alex Burke
burke@ajbrobotics.com



"The factory of the future will have only two employees, a man and a dog. The man will be there to feed the dog. The dog will be there to keep the man from touching the equipment." ~Warren G. Bennis

Comments

  • PJAllenPJAllen Banned Posts: 5,065
    edited 2006-03-24 14:09
    http://forums.parallax.com/showthread.php?p=566111

    [noparse][[/noparse] Gently, he nudged. ]
  • IRobot2IRobot2 Posts: 164
    edited 2006-03-24 23:20
    Thanks for your reply PJ. That post sort of helps but I am still confused on what to do. I think he was sending information serially correct? What if I wanted to talk to the LCD via I2C? How would that work?

    Does any one have an entire sample program that I could take a look at?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Alex Burke
    burke@ajbrobotics.com



    "The factory of the future will have only two employees, a man and a dog. The man will be there to feed the dog. The dog will be there to keep the man from touching the equipment." ~Warren G. Bennis
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2006-03-24 23:43
    Yes, serially it was.

    Sorry, I'm not an I2C maven.




    Post Edited (PJ Allen) : 3/24/2006 11:47:26 PM GMT
  • Mike CookMike Cook Posts: 829
    edited 2006-03-25 00:10
    Actually sending serial data to a Matrix Orbital display is pretty easy, the following PBASIC code shows how:

    SEROUT LCDpin, N19200, [noparse][[/noparse]"Temp is: 65 ", 223, "F"] ' <-- test of display

    NOTE: I use the conditional compile option show here:

    http://forums.parallax.com/showthread.php?p=568694

    to compute the baud rate for various Basic Stamp Models. Make sure you have the data sheet handy of your display. If it's not posted on their web site then email them. I have a bunch of LCD2041's which are several hardware rev's behind the current model displayed on their web site. After I sent them an email, they provided me with the data sheet for my particular display.

    Personally I would not mess with sending data to the display via I2C unless you have other I2C chips in your circuit and are running short on I/O pins.

    Spend some time on their web site they have several examples on using their displays with the BASIC STAMP, in fact here is a link to their Basic Stamp info:

    http://www.matrixorbital.ca/appnotes/basic_stamp/

    Hope this helps!


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Mike
    "OEM NMEA GPS Module" Now available on ebay for only $17.49
    http://www.allsurplus.net/Axiom/

  • IRobot2IRobot2 Posts: 164
    edited 2006-03-25 00:29
    Thanks Mike! That helps alot. The baud rate was the biggest thing throwing me off because I was using a BS2PX. That site is just what I was looking for.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Alex Burke


    "The factory of the future will have only two employees, a man and a dog. The man will be there to feed the dog. The dog will be there to keep the man from touching the equipment." ~Warren G. Bennis
  • Mike CookMike Cook Posts: 829
    edited 2006-03-25 00:34
    You welcome! Good Luck and have Fun!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Mike
    "OEM NMEA GPS Module" Now available on ebay for only $17.49
    http://www.allsurplus.net/Axiom/

Sign In or Register to comment.