Shop OBEX P1 Docs P2 Docs Learn Events
Boe Bot code needed — Parallax Forums

Boe Bot code needed

FRC2370FRC2370 Posts: 128
edited 2012-04-05 18:36 in Robotics
Im building a wirelessly operated Boe-Bot over the coming week, and I was thinking of having a Parallax Serial LCD 2x16 on the Board of Education with the joystick to act as a DEBUG terminal for it. Can someone help with a program to make the display run as the DEBUG terminal?

Comments

  • FranklinFranklin Posts: 4,747
    edited 2012-04-01 11:03
    Just use serout rather than debug in your commands. You will also have to send LCD control codes if you want to format your data.
  • FRC2370FRC2370 Posts: 128
    edited 2012-04-01 16:39
    Thanks :) This was a big help
  • FRC2370FRC2370 Posts: 128
    edited 2012-04-01 18:53
    I tried that with the QTI line follower test program and it didnt work. Could you help me develop a program to display this data?
  • FranklinFranklin Posts: 4,747
    edited 2012-04-01 18:55
    Could you help me develop a program to display this data?
    Sure, show me your code (between [code] tags) and how you have things connected. Also the parts you are using.
  • FRC2370FRC2370 Posts: 128
    edited 2012-04-02 18:30
    Parts currently installed:
    Board of Education
    BS2 microcontroller
    Serial LCD 2x16 connected to Vdd 15

    Parts to go on upon arrival:
    BS2E microcontroller
    2-Axis joystick to be installed on the breadboard

    Welcome.bs2
  • FRC2370FRC2370 Posts: 128
    edited 2012-04-02 18:31
    The code is the attachment at the bottom. Could you help me add the DEBUG terminal to come after the first section?
  • Mike GreenMike Green Posts: 23,101
    edited 2012-04-02 18:51
    So what happens when you run Welcome.bs2? It looks like it ought to display stuff on the LCD. You might want to put a short pause at the beginning of the program ... as the first statement, maybe PAUSE 500. If you're starting the program by turning on the power, this would allow time for the LCD to initialize itself.

    You keep mentioning "DEBUG terminal". There is no DEBUG terminal. There are just serial displays. The PC's Stamp Editor debug window is just a serial display that happens to be attached via I/O port 16 (a special case) and the DEBUG and DEBUGIN statements are special versions of the SEROUT and SERIN statements that work with I/O port 16 only and only at a specific Baud (9600 in your case). You can attach other serial terminals, like the LCD, to other I/O pins and use the SEROUT statement to do the same things. The SEROUT statement requires that you specify an I/O pin number and a Baud code and the data to be displayed is written a little differently, mostly because the SEROUT statement allows more kinds of items to be sent.
  • FRC2370FRC2370 Posts: 128
    edited 2012-04-03 18:50
    The welcome program simply displays a welcome message with a pause of 2500 before turning the LCD off. I just need help developing a program to have the LCD display the values generated by the 2-Axis joystick when it is used. Id like to be able to do this so that I can make sure it operates properly
  • FranklinFranklin Posts: 4,747
    edited 2012-04-03 20:01
    Start by writing a program that displays the data you want in the debug terminal and then convert the "debugs" to serouts or code the lcd needs.
  • FRC2370FRC2370 Posts: 128
    edited 2012-04-04 13:40
    Alright il give that a try :) thanks for the help
  • FranklinFranklin Posts: 4,747
    edited 2012-04-05 18:36
    Also you should not post multiple messages on the same topic, just update the one you have running.
Sign In or Register to comment.