Hello, I am working on a project for a linear actuator used to deploy antennas. I was thinking of the old tried and true spinach LCD with buttons for the UP and DOWN. Get position lock status (whether 90 degrees or 0 degree position) back from switches or hall effect. I don't want a stylus, but also need to make sure multiple trigger debounce will not be a problem. Any touch LCD recommendations? I have a bunch of small ATMEGA boards.
Thanks,
Nick
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well, if you happened to have an AVR MegaBoard (mega 2650) kicking around, I would say the 320x480 GLCD with the 16bit data bus interface controlled by the ILI9481. Nice size for the money and really fast. My example had an sd card on the back along with the 5V logic level voltage converters.
You will notice a big price difference for the same display from China rather from adafruit or sainsmart. The ILI9341 glcds I bought from China do not have the touch circuit...just the edge connections. So beware.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I bought this display. I don't know what driver is on it, but should fit my UNO or MEGA Arduino boards I have. It does have a touch feature (resistive). Does GCB have a library to drive this LCD?
I got the LCD, flashed the program glcd_discovery_8bit_databus.gcb . I fired up I got the following:
Read Registers on GLCD
controllers either read as single 16-bit
e.g. the ID is at GLCDreadReg(0)
or as a sequence of 8-bit values
in special locations (first is dummy)
I got the demo 8bit uno program to work. It looks like it is working. i guess now i have to figure out how to get a couple buttons on screen to respond to touch. I went through the demos. I could not find one that had touch and 9486 driver. Does anyone know of a demo program?
Thanks,
Nick
Last edit: Macgman2000 2020-09-04
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Do a search in the demo folder for 8bit and ILI9486 demos. However, is your device a touch? Send a photo of the screen side or tell me what chips are on the back.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It is interesting that in the video the touch uses a to d to read x and y co-ordinates.
I can not find the GCB touch demo for this in gcb demos. Maybe on github under gcb.
Great-Cow-BASIC-Demonstration-Sources/GLCD_Solutions/GLCD_Discovery_for_MCUFRIEND_devices/
Last edit: stan cartwright 2020-09-04
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don't see the touch demo for ILI9341 but there was one. I could search the forum to find it.
I do not know if there is a specific touch demo for your device.
If not create one based on ssd1289. Your displays touch is explained in the youtube video I posted.
I am just a gcb user. I think you will get it working.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
One important thing is does the ILI9486 use 3.3V logic or 5V.
The ILI9341 diplays I use only run at 3.3V logic levels so I use a level dropper board... or a resistor network to use them. Looking at the video the display plugs straight onto a uno so must be 5V logic.
Last edit: stan cartwright 2020-09-04
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I see people use this GLCD with the Arduino Uno Sketch IDE. There are calibration programs, touch, color manipulation...etc. Lots of stuff. Even the exact thing I want to do in that video with the 2 buttons. I can down load those to test the touch part, but that only confirms that plugging it directly into the UNO board works. Which I can see from the video it does. I am trying to use GCB. I guess I could go with modifying a C demo, but kind of defeats having a library in GCB. If I keep flocking to the Arduino solutions i'll never use GCB.....not what I want. lol. I wish I had the time to devote to building libraries, but with a kid 10 weeks out from being born, I don't have the time.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Gcb has not as many drivers compared to arduino. Anobium writes most glcd drivers.
I have sent him displays like a nextion and he writes a driver for gcb.
Gcb is a small team of developers.
I can get a sketch I did not write to run with arduino but can not program using C but I can program in basic and get results using gcb. I can use pics as well and have.
If I could use C I think I would as it is more universal... but I can't :(
GCB is evolving all the time. user feedback gets gcb errors fixed and new features added.
if your display does not work now it probably will be fixed.
I am going to retry the touch on my ili9341 as it would be very useful.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Stan. As you must have done a library analysis between Ardunio and GCB with respect GLCD to know that GCB has less librraries. Please let me have look.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
no analysis
google ebay devices and there is an arduino solution for most.
this was no criticism of gcb but another users expectations.
I tried to say that gcb evolves around users requests.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
We currently support 30 different GLCDs. Within the 30 we support 3wire SPI (HW/SW), 4wire SPI (HW/SW), I2C(HW/SW), 8Bit Bus, Special Protocols and some oher odd connectivity methods.
The demo uses ADS7843.h
don't know if compatable.
I never got ILI9341 touch to work but thinking back it could have useing 2 spi, one for display .. which is excellent and reading the touch pins. Good luck.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, I am working on a project for a linear actuator used to deploy antennas. I was thinking of the old tried and true spinach LCD with buttons for the UP and DOWN. Get position lock status (whether 90 degrees or 0 degree position) back from switches or hall effect. I don't want a stylus, but also need to make sure multiple trigger debounce will not be a problem. Any touch LCD recommendations? I have a bunch of small ATMEGA boards.
Thanks,
Nick
Well, if you happened to have an AVR MegaBoard (mega 2650) kicking around, I would say the 320x480 GLCD with the 16bit data bus interface controlled by the ILI9481. Nice size for the money and really fast. My example had an sd card on the back along with the 5V logic level voltage converters.
You can see it here https://sourceforge.net/p/gcbasic/discussion/629990/thread/bf896980/#e4a9
Using an flat 40-44pin? IDC cable salvaged from an old computer helps out with hookup.
Oops I see you were looking for a touch interface, mine didn't have that.
Last edit: kent_twt4 2020-08-31
Try a SSD1289. There is a great touch program included in your demo folders.
You will notice a big price difference for the same display from China rather from adafruit or sainsmart. The ILI9341 glcds I bought from China do not have the touch circuit...just the edge connections. So beware.
I bought this display. I don't know what driver is on it, but should fit my UNO or MEGA Arduino boards I have. It does have a touch feature (resistive). Does GCB have a library to drive this LCD?
Thanks,
Nick
I would hook up to the UNO and run the
glcd_discovery_8bit_databus.gcb
program. Look at the serial terminal. And, it will show you the driver type.I got the LCD, flashed the program glcd_discovery_8bit_databus.gcb . I fired up I got the following:
Read Registers on GLCD
controllers either read as single 16-bit
e.g. the ID is at GLCDreadReg(0)
or as a sequence of 8-bit values
in special locations (first is dummy)
Operating in 8-bit addressing mode
reg(0x0000) 00 00 ID ILI9320, ILI9325, ILI9335, -G (0x75)...
reg(0x0004) 00 54 80 66 Manufacturer ID
reg(0x0009) 00 00 61 00 00 Status Register
reg(0x000A) 00 08 Get Power Mode
reg(0x000C) 00 66 Get Pixel Format
reg(0x0061) 66 66 RDID1 -G
reg(0x0062) 66 66 RDID2 -G
reg(0x0063) 66 66 RDID3 -G
reg(0x0064) 66 66 RDID1 -A
reg(0x0065) 66 66 RDID2 -A
reg(0x0066) 66 66 RDID3 -A
reg(0x0067) 66 66 RDID Himax -A
reg(0x0070) 66 66 Panel Himax -A
reg(0x00A1) 00 93 30 93 30 RD_DDB SSD1963
reg(0x00B0) 30 00 RGB Interface Signal Control
reg(0x00B4) 00 00 Inversion Control
reg(0x00B6) 00 02 02 3B 3B Display Control
reg(0x00B7) 3B 06 Entry Mode Set
reg(0x00BF) 06 06 06 06 06 06 ILI9481, HX8357-B
reg(0x00C0) 06 0E 0E 0E 0E 0E 0E 0E 0E Panel Control
reg(0x00C8) 0E 00 00 00 00 00 00 00 00 00 00 00 00 GAMMA
reg(0x00CC) 00 04 Panel Control
reg(0x00D0) 04 00 00 Power Control
reg(0x00D2) 00 00 00 00 00 NVM Read
reg(0x00D3) 00 00 94 86 ILI9341, ILI9488
reg(0x00DA) 00 54 RDID1
reg(0x00DB) 00 80 RDID2
reg(0x00DC) 00 66 RDID3
reg(0x00E0) 66 06 2A 32 08 19 0B 2B 80 33 05 0F 02 18 0F 05 GAMMA-P
reg(0x00E1) 05 07 12 1E 05 01 04 2B F1 4D 03 0A 07 0F 26 03 GAMMA-N
reg(0x00EF) 03 80 00 10 60 40 ILI9327
reg(0x00F2) 40 18 A3 12 02 B2 12 FF 10 00 00 00 Adjust Control 2
reg(0x00F6) 00 54 80 66 Interface Control
Examining : GLCD Device ID
Read : GLCD Device ID = 0x9486
Controller : @reg(0xD3) ILI9486
Completed :
Nick
Last edit: Macgman2000 2020-09-04
I got the demo 8bit uno program to work. It looks like it is working. i guess now i have to figure out how to get a couple buttons on screen to respond to touch. I went through the demos. I could not find one that had touch and 9486 driver. Does anyone know of a demo program?
Thanks,
Nick
Last edit: Macgman2000 2020-09-04
Well done. You got the terminal working.
So, it is an ILI9486.
Do a search in the demo folder for 8bit and ILI9486 demos. However, is your device a touch? Send a photo of the screen side or tell me what chips are on the back.
This is a closeup pic of the chips.
This is a closeup pic of the chips.
It looks like this board. https://www.youtube.com/watch?v=RG6aejGy3Z0
That is the display I have. MCUfriend
It is interesting that in the video the touch uses a to d to read x and y co-ordinates.
I can not find the GCB touch demo for this in gcb demos. Maybe on github under gcb.
Great-Cow-BASIC-Demonstration-Sources/GLCD_Solutions/GLCD_Discovery_for_MCUFRIEND_devices/
Last edit: stan cartwright 2020-09-04
Yeah I don't see 8bit touch demo in that folder.
There is a touch demo
I don't see the touch demo for ILI9341 but there was one. I could search the forum to find it.
I do not know if there is a specific touch demo for your device.
If not create one based on ssd1289. Your displays touch is explained in the youtube video I posted.
I am just a gcb user. I think you will get it working.
One important thing is does the ILI9486 use 3.3V logic or 5V.
The ILI9341 diplays I use only run at 3.3V logic levels so I use a level dropper board... or a resistor network to use them. Looking at the video the display plugs straight onto a uno so must be 5V logic.
Last edit: stan cartwright 2020-09-04
I see people use this GLCD with the Arduino Uno Sketch IDE. There are calibration programs, touch, color manipulation...etc. Lots of stuff. Even the exact thing I want to do in that video with the 2 buttons. I can down load those to test the touch part, but that only confirms that plugging it directly into the UNO board works. Which I can see from the video it does. I am trying to use GCB. I guess I could go with modifying a C demo, but kind of defeats having a library in GCB. If I keep flocking to the Arduino solutions i'll never use GCB.....not what I want. lol. I wish I had the time to devote to building libraries, but with a kid 10 weeks out from being born, I don't have the time.
Gcb has not as many drivers compared to arduino. Anobium writes most glcd drivers.
I have sent him displays like a nextion and he writes a driver for gcb.
Gcb is a small team of developers.
I can get a sketch I did not write to run with arduino but can not program using C but I can program in basic and get results using gcb. I can use pics as well and have.
If I could use C I think I would as it is more universal... but I can't :(
GCB is evolving all the time. user feedback gets gcb errors fixed and new features added.
if your display does not work now it probably will be fixed.
I am going to retry the touch on my ili9341 as it would be very useful.
Stan. As you must have done a library analysis between Ardunio and GCB with respect GLCD to know that GCB has less librraries. Please let me have look.
no analysis
google ebay devices and there is an arduino solution for most.
this was no criticism of gcb but another users expectations.
I tried to say that gcb evolves around users requests.
We currently support 30 different GLCDs. Within the 30 we support 3wire SPI (HW/SW), 4wire SPI (HW/SW), I2C(HW/SW), 8Bit Bus, Special Protocols and some oher odd connectivity methods.
See https://github.com/Anobium/Great-Cow-BASIC-Help/blob/master/source/glcdoverview.adoc for the latest Help
Essayer Ceci.
The demo uses ADS7843.h
don't know if compatable.
I never got ILI9341 touch to work but thinking back it could have useing 2 spi, one for display .. which is excellent and reading the touch pins. Good luck.
The library exists and so does the touch library.
I will look on my Saturday for the demo(s) and libraries.