Skip to main content

Show Posts

This section allows you to view all Show Posts made by this member. Note that you can only see Show Posts made in areas you currently have access to.

Messages - gnomishworks

1
USB serial LCD backpack / Re: Arduino and Serial connection
Ian

Great. I will give that a try. I did manage to get some things working over the weekend, but I noticed two other issues. The home command seems to start at the second character away from home. Also I do get random characters once in awhile on the LCD and I am thinking either there is a bug or 115200 is to fast. Let me know if you can replicate these issues.

Thanks
Dave
2
USB serial LCD backpack / Re: Arduino and Serial connection
Ian

Loaded the firmware no problem and tried basic backlight on, which kind of works. Tried backlight on/off with a one second delay. No luck. Tried to send characters, no luck.

So it kind of working and it may be my inexperience, but I am not having much luck.

Even if I had a Microchip C example I am sure I can convert it to what I am using, but I appear to be lost.
4
USB serial LCD backpack / Re: Arduino and Serial connection
Ian

This is the PIC USB/serial backpack.. http://dangerousprototypes.com/docs/PIC_LCD_backpack

I connected a standard HD44780 and can run the test program provided over USB and or LCDSmartie and it works fine. I wanted to use the RX/TX line on the board to connect to the serial port on an Arduino.

So has anyone tested the serial port of the PIC_LCD_Backpack?

It doesn't appear to work with the commands listed on the site.

Thanks
5
USB serial LCD backpack / Arduino and Serial connection
Can't get the Seeeduino LCD backpack to work with serial. Not even the backlight works..

void setup() {
  Serial1.begin(9600);
}

void loop() {
  // Example usage:
  clearLCD();
  backlightOn();
  //Print text on each line
  selectLineOne();
  delay(100);
  Serial1.print("Line One");
  delay(500);
  backlightOff();
}
//Serial1LCD Functions
void selectLineOne(){  //puts the cursor at line 0 char 0
  Serial1.write(0xFE);  //start command flag
  Serial1.write(0x47);  //position
  Serial1.write(2);    //position
  Serial1.write(0x9A);  //end command flag
}
void clearLCD(){
  Serial1.write(0xFE);  //start command flag
  Serial1.write(0x58);  //clear lcd command
  Serial1.write(0x9A);  //end command flag
}
void backlightOn(){  //turns on the backlight
  Serial1.write(0xFE);  //start command flag
  Serial1.write(0x42);  //backlight on
  Serial1.write(30);  //Stay on for 30 min 
  Serial1.write(0x9A);  //end command flag
}
void backlightOff(){  //turns off the backlight
  Serial1.write(0xFE);  //start command flag
  Serial1.write(0x46);  //backlight off 
  Serial1.write(0x9A);  //end command flag
}
void backlight50(){  //sets the backlight at 50% brightness
  Serial1.write(0xFE);  //start command flag
  Serial1.write(0x98);  //backlight brightness
  Serial1.write(128);    //backlight level
  Serial1.write(0x9A);  //end command flag
}

Any ideas?
Thanks

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01292312312session_write_close ( )...(null):0
20.01322443888ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01322444664Database_MySQL->query( ).../DatabaseHandler.php:119
40.05812583384Database_MySQL->error( ).../Db-mysql.class.php:273