United Kingdom
Asked — Edited
Resolved Resolved by Rich!

Lcd Display Help

Hey guys.

I'm having a little trouble with an LCD display I recently purchased. I have read through some of the posts on the forum to help me get this going, but I need a little more help. I have it connected to D12 going through a 5v regulator. Ground to ground, Vcc to Vcc, and SDA (which I believe to be RX) to a signal pin. It lights up but when I try SendSerial(d12, 9600, "Hello" ) nothing happens. I have also tried a different port and changed baud rates, no change.

Now I believe this is a serial (what I was after) and i2c compatable so it should work. I havn't found a data sheet for it yet but here's a link to it, if it helps. Any ideas what's going wrong, or even if this thing is compatable with the v4? I hope some one can help as I would love to get this working.

Thanks in advance.

User-inserted image

User-inserted image


ARC Pro

Upgrade to ARC Pro

Don't limit your robot's potential – subscribe to ARC Pro and transform it into a dynamic, intelligent machine.

United Kingdom
#65  

Hey guys.

This is mainly aimed at @Rich or Toymaker as I know you have used these displays. Could one of you be so kind as to give me a quick script example to display the battery voltage on the LCD05 16x2 display please? I tried the following but got a "False" message.

i2cwrite(0,0xc6,0,1,4,12,19,30,230,31,255,+$x = GetVoltage())

I'm a bit stuck as to what else to try. If you could give me an example I would be grateful as this would give me something to work from to hopefully display the time, date ect as well.

Thanks.

United Kingdom
#66  

I just had a thought and don't know if it will make any difference. But can this LCD display read the EZ-B voltage while connect via i2c? I can get it to display pre written messages fine and even animate them (with lots of lines of code), but I'm really stuck on displaying live information from the EZ-B. Any help would be appreciated.

United Kingdom
#67  

Try


$x = GetVoltage()
i2cwrite(0,0xc6,0,1,4,12,19,30,230,31,255,$x)

I've presumed the 0,1,4,12,19,30,230,31,255 part all leads up to text entry.

It will display anything you ask it to. However it looks like you got a little confused with the variable/GetVoltage part.

United Kingdom
#68  

Thanks Rich. That was correct, the code does lead up to text entry. I see where I went wrong now so that will help loads. Thanks again.:)

United Kingdom
#69  

I figured out a working script in the end...

i2cwrite(0,0xc6,0,1,4,12,19,30,230,31,255,"v4 battery is at " + $voltage," Volts.")

Thanks to everyone for all of the help that was offered.