Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - SERIAL LCD

(you are viewing a thread; or go back to list of threads)

SERIAL LCD (by robi)
HI MGP I buy a serial lcd model STD1602H from ebay . are its ok for ld micro.pls help me.if this ok so please post a sample ld file for its.
thanks
Wed Jul 19 2017, 04:40:27, download attachment STD1602H.jpg
(no subject) (by MGP)
Why do not you make this one, works very well and you have a program example.

If you buy one, you must select all the control codes yourself, because all serial displays have their own codes.
A 16f628a costs ~ 2 $ and a display ~ 3 $.

I also use this one for all my tests, you can also insert a 4x20 char without adjustments, just modify the control software in ldmicro.

https://github.com/LDmicro/LDm...CD-based-on-HD44780-controller
Wed Jul 19 2017, 07:01:23, download attachment P1020288.JPG
(no subject) (by robi)
sir please now i already buy this, i need only one string in first line . and the second line one variable value . i will buy the other but other but this will reach after 35 days in my country. so i request u for this .
thanks
Wed Jul 19 2017, 08:28:22
(no subject) (by MGP)
Do you have the datasheet with the cursor control codes?
Wed Jul 19 2017, 08:52:00
(no subject) (by robi)
ok i will contact to seller they will send me.
thanks
Wed Jul 19 2017, 10:38:38
(no subject) (by robi)
DEAR MGP
THE SELLER SAY ONLY
<<<<The serial LCD takes care of all the HD44780 commands allowing seamless integration with any mi. .... (Model: STD1602H. to download the specification)>>>.
Wed Jul 19 2017, 14:21:07
(no subject) (by MGP)
He does not know either.
Without manual it will be very difficult and I cannot help you.
Wed Jul 19 2017, 16:42:50
(no subject) (by Alex)
i guess this is the its manueal, took from https://learn.sparkfun.com/res...00485301-1852290184.1500485301
Wed Jul 19 2017, 18:35:47, download attachment SerLCD_v2_5ApplicationNote.pdf
(no subject) (by Alex)
ADM1602
Wed Jul 19 2017, 18:37:07, download attachment ADM1602U_2.pdf
(no subject) (by robi)
yes sir they mail me .please check this
Thu Jul 20 2017, 15:46:26, download attachment STD1602H.pdf
(no subject) (by MGP)
This is better :)

I'll make you an example this weekend.
Fri Jul 21 2017, 02:42:22
(no subject) (by robi)
ok thanks i will wait
Fri Jul 21 2017, 03:38:11
(no subject) (by MGP)
I have also ordered such an LCD, then I can refer to the link if they want to use a serial display.
Then I'll be able to test that too.
Fri Jul 21 2017, 17:12:57
(no subject) (by MGP)
Here you have your program.

If my display has arrived, I'll try it also.
Sat Jul 22 2017, 07:19:34, download attachment Cursor-example.ld
(no subject) (by robi)
very thanks for your help. sir please check again may some things wrong , coz its not working . my hardware only 3 wire comunication vcc gnd and tx. the cpu tx connect to lcd rx.i try more but not display on lcd .
Sun Jul 23 2017, 08:21:43
(no subject) (by MGP)
You have to change the settings, controller, crystal freq. etc..
Sun Jul 23 2017, 12:31:24
(no subject) (by robi)
yes these are same
Sun Jul 23 2017, 13:33:10
(no subject) (by robi)
may be ldmicro ver problem. so please hex file also send.
Sun Jul 23 2017, 13:36:24
(no subject) (by MGP)
Which controller and crystal do you use?
Sun Jul 23 2017, 13:38:11
(no subject) (by robi)
pic16f877a crystal 20mhz .
Sun Jul 23 2017, 21:49:58
(no subject) (by MGP)
It should work, here the hexfile compiled with version420 of ldmicro.
If it does not work you will have to wait for my display when it has arrived, then I can test the program.
Mon Jul 24 2017, 02:06:34, download attachment Cursor-example.hex
(no subject) (by robi)
Sir this also not run.please read again datasheet.
Mon Jul 24 2017, 13:29:49
(no subject) (by MGP)
I have received my STD1602H and it works, attached an example program.
The LCD module is very sensitive for timing matters, sometimes I must restart the controller because the display shows nothing at start and I don't know the cause for the moment.

Not a display for newbies.
Tue Aug 22 2017, 18:19:53, download attachment 000-test_serial.ld
Need HEX file and schematic for serial LCD v3 (by Amjad)
Hi,
MGP i need hex file for serial LCD V3 and schematic for serial LCD too. because i am not familiar to .pbp compiler software, i usually use ldmicro compiler for my projects it very easy, just click to comiler.

Thank.

[email protected]
Fri Sep 14 2018, 18:15:12
(no subject) (by MGP)
You can find everything you need on his Github pages.

Schematic.
Board V3.0
Software (hex V2.1)

https://github.com/brooksware2...ics-Serial-LCD-Controller-V3.0
Sat Sep 15 2018, 04:01:40
(no subject) (by Amjad)
HI,
i got it, Many thanks to you, can i use with 16f887 or 877
for messaging.
Sir i saw it before and i worked it but i did not succeed,in that LCD massages run up and down LCD - PIC16F628_2Line.
Here i sand you hex file for testing
Sun Sep 16 2018, 17:46:26, download attachment LCD_1_8_2LINE.hex
(no subject) (by Amjad)
Sir,
i also i used 16f628A_2Line. but same like as above i told you.
Sun Sep 16 2018, 18:03:44, download attachment LCD_1_8_2LINE.hex
(no subject) (by MGP)
The software is made for 16F628a pic's and can not be used for other PIC's.
It works for 2 and 4 line LCD's so I think you made a programming error in LDmicro.
Post your .LD file if you have issues.

It's not my software and I do not intend to modify the software.
The program works very well on 2 and for 4lines LCD.

Maybe you can use this version of a serial LCD, my favourite, als for 2 or 4 lines... with examples.

https://github.com/LDmicro/LDm...CD-based-on-HD44780-controller

Btw, attache no hex files because I have no time to test it, summer == outdoortime
Mon Sep 17 2018, 05:43:12
(no subject) (by MGP)
Scrolling lines is usually caused because you send more characters than can be fit in 1 line, so you have to count your charackers per line, including spaces.
Mon Sep 17 2018, 05:49:52
(no subject) (by Tom J.)
Hi All, I purchased a serial enabled 16X2 to experiment with, now I made a test program that works in the simulator but I'd like to be able to display "Button #" faithfully on line 1 and "Test Number #" faithfully on line 2.

Reading through the datasheet for the display it looks like I may not be able to do this in the LDMicro serial test window, I believe for this display it's going to be:

Line 1: (0xFE0x801Button 1\r)
Line 2: (0xFE0x803Test Number =\3\r)

Am I correct?

Display:
https://www.sparkfun.com/products/9394

Application notes:
https://cdn.sparkfun.com/asset...SerLCD_v2_5ApplicationNote.pdf

I may like eventually to be able to retain text and just change the variable if it visibly refreshes, ex:(keep: "Button" ,Change "#").

Any input would be appreciated as this is new territory for me and I'm relatively new to LDMicro to begin with.
Mon Sep 17 2018, 23:58:32, download attachment TomUartTest1.ld
(no subject) (by MGP)
Serial LCDs from different brands use different instructions.
You have to study the manual how to control the cursor, very important!
Your LCD does not know the /r instruction.

Do not make things too difficult for yourself and start with 1 line and always write the same word on the same place, no up/down counters, just a word.

If that works, you can learn to write on 2 lines and if that works you can continue with counnters.

You will have to practice...

Look here how its done for an other lCD

https://github.com/LDmicro/LDm...CD-based-on-HD44780-controller
Tue Sep 18 2018, 02:28:18
(no subject) (by Tom J.)
Thank you for your guidance again MGP, you've been a big help to me learning my way through.
I expected that there would be a lot of trial and error. When I learn how to use this one I'll make a thread for it to help other members of the community so they won't have the same R&D time.
There was information in another thread regarding noise introduced by sharing a power supply.
Would it be sufficient to run the PIC and Display from the same 12v source with two 7805's or is that still a bad idea?
Tue Sep 18 2018, 11:12:00
(no subject) (by MGP)
I never had problems with the power supply but I had problems with a rs232 LCD when it was connected to a PC via a PIW with a RS232 module.
As long as the PIC was connected to the PC, the LCD did not work but worked good when I removed the RS232 connector.

The choice is yours.
Tue Sep 18 2018, 13:46:55
(no subject) (by MGP)
Typo....PIW = PIC ..sorry
Tue Sep 18 2018, 15:12:54
(no subject) (by Tom J.)
According to the sheet this thing takes ASCII over uart and just displays it.
Despite my best attempts all I can get are X, a funny shaped P, and solid blocks.

Is there something very basic I'm missing to send ASCII over data?

Once I can make it do something I'll work on positioning.
Wed Sep 19 2018, 00:29:50
(no subject) (by MGP)
I have made a small program to help you, but I can't try it because I have no such LCD.

There is an error in the manual, it says, on the third page, that 192dec = 0x42 but it should be 0x80 + 0x42 = 0xC0 or 192dec.

I hope it works.
Wed Sep 19 2018, 03:19:21, download attachment TomUartTest1_V2.ld
(no subject) (by MGP)
I made a mistake, I used an OSR and it must be an OSF instruction in rung 4.
Attached the new version.
Wed Sep 19 2018, 06:53:42, download attachment TomUartTest1_V3.ld
(no subject) (by Tom J.)
Thank you once again for your help, MGP.
I'll have to work on it further today, it doesn't want to compile, crashes LDMicro completely but I'll figure out what's happening.
Wed Sep 19 2018, 14:54:07
(no subject) (by Tom J.)
Thank you once again for your help, MGP.
I'll have to work on it further today, it doesn't want to compile, crashes LDMicro completely but I'll figure out what's happening.
Wed Sep 19 2018, 14:55:16
(no subject) (by MGP)
You have to select a µcontroller, PIC or Atmel.
Thu Sep 20 2018, 02:13:32
Pasra MGP (by Calubert)
Hola MGP, podrias hacer el .hex de la pic16f628 en LDmicro, creo que seria muy bueno ya que veo que hay mucha gente que esta interesada ya que se podrķa incorporar en el mismo microcontrolador. saludos y gracias
Thu Sep 20 2018, 06:07:48
(no subject) (by MGP)
Not the controller is important, but the LCD is, because every LCD manufacturer uses a different instruction set.
The program works with every PIC / Atmel that you can find in the menu 'settings'
Thu Sep 20 2018, 13:17:02
(no subject) (by Tom J.)
I had PIS16F886/8MHZ and it wouldn't compile. I'll try another component.
One strange thing is the program doesn't show a pin assigned to TX down below.Even if I make the same program it yields the same results.
Thu Sep 20 2018, 17:08:49
(no subject) (by Tom J.)
Still not sure what's happening, it my compile problem went away by using the newest LDMicro.
I"m reading everything I can now, trying to figure it out but I don't think LDMicro is sending ASCII, when I review the log file from LDMicro simulator (uart.log) it looks like there's unicode being sent.
Thu Sep 20 2018, 22:13:47, download attachment UartTest.jpg
(no subject) (by MGP)
Try this one....be sure of the crystal frequency (8Mhz) in the menue 'settings'.
Fri Sep 21 2018, 02:10:56, download attachment TomUartTest1_V4.ld
(no subject) (by Tom J.)
Still gibberish, I emailed them and sent a couple pictures so maybe they'll know what's happening or if the display is faulty.
Maybe I should go with a more common manufacturer.
Fri Sep 21 2018, 15:22:37, download attachment 20180921_144420.jpg
(no subject) (by MGP)
Do not give up so easily.

Check the power supply, the connections, etc. carefully again.

Be sure to use decoupling capacitors on the power supply, controller and on the power supply to the LCD

Are you sure that the LCD is at 9600b?

As there are signs on the screen it should work.
Sat Sep 22 2018, 03:50:39
(no subject) (by Tom J.)
I'll keep trying, but I'd like to see what they say since they probably know all of the things that could be problems.
I'll also try decoupling but through most of this was with a simple battery power supply with a 7805 so AC noise shouldn't be a factor.
Sat Sep 22 2018, 21:52:00
(no subject) (by Tom J.)
I got it! Tech support was helpful in that they suggested the baud may be incorrect with the internal oscillator, I got a 20MHZ crystal oscillator running tonight and it came to life.

I still have some things to figure out as far as formatting and such but when I do I'll start a thread and title it with this thing's P/N from sparkfun so other people with the same display can get running faster.

MGP, it responds to your program for the most part but leaves some blank spaces, I'll figure it out from your sample code and the crude documentation they offer though.
Thu Oct 4 2018, 00:53:11, download attachment 20181004_001248.jpg
(no subject) (by MGP)
No thanks, little efforts, Ihor deserves it more ;-)
Thu Oct 4 2018, 06:32:13
(no subject) (by Tom J.)
I can now manipulate the cursor position and place text in any spot on the screen. I can even place text multiple times writing to different positions.

Displaying numerical variables is proving to be more challenging, I can make it count and display but it only wants to display the ones column and different random characters in the tens column.

I wish the vendor's data sheet wasn't such rubbish.
Thu Oct 4 2018, 20:44:57
(no subject) (by MGP)
Pay attention when you display nummeric values,always count the digits, otherwise you get garbage on your screen.

Eg. "Value:/3" and the value X>= 1000 the the result on the screen is undefined.
And dont print too fast, it takes time to print a rung (row) with a serial instruction.
Fri Oct 5 2018, 03:00:38
LD MIKRO (by Dani)

Software : LDMIKRO
Aplikasi Android : Bluetooth Electronics

I want send 3 format sting to serial bluetoooth, which will be read by Bluetooth Electronics App.

Can you help me ?

1.This is example my program by LdMikro, but failed.

https://drive.google.com/file/d/1qVqE_INz76JScFkZYtKLUSDpwi2X-86G/view

2. This is my video 3 format sting which failed.

https://youtu.be/M1QXSsuM32A

3. This is my video, but i just use 2 format string. & that is success.

https://youtu.be/bMi5gnkxFXQ

[email protected]
Thu Oct 11 2018, 10:24:38
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):