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 - Build serial lcd with avr instead pic

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

Build serial lcd with avr instead pic (by Ahmad sakr )
Hi
Happy New year to all
In this thread https://cq.cx/ladder-forum.pl?...;parent=4128&tt=1586110671
Mr MGP said that he build serial lcd by
http://hobbybotics.com/project...cs-serial-lcd-controller-v3-0/
This one use pic16f628a
Is it possible to use avr atmega8 instead of pic to build serial lcd
Thanks
Fri Jan 8 2021, 15:25:50
(no subject) (by paulino)
If it is true, to have to chop all the text in micro, I communicated a long time ago that if it could be done in LDmicro ladder and I am still waiting for the answer. and I am using the pic for LCD communication. since it also works for the avr.

Si es cierto, para abría que picar todo el testo en micro, yo comunique hace tiempo que si se podría hacerlo en escalera LDmicro y aun estoy esperando la contestación.
Sat Jan 9 2021, 12:32:22
(no subject) (by José)
I've had a look at that hobbyrobotics project.

It uses µC Usart to receive serial data and convert it into parallel outputs / signals for the classical 16x2 or 20x4 LCD display ; and a PWM (not mandatoty) to drive backlight.

So I'm sure it can be done with an AtMega8.
Sat Jan 9 2021, 16:20:32
(no subject) (by Ahmad sakr )
To jose
You are sure. Could you test that
Thanks
Sat Jan 9 2021, 19:25:06
Serial LCD display for PIC, AVR or other microcontrollers (by DanielH)
I've build a serial (UART-TTL) display for my OSIMPLC (Open Simple Industrial Modular PLC), Open Hardware + Free Software project , see https://osimplc.com.

It works very well with PIC16F887 and ATmega1284P.

These are the microcontrollers implemented in OSIMPLC and can be programmed using LDmicro, Great Cow Basic (and the ATmega1284P using Arduino IDE and Mighty Core plugin).
I supose that any microcontroller that has at last one UART can drive this serial LCD, because it has few control codes, and can receive and send ASCII codes.

This serial LCD (OSIMPLC-HMI) is based on the old (and dead) LCD SMARTIE open project, and uses a subset of Matrix Orbital commands.

The HMI has a parallel 2x16 LCD display, and four buttons that sends 'A', 'B', 'C' and 'D' ASCIII characters over serial; it's controled by a PIC16F628A, two BC548 and a bunch of pasive components.
All components are THT, and PCB has two layer with metalized holes.

The HMI has five pins: Vdd (+5V), Rx, Tx, Reset and Ground. Driving Reset pin high resets the PIC16F628A, allowing to resume communications from the main microcontroller in case of an unexpected "hang".

It's based on x7jay7x open hardware, his project was available at http://www.freewebs.com/x7jay7x/ , but now this URL has no content...

The firmware is a slightly modified version of the original by x7jay7x, suited for my project.

You can download the OSIMPLC Kicad design files and Gerber files from https://github.com/osimplc/osi...iles/5699404/OSIMPLC-kicad.zip and https://github.com/osimplc/osi...es/5699403/OSIMPLC-gerbers.zip

The firmware can be dowloaded from https://osimplc.com/docs/es/downloads/OSIMPLC_HMI_firmware.zip

This design has been released under CC BY-SA license, you can freely use it in your projects, attributing my work and delivering modified versions with the same license.
Sadly, x7jay7x is not reacheable through LCD SMARTIE forum, and his colleagues has no contact with him from several years...

Best regards
DanielH
Sat Jan 9 2021, 20:26:20
(no subject) (by Ahmad sakr )
To MGP
as i know you are only pic , so is it possible to write the programme of serial lcd controller which is in hobbybotiics site in LDMICRO ?
I think if it's possible, it will be easy to build serial lcd using any pic or avr microcontroller not only pic16f628a .
Thanks
Mon Jan 18 2021, 01:39:59
(no subject) (by MGP)
Everything you can make with a PIC can be made with an AVR, the question is who is going to do that?

Since I'm not using AVR's it won't be me ;)
Mon Jan 18 2021, 03:26:11
(no subject) (by Ahmad sakr )
I have no experience in c programming, just ladders
So if anyone can help in transferring (translate) hobbybotiics programme from C language to LDMICRO ladder language and then use any microcontroller
Wed Jan 20 2021, 09:43:07
(no subject) (by MGP)
You cannot convert that LCD program (in basic) to ladder.
Basic can do extensive string operations and LDmicro cannot.

Buy yourself a pair of 16F628a pic's and program them, there are plenty of easy programming solutions on the internet.
After that you can continue working with AVR controllers.
Thu Jan 21 2021, 04:24:19
(no subject) (by Ahmad sakr )
Thanks Mr MGP for your reply
I will do that
Thu Jan 21 2021, 14:54:29
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):