Wireless Boe-bot controller with LCD
                    I am waiting on the 2-axis joystick and the 2 RF transceivers to arrive to make my boe-bot wireless, and i thought I'd add a DEBUG terminal screen to the base control board, but what code do I use to make the Serial LCD 2x16 act as the DEBUG terminal??                
                            
 
                            
Comments
You have a great idea in using a LCD display as debug terminal. In order to write the code we need to know what Boe Bot that you have. So, do you have a Propeller or a Basic Stamp Boe Bot?
Like DEBUG, there are cursor positioning commands that can be sent to the LCD to control the formatting.
Here is a program I made several years ago to use with the Parallax 2x16 back lit display.
'{$STAMP BS2} '{$PBASIC 2.5} counter VAR Byte TxPin CON 8 'set LCD data pin as pin 8 Baud19200 CON 32 'set baud rate as 19200 (SEROUT 32) DEBUG CLS, "Beep Beep" 'display while speaker beeps. FREQOUT 10, 200, 3000 'indicates program (re)start PAUSE 50 FREQOUT 10, 200, 2000 DEBUG CLS DEBUG "PROGRAM RUNNING..." DEBUG CR, "Starting LCD Display" DEBUG CLS HIGH TxPin PAUSE 100 'allow time for LCD to initialize SEROUT TxPin, Baud19200, [12] 'formfeed (move to 0,0 and clear display) PAUSE 500 SEROUT TxPin, Baud19200, [17] 'backlight on PAUSE 500 DEBUG CRSRXY, 0,0, "LCD Display" DEBUG CR, "initialized" SEROUT TxPin, Baud19200, ["LCD Display"] SEROUT TxPin, Baud19200, [13] 'carriage return (move to next line, position 0) SEROUT TxPin, Baud19200, ["Initialized"] PAUSE 800 SEROUT TxPin, Baud19200, [12] 'formfeed (move to 0,0 and clear display) PAUSE 50 DEBUG CLS DEBUG CRSRXY,0,0, "Flashing light" DEBUG CR, "on LCD display" SEROUT TxPin, Baud19200, ["Flashing light"] SEROUT TxPin, Baud19200, [13] 'carriage return (move to next line, position 0) SEROUT TxPin, Baud19200, ["on LCD display"] PAUSE 500 FOR counter = 1 TO 10 SEROUT TxPin, Baud19200, [18] 'backlight off PAUSE 500 SEROUT TxPin, Baud19200, [17] 'backlight on PAUSE 500 NEXT SEROUT TxPin, Baud19200, [12] 'formfeed (move to 0,0 and clear display) PAUSE 50 DEBUG CLS DEBUG CRSRXY,0,0, "Changing to" DEBUG CR, "flash loop" SEROUT TxPin, Baud19200, ["Changing to"] SEROUT TxPin, Baud19200, [13] 'carriage return, move to next line, position 0 SEROUT TxPin, Baud19200, ["flash loop"] PAUSE 1000 SEROUT TxPin, Baud19200, [12] 'formfeed (move to 0,0 and clear display) PAUSE 100 DEBUG CLS DEBUG CRSRXY,0,0, "Running light" DEBUG CR, "flash loop" SEROUT TxPin, Baud19200, ["Running light"] SEROUT TxPin, Baud19200, [13] 'carriage return (move to next line, position 0) SEROUT TxPin, Baud19200, ["flash loop"] PAUSE 500 DO SEROUT TxPin, Baud19200, [18] 'backlight off PAUSE 500 SEROUT TxPin, Baud19200, [17] 'backlight on PAUSE 2000 SEROUT TxPin, Baud19200, [18] 'backlight off PAUSE 500 SEROUT TxPin, Baud19200, [17] 'backlight on PAUSE 1000 LOOPDEBUG "Message Here"
SEROUT Pin, Baudrate, ["Message Here"]
If the LCD is set to 9600 and connected to pin 8 on a Basic Stamp 2, then it would look like this:
SEROUT 8, 84, ["Message Here"]