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 - Write on LCD

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

Write on LCD (by Frank Pac)
Hello, I have a question for you, I tried but I have not found an answer.
With a serial display suitable for LDmicro, how can I accomplish the written fixed and variables together?
For example Voltage Ampere xxx xxx watts xxx, where xxx are the values ​​that I get from LDmicro and written Volt Ampere and Watt are always fixed.
Thank you all.
Mon Nov 25 2013, 09:01:51
(no subject) (by Frank Pac)
I made the serial interface, this. http://hobbybotics.com/project...cs-serial-lcd-controller-v3-0/
The interface works perfectly but when I connect it to the micro lettering flowing continuously, no command is used to stop them, use \ xfe or \ r but nothing changes.
Have any of you testing fate with this interface?
Thanks to all
Sat Nov 30 2013, 14:11:16
(no subject) (by MGP)
I always work with the serial interface of hobbybotics and it works very well.
Post your program or an example, so we can see what you mean.
Sun Dec 1 2013, 03:42:15
My project (by Frank Pac)
This is my LD simple test.
The result on a simulator, on the serial native lcd it's ok, but in serial hobbybotics no.
Thanks all
Sun Dec 1 2013, 04:46:22, download attachment Simulator.JPG
My ld list (by Frank Pac)
This is the list LDmicro
Sun Dec 1 2013, 04:47:19, download attachment Lm35toLCD.ld
(no subject) (by MGP)
Included an example of how to use it the serial LCD.

The instruction set on Hobbybotics shows the decimal values​​, you must convert the numbers in HEX.

Note to set the baudrate, if you forget the baudrate you can not communicate with LCD anymore.

You also need the new version of LDMICRO, see below.

http://cq.cx/ladder-forum.pl?action=viewthread&parent=3532
Sun Dec 1 2013, 07:00:48, download attachment Lm35toLCD_V2.ld
(no subject) (by Frank Pac)
Thank you very much for your cooperation, I tried your modified file, compiled with the new LDmicro.
Now writes on the same line but always from a different location.
I also sent an email to hobbybotics because the last version I can not compile the HEX file and I have to use the V1.8 version, I do not know if it changes.
However I'm trying to learn the commands to write on every line, and in the same position.
Thank you again very much.
Sun Dec 1 2013, 10:17:28
(no subject) (by MGP)
You can not compile my xxxxV2 LD-file, because it's only to show you how to do it.

Attached an example you can compile with LD micro, and it should normally work.

If you want my hex file that i downloaded from Hobbybotics (V3) give me your emailadress.
Sun Dec 1 2013, 12:15:12, download attachment Lm35toLCD_V3.ld
(no subject) (by Frank Pac)
Thanks for the reply.
I found the HEX file of hobbybotics indicating V2.0.
In any case, my address is [email protected].
I modified the file to get the message in the same position.
But now I have a problem on dispaly the temperature is displayed in hex and decimal.
You know what I need to change?
Sun Dec 1 2013, 12:35:08, download attachment Lm35toLCD.ld
(no subject) (by MGP)
You made a programming error, a 4-digit number in three places.

"Temperature: \4\XFE\x01" or "Temperature: \4\r" , both will work.

\xfe\x20 does not exist in the instruction set.

The program attached works, i tested it.
Sun Dec 1 2013, 17:33:33, download attachment Lm35toLCD_ tested.ld
(no subject) (by Frank Pac)
True, you're right! I made ​​a typo, I wrote instead of x02 x20 :-)
However, I realized that this runs well and writes two lines, but if I wanted to write about the third and fourth lines as I do?
Again, thank you for your patience.
Mon Dec 2 2013, 06:44:12, download attachment Lm35toLCD_V2.ld
(no subject) (by MGP)
LDMICRO is a PLC program that most visitors forget and asking sometimes impossible questions.

Displaying 4 rows is not easy because of timingproblems (cycletime).
I use a circulair counter for this problem.
Do not change the timers, you may have strange results.

Read the comment in this program.
Also read the manual at Hobbybotics for cursor movements.
Mon Dec 2 2013, 13:36:23, download attachment Lm35toLCD_V2 _last.ld
(no subject) (by Frank Pac)
Thank you again.
I now have sufficient evidence to try to finish my project.
I know I ask LDmicro to write on 4 lines is more than what you could do, but I wanted to try the same.
Thanks again and Merry Christmas. :-) :)
Tue Dec 3 2013, 07:10:49
Plz help (by Georges karimeh)
Can i use this lcd on ldmicro plzz help
Thu Sep 24 2015, 09:52:34, download attachment 14431025554622122095181.jpg
(no subject) (by Boris)
You can use it but You need serial backpack.
Thu Sep 24 2015, 15:38:03
For boris (by Georges karimeh)
Did you now how i make a serial backpack ???
Thanks boris
Mon Oct 5 2015, 10:01:13
(no subject) (by MGP)
You can find one on top of this topic by hobbybotics.

The link : http://hobbybotics.com/project...cs-serial-lcd-controller-v3-0/
Mon Oct 5 2015, 10:20:33
lcd 4bit mode (by MEIYAZHAKAN)
how to change 8bit lcd to 4bit calculation .send me example
Thu Nov 5 2015, 06:40:47
(no subject) (by Alex)
How about using a i2c?
Sun Jan 10 2016, 18:30:18
(no subject) (by Alex)
excuse me for my ignorance, but do i have to set bauds to the interface? 2400, 9600?
Wed Jan 13 2016, 17:33:12
lcd serial interace (by Alex)
Did someone build the hobbybotics serial interface? if yes, did it work?
Mon Mar 28 2016, 03:18:07
hobbybotics serial interface (by Alex)
Hi all i tried to use the hobbybotics interface, in the proteus simulation it works very well but when i built it on my protoboard it just doesn´t work, im uploading some pictures, i set ladder logic with 9600 baud rate and 20Mhz, im using a 20Mhz for both 16f877a and 16f628a, like the simulation, please i would apreciatte your help, what am i doing wrong, it is difficult for me to read English text about this topic but im trying.
Mon Mar 28 2016, 06:37:47, download attachment simulación.jpg
hobbybotics serial interface (by Alex)
just lcd background light turns on.
Mon Mar 28 2016, 06:42:44, download attachment 12593916_10156731214035344_6627360481190725306_o.jpg
hobbybotics serial interface (by Alex)
just lcd background light turns on.
Mon Mar 28 2016, 06:43:24, download attachment 12888693_10156731213245344_789084905999294760_o.jpg
hobbybotics serial interface (by Alex)
just lcd background light turns on.
Mon Mar 28 2016, 06:45:36, download attachment 12898267_10156731212230344_8104148523265905719_o (1).jpg
(no subject) (by Alex)
i know it is awful, but i checked pins a cables
Mon Mar 28 2016, 06:46:53
(no subject) (by MGP)
I use it all the time, it works very well, but I can't help you with the photos you have posted.
Mon Mar 28 2016, 07:44:18
(no subject) (by Alex)
I see, well, i have read that the hex file is set for a 16x4 lcd but i'm using a 16x2, is there a problem with it or do i have to change in the code 16x2?
Mon Mar 28 2016, 12:16:32
(no subject) (by MGP)
Maybe you can use one of these programs for a 16x2 lcd.

http://letsmakerobots.com/node/4415
Mon Mar 28 2016, 12:45:13
(no subject) (by Alex)
thanks a lot, i´ll check
Mon Mar 28 2016, 15:47:27
letsmakerobots (by Alex)
Hello Mr. MGP i used the hex from that design and aldo made few changes and i got this: for about 1 sec this is displayed on the lcd 16x2(image)(i downloades the hex for the 16x2).
Tue Mar 29 2016, 11:21:01, download attachment 12888762_10156738161820344_6310096318072898457_o.jpg
letsmakerobots (by Alex)
after one second this happens... (image), what could be wrong?, thanks you very much.
Tue Mar 29 2016, 11:23:18, download attachment 12898234_10156738164975344_3733007787187925656_o.jpg
(no subject) (by Alex)
sorry for the misspellings... :D
Tue Mar 29 2016, 11:33:44
(no subject) (by MGP)
Can you upload your .LD program?
Tue Mar 29 2016, 13:50:17
(no subject) (by MGP)
You must place 100 nF capacitors on the supply pins of the controllers and also a 100nF on the supply pins of the LCD.
It looks like noise on the power supply.

And remove de 2 10K resistors between the TX and RX pins, connect them directly.
Tue Mar 29 2016, 14:05:18
(no subject) (by Alex)
Thank you very much Mr. MGP i´ll get those capacitors, here is my ld file.
Tue Mar 29 2016, 15:31:44, download attachment Chanchería10.ld
(no subject) (by MGP)
You may not do this (see jpg), you dump all the characters at once in the serial buffer and LDmicro is not fast enough, see here how to do it.
Transmit each cycle a line..

http://cq.cx/ladder-forum.pl?action=viewthread&parent=4733
Tue Mar 29 2016, 16:34:45, download attachment Snap47.jpg
(no subject) (by Alex)
I see, i'll fix thanks a lot Mr. MGP.
Tue Mar 29 2016, 20:03:15
(no subject) (by Alex)
could someone help get the temperature, it is not display
Tue Mar 28 2017, 17:09:47, download attachment Lm35toLCD_tested.ld
(no subject) (by Alex)
these is displayed in proteus (image attach)
Tue Mar 28 2017, 17:30:57, download attachment simulation proteus.jpg
(no subject) (by Alex)
I could get the TEMPERATURE. i only need to erase "SERIAL LCD V2.2"
Wed Mar 29 2017, 00:12:20, download attachment Lm35toLCD_tested.ld
(no subject) (by Alex)
IMAGE
Wed Mar 29 2017, 00:14:25, download attachment simulation proteus2.jpg
(no subject) (by Alex)
after >100 i get wrong numbers
Wed Mar 29 2017, 00:26:35
(no subject) (by MGP)
Alex, try this version, reed the comments in the program.
Wed Mar 29 2017, 02:27:27, download attachment Lm35toLCD_tested V2.ld
(no subject) (by Alex)
thanks a lot MGP, you explained it very well, i understood it, so that is how i have to do, (image attach) i only need to delete message displayed (serial lcd v2.2).

Also measure is displayed faster while lm35 changes values
Wed Mar 29 2017, 09:46:01, download attachment simulation proteus3.jpg
(no subject) (by MGP)
If you start the LCD controller and the LD-controller then you have to insert a delay in the ldmicro program, because the LCD need some time to startup.

Have a look at row7.
Wed Mar 29 2017, 11:56:08, download attachment Lm35toLCD_tested V3.ld
(no subject) (by Alex)
I'm really grateful to you, MGP, it works very well, now i´m going to test it in my circuit.
Wed Mar 29 2017, 13:28:21, download attachment simulation proteus4.jpg
(no subject) (by Alex)
I dont´t know if this happens only in simulation but for somehow it freezez, i see pins in 16f628a MCU don´t blink after some period of time and even i set another temperature in lm35 lcd displays a freeze value (doesn´t change).
Wed Mar 29 2017, 17:04:22, download attachment simulation proteus5.jpg
(no subject) (by MGP)
I don't have proteus, so I can't simulate it and can't help you.

Look at the program, there is a missing "e" in the word "temperature" and the variable prints only in 2 digits and on the display you see 336 ????

Lots of stuff to experiment with and maybe slowdown the time you sending the text is also a something to look at it.
Wed Mar 29 2017, 18:04:22
(no subject) (by Alex)
yea you are right, i had to use \3 for 3 digits
Thu Mar 30 2017, 09:04:07, download attachment simulation proteus6.jpg
(no subject) (by Alex)
but still having frozen value after some period of time, defenitly i have to test it in real life
Thu Mar 30 2017, 09:06:09, download attachment simulation proteus7.jpg
(no subject) (by Alex)
after some more period of time
Thu Mar 30 2017, 09:30:43, download attachment simulation proteus8.jpg
(no subject) (by MGP)
Try this version, I added some delay.
Thu Mar 30 2017, 12:55:10, download attachment Lm35toLCD_testedV4.ld
(no subject) (by Alex)
it happens the same but after more period of time, what about the 16f628a?
Thu Mar 30 2017, 14:10:51, download attachment simulation proteus9.jpg
(no subject) (by MGP)
It's simulated in Proteus and has nothing to do with the real world, what can I say?........

I never had problems with the pic LCD software.
Thu Mar 30 2017, 14:21:29
(no subject) (by Alex)
Testing Lm35toLCD_tested V3
Sat Apr 1 2017, 23:28:12, download attachment temperatureV3.jpeg
(no subject) (by Alex)
(after approximately 9 hours)


Everything keeps working very well, i added some heat to check if measure is ok (image attach), it is ok.

In real life it works very well, in my simulation it doesn´t but after all real life is what maters
Sun Apr 2 2017, 08:30:27, download attachment temepratureV3_test.jpeg
(no subject) (by Alex)
thanks a lot MGP :)
Sun Apr 2 2017, 08:30:54
(no subject) (by MGP)
Glad it works.
And now look to work with one decimal place. ;)
Sun Apr 2 2017, 09:45:07
How to make 2 programs in ldmicro (by Lakshmikanth)
Hello,
How can i make 2 Multiple programs in ldmicro. which processor i have to use for this.
Tue Apr 17 2018, 01:10:29
(no subject) (by MGP)
What do you mean? every rung in de program is a program in itself.
You can use any controller that you can select in the menu.

And please open a NEW thread if you have a question.
Your question has nothing to do with the title.
Tue Apr 17 2018, 10:26:37
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):