#117

  Рет қаралды 26,498

Cheap Controls

Cheap Controls

Күн бұрын

Пікірлер: 51
@abhijitrashinkar
@abhijitrashinkar 4 жыл бұрын
Hi! You are too good with NEXTION displays, I love watching your videos, thank you.
@CheapControls
@CheapControls 4 жыл бұрын
Glad you like them! Thanks for watching
@shanthipriyana5527
@shanthipriyana5527 4 жыл бұрын
Thank you for your videos. The way you are presenting the video is easy to understand. Best part is you don't edit the mistakes, so that we can learn from them. I am learning so much from them. Keep uploading more on nextion display. Once again thank you for your work.
@CheapControls
@CheapControls 4 жыл бұрын
I appreciate that!
@lv_woodturner3899
@lv_woodturner3899 4 жыл бұрын
Thanks for the video. I installed a battery in my Nextion display but had not tried using the RTC. Coding the RTC is not intuitive so this video is very helpful. Dave.
@CheapControls
@CheapControls 4 жыл бұрын
Glad I could help and thanks for watching.
@dannymartin4225
@dannymartin4225 4 жыл бұрын
Thanks so much for this video about the Nextion display and how to manipulate the RTC. I have searched for days on how to do this, after watching your video I finally discovered the answer to my dilemma on how to set and display the date and time on the Nextion enhanced display . I first had some trouble as how to program the timer event but after correcting my typos I got it all to come together. Again great explanation and look forward to seeing other videos about the Nextion displays.
@CheapControls
@CheapControls 4 жыл бұрын
Glad it helped. Thank you for the kind words.
@cristhiannasarioespinozaac5593
@cristhiannasarioespinozaac5593 4 жыл бұрын
excellent video. I'm learning a lot, keep uploading videos
@CheapControls
@CheapControls 4 жыл бұрын
Thanks, will do!
@santopino2546
@santopino2546 3 жыл бұрын
A small contribution text formatting for leading zeros: COVX instead of COV allows for text formatting Here is an example formatting to European standard. Example on display: 24.01.2021 11:45:19 Sun Format: DD.MM.YYYY hh:mm:ss DOW DT is a text field containing the date and time (length 19) String is a string variable (same as cov.txt in this video. DoW is a text field on the screen showing Day of week. The following text can be copied into the timer // convert day to text format 2 digits covx rtc2,DT.txt,2,0 // add "." DT.txt+="." // convert month to text format 2 digits covx rtc1,String.txt,2,0 DT.txt+=String.txt DT.txt+="." // convert year to text format 4 digits covx rtc0,String.txt,4,0 DT.txt+=String.txt DT.txt+=" " // convert Hour to text format 2 digits covx rtc3,String.txt,2,0 DT.txt+=String.txt DT.txt+=":" // convert Minutes to text format 2 digits covx rtc4,String.txt,2,0 DT.txt+=String.txt DT.txt+=":" // convert Seconds to text format 2 digits covx rtc5,String.txt,2,0 DT.txt+=String.txt DT.txt+=" " // convert RTC6 number to Day of week text on LCD if(rtc6==0) { DoW.txt="Sun" }else if(rtc6==1) { DoW.txt="Mon" }else if(rtc6==2) { DoW.txt="Tue" }else if(rtc6==3) { DoW.txt="Wed" }else if(rtc6==4) { DoW.txt="Thu" }else if(rtc6==5) { DoW.txt="Fri" }else { DoW.txt="Sat" }
@CheapControls
@CheapControls 3 жыл бұрын
Very in depth comment. Thanks for the tip and thanks for watching.
@davidkonczyna4052
@davidkonczyna4052 3 жыл бұрын
@@CheapControls Could you please help me with my problem? Where do I have to define variables rtc0 - rtc6?
@CheapControls
@CheapControls 3 жыл бұрын
@@davidkonczyna4052 You can set them anywhere you can do other codes. Even though they are a value don't use the .val. Just use rtc0=5 or if you are referencing a number field use rtc0=n0.val
@joshdavis2064
@joshdavis2064 3 жыл бұрын
hey there i just wanted to use the clock function as far as i can tell i did everything correct but i kept on getting this error. Error:Invalid Variables:string.txt( Double click to jump to code) Error:Invalid Variables:string.txt( Double click to jump to code) Error:Invalid Variables:string.txt( Double click to jump to code) Error:Invalid Variables:string.txt( Double click to jump to code) Error:Invalid Variables:string.txt( Double click to jump to code) Error:Invalid Variables:string.txt( Double click to jump to code) Error:Compile failed! 6 Errors, 0 Warnings, this is my code in the timer event. // convert Hour to text format 2 digits DT.txt+=String.txt DT.txt+=":" // convert Minutes to text format 2 digits covx rtc4,String.txt,2,0 DT.txt+=String.txt DT.txt+=":" // convert Seconds to text format 2 digits covx rtc5,String.txt,2,0 DT.txt+=String.txt DT.txt+=" " DT.txt=String.txt
@ser7ser7i
@ser7ser7i 4 жыл бұрын
Another perfect one, without stretching :)
@CheapControls
@CheapControls 4 жыл бұрын
Thanks again!
@edm.7555
@edm.7555 2 жыл бұрын
Very good! I'm trying to make the zero appear like: 20:01:01, but it looks like this: 20:1:1. Any tips?
@CheapControls
@CheapControls 2 жыл бұрын
You can check the value of the RTC element. If the value is less than 10 you can insert a "0" before you do the covx. You might need to store the value and then used the stored value in the comparison and the display. If the second or minute changed between the check and the display you could have 010. instead of 10. -- I hope this rambling made sense:-)
@zeitgeist8565
@zeitgeist8565 2 жыл бұрын
nice presentation
@CheapControls
@CheapControls 2 жыл бұрын
Thank you
@juanandreslopezcubides5626
@juanandreslopezcubides5626 Жыл бұрын
Hello, I made a program to change the time on the screen, it changes but when I restart the previous time appears again, is this not possible? Does it necessarily have to be synchronized with the PC?
@CheapControls
@CheapControls Жыл бұрын
Sorry for the late reply. You would have to store the time in eeprom and then reload from eeprom when you restart.
@viktor4o7
@viktor4o7 2 жыл бұрын
HEllo from Spain. Thank you for your videos, I have seen them all and they are helping me a lot in my projects. I wanted to ask you something about the hour meters. (If you can help me) it is possible to configure an accumulator clock of hours and minutes with the following configuration. 99999h59m? How should it be done?
@CheapControls
@CheapControls 2 жыл бұрын
would you want the "h" and "m" or more like this 99999:mm?
@paoloGTD
@paoloGTD 3 жыл бұрын
thank you very much nice video, I was able to manage and format the time, but on the simulator in the pc the date and time is updated, when I load the program on the display, the date and time is not updated, how can I have the date and time updated? do I have to send him the time from an ESP32?
@CheapControls
@CheapControls 3 жыл бұрын
Do you connect your Nextion to the computer when you program it or do you use a flash card? If you connect the Nextion directly to your computer to load the HMI file you can set the clock when it is connected. If you transfer the HMI program over flash you will have to program it with you ESP32 or Arduino.
@quickfixengineeringltd8035
@quickfixengineeringltd8035 3 жыл бұрын
Can I trigger a relay module using this rtc. I have trouble doing this with ds3231 module. I need to turn off a fridge between 9:pm and 5am
@CheapControls
@CheapControls 3 жыл бұрын
This would depend on how accurate you need it to be. I have noticed the Nextion RTC gets out of sync by a couple minutes over after running a few months. You could add the ability to adjust the time on the display and if you don't need too much accuracy I think it would work well.
@quickfixengineeringltd8035
@quickfixengineeringltd8035 3 жыл бұрын
@@CheapControls I really don't mind the accuracy. A few minutes variance can be tolerated. The overall aim is energy conservation. But if it does go out of sync after some months while already in a project, meaning it could cumulatively differ with as much as an hour after some years
@CheapControls
@CheapControls 3 жыл бұрын
I think you should be good. You can also add the ability to adjust the time on the display. The basic models do not have the ability to connect directly to a relay but the enhanced and intelligent models should work for you. I have some videos on connecting devices directly to the Nextion.
@quickfixengineeringltd8035
@quickfixengineeringltd8035 3 жыл бұрын
@@CheapControls thanks a million
@glaa91
@glaa91 2 жыл бұрын
Hi, i have a doubt: When a use the model nx4827k043, this example works perfectly, but when i use another model that i have( the "T" series nx4827t043), the compiler shows me this error: "Error:Do not support such variable for this series device:rtc0" and this is with all RTC, rtc0, rtc1, rtc2... Do you know what is happening? Thanks!!
@CheapControls
@CheapControls 2 жыл бұрын
Nextion has different Series of Displays. The Basic Series does not have a built in Run time clock. You can tell by a spot for a small battery on the display.
@leisryan
@leisryan 3 жыл бұрын
Hello Mark, I'm making a diesel generator PID throttle control it's mechanical injection so I only need RPM load control via throttle, I'm trying to do my best to migrate from PIC to Arduino, I am using Nextion for datalogging of Generator variables via SD card. I hope you could help me if I reach the point of dead-end skill-wise... (",) it seems that your sample codes are nowhere to be found on your site, must be a server issues...?
@CheapControls
@CheapControls 3 жыл бұрын
I went from pic chips to Arduino quite a few years ago. You should not have any problems. It is not a very steep learning curve.
@Piko_project
@Piko_project 2 жыл бұрын
this is a great video, i havae a question, can we display map with nextion??
@CheapControls
@CheapControls 2 жыл бұрын
I am not sure what you mean by "map". You can put an image of a map on a Nextion Display
@Piko_project
@Piko_project 2 жыл бұрын
@@CheapControls gps map i mean like google map
@CheapControls
@CheapControls 2 жыл бұрын
@@Piko_project I don't think there is a way to do that type of thing. Nextion displays are more for controlling objects and displaying sensor data.
@aurelioimprota482
@aurelioimprota482 4 жыл бұрын
Great video !!! Compliments!!! If you don't mind I would like to take the opportunity to ask you for a couple of tips, I would like to read the value of the "RTC" with arduino, after seeing his video I used some "Numbers" to have the possibility to change the value but I cannot modify it !!! How can I set my parameter in the RTC ??? Sure of your answer, thank you and greet !!!
@CheapControls
@CheapControls 4 жыл бұрын
I am sorry but that did not translate well. Are you asking how to set the values of the Real-time Clock?
@aurelioimprota482
@aurelioimprota482 4 жыл бұрын
@@CheapControls yes, I would like to have the opportunity to change the time when it changes between standard time and daylight saving time unless the rtc is already set for this function !!!
@comet4242
@comet4242 3 жыл бұрын
can you show how or a link to how to do the if statements to get 12 hour clock and then show am or pm
@CheapControls
@CheapControls 3 жыл бұрын
Sorry, I do not have a video on that yet. That is a good idea and I will think about making one.
@comet4242
@comet4242 2 жыл бұрын
@@CheapControls ya my other thing im struggling with is how to update the time when connected to internet.. i use Home Assistant and ESPHome.. and trying to figure how through ESPHome to get time to update itself when ESPHome sees internet then would update the nextion screen.. as i use the screen in the car.. as a Temperature display and Time.. but cant get it to work right.. keeps erasing the time.. if you can make a video or have one for ESPHOME or update Real Time Clock via wifi and the mini D1.. be great too
@CheapControls
@CheapControls 2 жыл бұрын
Sorry, I don't know much about the ESPHome. I wish I had more time so I could look into it.
@comet4242
@comet4242 2 жыл бұрын
@@CheapControls did you ever get a chance to make it work for 12 hour clock? as i tried with esphome and home assistant but gave up.. but wanted to have a 12 hour clock then synced with the network when wifi to the network.. so that it always syncs when the esp device gets internet the nexition screen would update the time to make sure its always in sync..
@comet4242
@comet4242 2 жыл бұрын
@@CheapControls i found when i use esphome to upload the time from esphome min hour sec it works then gets over written.. so i gave up on the project.. as i wanted to update the time each time it was connected to the wifi to be perfect all the time.. and a 12 hour clock
#120 Arduino Real Time Clock using the Millis() command
16:01
Cheap Controls
Рет қаралды 6 М.
204 nextion delay wo delay final
12:33
Cheap Controls
Рет қаралды 232
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
Nextion touch TFT display examples | Digital power supply - part 1
15:20
Nextion+Arduino Tutorial #3 RTC and EEPROM (Enhanced Version)
7:02
InterlinkKnight
Рет қаралды 75 М.
The #Nextion #HMI #RTC - Use, control and problem solving
4:15
ITEAD Studio
Рет қаралды 4,8 М.
How to use RTC-real time clock in Nextion Hmi screen
7:29
RoMecha_lb
Рет қаралды 7 М.
How to Display animation on NEXTION
8:31
ControllersTech
Рет қаралды 33 М.
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН