I wanted to perform a very last test with Nextion. My idea was a user interface using only clickable pictures (more possibilities of customization than buttons), which I could show and hide according to context ; I used the 4.3" model of the "Intelligent" series , I attach the project file ; clicking works OK, but then I tried to hide p1 ... see the screen hardcopy ! No comment ...
Thanks, now it works, at least for the things I need ... I saw YouTube demos, and even the command syntax suggested by the software itself, but at this size it is very difficult (not to say impossible) to distinguish a dot and a comma.
"Anobium", You wrote that You had a new Nextion to sell ; which type (size, I am looking for at least 3", better 4", and "family"), and what would be the price ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It is working.. I have just loaded your simple project. Looked like 'light wood'. Then, I have loaded a proper project from "C:\GCB@Syn\GreatCowBasic\Demos\glcd_solutions\glcd_nextion_solutions" in the demos - the upload was minutes via serial as the project is huge - it is faster via a memory card.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Wov, 7" ... Now let's come to the "financial part" ... Price (with shipment to France) ? And do You have a PayPal account, so I could (if I decide to buy) send the money in the "to a friend" mode ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I got the ili9341 sdcard reader to work with mmbasic. Not implemented in gcb. Just one gpio line, cs, the other 3 are connected to the same pins as touch.
A way of storing bitmaps but seems the sdcard slot can be used for any storage.
This could be a cheap. ili9341 and rpi pico alternative to nextion.
it said no calibration errors for touch x,y and the display is fast with all the dials and buttons. etc.
I think it's a good implementation of the ili9341. It could stand on it's own as an embedded project but could be a slave display for gcb???
The Nextion editor crashes all the time ... Probably related with my x64 Windows. Remember, at the beginning it didn't even start with the C++ runtime for x64 ...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
All these systems remind me a joke by Houphouët-Boigny : "We couldn't go further because we had arrived at the edge of an abyss ; but meanwhile we succeeded in making again a big step forwards."
:)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
And the best joke of all : finally I succeeded in creating the HMI file for Nextion, after many crashes and swearwords, I sent it to Anobium for testing ...
:)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Today I got "Anobium" ' s Nextion, I tested it with GCB Terminal, defined several macros for page selection. It works fine, exactly as I hoped. I have an USB to serial adapter which switches the USB port into "High current" mode and so delivers 500 mA on output. I don't know if "Anobium" can access his mailbox now, but all the way I say : "Thanks ... "
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I wrote my test program ; it works fine ... I noticed only two minor and very small issues, but which are not really annoying :
- Due to the resistive function of the screen, triggering the touch control needs a rather (in my eyes) "strong" pressure. Maybe that this does not appear with capacitive touch screens ?
- And the same as with all touch screens : after a while of using, the screen is full with ... fingerprints and needs cleaning (I will use only a moist smooth cloth and water, since I think that the screen is made of a kind of polycarbonate).
Now comes the biggest difficulty : the "mechanical" integration of the screen into the front of the control desk !
Last edit: Bertrand BAROTH 2022-07-22
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You get a free pen thing but touch finger prints?
This would be up your street for touch glcd . Rpi using mmbasic called picomite. It's much better than nextion and it's basic but lots of dials and buttons and switches, interrupt touch subs. brill.
Sorry to promote another basic but it will do more with an ili9341 than gcb
You can store files and bitmaps on the sdcard slot. It's new to me but nice,
Interpreted basisic but a dual core pico at 250 MHz .. it seems fast.
Sorry if I upset anyone but just amazed at mmbasic on rpi pico.
Just to let you know that there's alternatives to nextion editor and the cost.
These rpi picos are cheap and you could use python or c+, mmbasic has lots of nextion type stuff for the glcds it supports, it does the ili9341 very well.
You get a free pen thing but touch finger prints?
This would be up your street for touch glcd . Rpi using mmbasic called picomite. It's much better than nextion and it's basic but lots of dials and buttons and switches, interrupt touch subs. brill.
Sorry to promote another basic but it will do more with an ili9341 than gcb
You can store files and bitmaps on the sdcard slot. It's new to me but nice,
Interpreted basisic but a dual core pico at 250 MHz .. it seems fast.
Sorry if I upset anyone but just amazed at mmbasic on rpi pico.
Just to let you know that there's alternatives to nextion editor and the cost.
These rpi picos are cheap and you could use python or c+, mmbasic has lots of nextion type stuff for the glcds it supports, it does the ili9341 very well.
Bug : after selecting a page, I wanna hide some picture components (there is another picture in the background), so I cannot click them. But there is a little latency time (8515 with 4 MHz, STK200) during which the component IS clickable, it's difficult but thanks to Murphy possible : the component is briefly visible before disappearing. And it's not possible to hide an element on an inactive page (before showing it), the instruction : vis <page>.<component>,0 does not work ... Idem tsw.
So I would (will ? ) have to tell my prog to ignore the corresponding click code, in addition to the hiding of the component . Tedious ... </component></page>
Last edit: Bertrand BAROTH 2022-07-23
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Finally I have 2 major reproaches against the device :
First, the impossibility of updating a hidden page in the background BEFORE showing it. So, one can see how all elements are modified, and this is rather ugly.
Second, the pressure needed to trigger a click, which leads sometimes to ignored commands. I must add that I noticed the same issue on a weighing scale (for fruits and vegetables) in a self-service store.
Finally, the device does not match my needs ; no matter, it was an attempt ! And finally I will keep my good old fashioned pushbuttons for "real" use ...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Resistive Touch requires a stylus not a finger.
It is pressure sensitive and the stylus concentrates the force on a point whilst a finger will spread the force.
Capacitive Touch is finger sensitive as the finger changes the capacitance not resistance.
Try a stylus, even a toothpick or an old dry ballpoint pen.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Add a script to the object in the Nextion. There are methods to achieve what you want. The objects on each page are addressable from the MCU and by the creation of events you should be able to achieve the outcome. I can look when I get back.
Proof the demo loaded when you received the GLCD. The first page was a video but the scripts had updated another page.. the key is the event scripting in the Nextion.
Re ensuring a click happened. Again, in the Nextion add a shadow to the button (or other ui piece) or add a physical 'click' sound.... All should be resolveable.
Last edit: Anobium 2022-07-23
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks Anobium, but it's too late. I will stay with my buttons : as Chris Roper said, i should use a stylus ... to control my railroad layout ? Really ridiculous ! And feedback is useless, since I saw the page changing after a click, ... and not changing after a failed click. :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
... to control my railroad layout ? Really ridiculous !
I disagree, try thinking out side of the box.
If you use Kadee or similar couplers your operator's will be carrying a stylus anyway in order to manually uncouple the cars/wagons.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
From your discoveries today I think you are heading towards the ILI GLCDs with Touch.
Whigh way are you heading? Nextion or a standalone GCB GLCD that is serially controlled?
or, some other direcation?
I have one of these. https://www.waveshare.com/wiki/4inch_RPi_LCD_(A)
It is a ILI9486L, it is 4inches with Touch.
There are many demos and the project I have here has this attached to an UNO. Power is 5v0 however I have fitted a level converter for the UNO.
Last edit: Anobium 2022-07-11
I wonder if the controller is supported by GCB ; and, about the price : add shipment and taxes, and You get the same range as Nextion !
Thanks, for me this thread is finished, since I didn't find any satisfying display ... Long live mechanical switches !
I wanted to perform a very last test with Nextion. My idea was a user interface using only clickable pictures (more possibilities of customization than buttons), which I could show and hide according to context ; I used the 4.3" model of the "Intelligent" series , I attach the project file ; clicking works OK, but then I tried to hide p1 ... see the screen hardcopy ! No comment ...
Last edit: Bertrand BAROTH 2022-07-12
LOL
No comment ... Best read the manual.
https://nextion.tech/instruction-set/ command instruction 11. The syntax is incorrect - the error message is correct.
Thanks, now it works, at least for the things I need ... I saw YouTube demos, and even the command syntax suggested by the software itself, but at this size it is very difficult (not to say impossible) to distinguish a dot and a comma.
"Anobium", You wrote that You had a new Nextion to sell ; which type (size, I am looking for at least 3", better 4", and "family"), and what would be the price ?
If You prefer, You can send me a private message to my email address. (removed)
Last edit: Anobium 2022-07-12
This is the product page - https://nextion.tech/datasheets/nx8048p070-011r/
It is working.. I have just loaded your simple project. Looked like 'light wood'. Then, I have loaded a proper project from "C:\GCB@Syn\GreatCowBasic\Demos\glcd_solutions\glcd_nextion_solutions" in the demos - the upload was minutes via serial as the project is huge - it is faster via a memory card.
Wov, 7" ... Now let's come to the "financial part" ... Price (with shipment to France) ? And do You have a PayPal account, so I could (if I decide to buy) send the money in the "to a friend" mode ?
I got the ili9341 sdcard reader to work with mmbasic. Not implemented in gcb. Just one gpio line, cs, the other 3 are connected to the same pins as touch.
A way of storing bitmaps but seems the sdcard slot can be used for any storage.
This could be a cheap. ili9341 and rpi pico alternative to nextion.
it said no calibration errors for touch x,y and the display is fast with all the dials and buttons. etc.
I think it's a good implementation of the ili9341. It could stand on it's own as an embedded project but could be a slave display for gcb???
Last edit: stan cartwright 2022-07-12
The Nextion editor crashes all the time ... Probably related with my x64 Windows. Remember, at the beginning it didn't even start with the C++ runtime for x64 ...
All these systems remind me a joke by Houphouët-Boigny : "We couldn't go further because we had arrived at the edge of an abyss ; but meanwhile we succeeded in making again a big step forwards."
:)
And the best joke of all : finally I succeeded in creating the HMI file for Nextion, after many crashes and swearwords, I sent it to Anobium for testing ...
:)
Today I got "Anobium" ' s Nextion, I tested it with GCB Terminal, defined several macros for page selection. It works fine, exactly as I hoped. I have an USB to serial adapter which switches the USB port into "High current" mode and so delivers 500 mA on output. I don't know if "Anobium" can access his mailbox now, but all the way I say : "Thanks ... "
Great to hear.
Enjoy the GLCD for many years to come.
I wrote my test program ; it works fine ... I noticed only two minor and very small issues, but which are not really annoying :
- Due to the resistive function of the screen, triggering the touch control needs a rather (in my eyes) "strong" pressure. Maybe that this does not appear with capacitive touch screens ?
- And the same as with all touch screens : after a while of using, the screen is full with ... fingerprints and needs cleaning (I will use only a moist smooth cloth and water, since I think that the screen is made of a kind of polycarbonate).
Now comes the biggest difficulty : the "mechanical" integration of the screen into the front of the control desk !
Last edit: Bertrand BAROTH 2022-07-22
You get a free pen thing but touch finger prints?
This would be up your street for touch glcd . Rpi using mmbasic called picomite. It's much better than nextion and it's basic but lots of dials and buttons and switches, interrupt touch subs. brill.
Sorry to promote another basic but it will do more with an ili9341 than gcb
You can store files and bitmaps on the sdcard slot. It's new to me but nice,
Interpreted basisic but a dual core pico at 250 MHz .. it seems fast.
Sorry if I upset anyone but just amazed at mmbasic on rpi pico.
Just to let you know that there's alternatives to nextion editor and the cost.
These rpi picos are cheap and you could use python or c+, mmbasic has lots of nextion type stuff for the glcds it supports, it does the ili9341 very well.
You get a free pen thing but touch finger prints?
This would be up your street for touch glcd . Rpi using mmbasic called picomite. It's much better than nextion and it's basic but lots of dials and buttons and switches, interrupt touch subs. brill.
Sorry to promote another basic but it will do more with an ili9341 than gcb
You can store files and bitmaps on the sdcard slot. It's new to me but nice,
Interpreted basisic but a dual core pico at 250 MHz .. it seems fast.
Sorry if I upset anyone but just amazed at mmbasic on rpi pico.
Just to let you know that there's alternatives to nextion editor and the cost.
These rpi picos are cheap and you could use python or c+, mmbasic has lots of nextion type stuff for the glcds it supports, it does the ili9341 very well.
Bug : after selecting a page, I wanna hide some picture components (there is another picture in the background), so I cannot click them. But there is a little latency time (8515 with 4 MHz, STK200) during which the component IS clickable, it's difficult but thanks to Murphy possible : the component is briefly visible before disappearing. And it's not possible to hide an element on an inactive page (before showing it), the instruction : vis <page>.<component>,0 does not work ... Idem tsw.
So I would (will ? ) have to tell my prog to ignore the corresponding click code, in addition to the hiding of the component . Tedious ... </component></page>
Last edit: Bertrand BAROTH 2022-07-23
Finally I have 2 major reproaches against the device :
First, the impossibility of updating a hidden page in the background BEFORE showing it. So, one can see how all elements are modified, and this is rather ugly.
Second, the pressure needed to trigger a click, which leads sometimes to ignored commands. I must add that I noticed the same issue on a weighing scale (for fruits and vegetables) in a self-service store.
Finally, the device does not match my needs ; no matter, it was an attempt ! And finally I will keep my good old fashioned pushbuttons for "real" use ...
Resistive Touch requires a stylus not a finger.
It is pressure sensitive and the stylus concentrates the force on a point whilst a finger will spread the force.
Capacitive Touch is finger sensitive as the finger changes the capacitance not resistance.
Try a stylus, even a toothpick or an old dry ballpoint pen.
Add a script to the object in the Nextion. There are methods to achieve what you want. The objects on each page are addressable from the MCU and by the creation of events you should be able to achieve the outcome. I can look when I get back.
Proof the demo loaded when you received the GLCD. The first page was a video but the scripts had updated another page.. the key is the event scripting in the Nextion.
Re ensuring a click happened. Again, in the Nextion add a shadow to the button (or other ui piece) or add a physical 'click' sound.... All should be resolveable.
Last edit: Anobium 2022-07-23
Thanks Anobium, but it's too late. I will stay with my buttons : as Chris Roper said, i should use a stylus ... to control my railroad layout ? Really ridiculous ! And feedback is useless, since I saw the page changing after a click, ... and not changing after a failed click. :)
I disagree, try thinking out side of the box.
If you use Kadee or similar couplers your operator's will be carrying a stylus anyway in order to manually uncouple the cars/wagons.