#120

  Рет қаралды 5,711

Cheap Controls

Cheap Controls

Күн бұрын

Пікірлер: 30
@johneagle4384
@johneagle4384 3 жыл бұрын
Thank you!! Nice video.
@CheapControls
@CheapControls 3 жыл бұрын
Glad you liked it!
@sanduc7757
@sanduc7757 4 жыл бұрын
thank you for the videos
@CheapControls
@CheapControls 4 жыл бұрын
My pleasure! Thank you for watching and taking the time to comment.
@222sandiego
@222sandiego 4 жыл бұрын
Love the videos. Have helped a lot. I like the pasting instead of typing - reduces errors and keeps the flow. Would like to understand more the async timer. Also, can you post the code somewhere? Thanks again
@CheapControls
@CheapControls 4 жыл бұрын
Thanks for the reply and the comment on pasting over typing. I prefer to paste. It speeds up the videos also. I watch videos by Brad Traversy on programming and he types it out which is nice if you are following along. I wish more people would give me their opinions on this. I will probably start leaning toward cut an paste as I get my website better configured for people to download the code. I thought I had the code for this video up on www.cheapcontrols.com but I do not yet. I will try to get it on there soon. I will try to remember to comment here when it is up.
@ipadize
@ipadize 4 жыл бұрын
i have a different question. I may want to be able to change the font using the device itself. So i created some buttons with the appropriate font name and i can change fonts of buttons etc. But how can i change the font of a button on another page? It only sees the buttons on the same page.
@CheapControls
@CheapControls 4 жыл бұрын
I have not tried that but, you could try and set the objects you want to change to global or maybe You could set a global variable and test for that value on page load.
@ipadize
@ipadize 4 жыл бұрын
@@CheapControls thanks i will try that
@ipadize
@ipadize 4 жыл бұрын
@@CheapControls doesnt seem to work or i do it wrong. i have every button and page globally and the variable as well but it doesnt get found on other pages
@ipadize
@ipadize 4 жыл бұрын
​@@CheapControls but i cound try to send something to the esp32 and then it sets the font
@CheapControls
@CheapControls 4 жыл бұрын
Sorry, I have not had time to try this out but I will try to look at it tonight. I hope you would not need to store something away from the physical display on an external device but that is another option.
@222sandiego
@222sandiego 4 жыл бұрын
The timer works great. Question/Challenge: how would one modify the code to create a countdown timer? Thanks
@CheapControls
@CheapControls 4 жыл бұрын
That is an interesting idea. Are you thinking of this running on a Nextion display or just a static timer that restarts every time you restart the Arduino? I have not been very good at uploading the code to the cheap controls website. If there is something specific complete the form on the cheap controls site and I will email you any file you ask for.
@222sandiego
@222sandiego 4 жыл бұрын
The timer would run on the display. My specific application is taking user input (from the Nextion) to specify the duration of a pump run and then displaying the time as a countdown timer on the Nextion. When the countdown timer completes the pump would stop (or any other action required at the completion of a countdown timer). The internet is replete with examples but none are as straightforward as it seems like it should be. Your help would be appreciated.
@CheapControls
@CheapControls 4 жыл бұрын
What is the time frame you are talking about, minutes hours days? This could be an interesting video.
@222sandiego
@222sandiego 4 жыл бұрын
I’d like the flexibility of user input configuring all three. Ideally with a daily / weekly recurrence option - but I’m dreaming here. My immediate need is to use input from the user via the Nextion to configure a countdown timer for hours / min / sec (and not rollover at 00:00:00) and execute something at the start and end (in my case a relay to start a pump and stop it when the countdown ends). You’d be an internet hero if you could make this simple. I’ve searched literally for two days and found very little (that I could understand anyway...). Maybe its just inherently a deceptively hard problem?
@CheapControls
@CheapControls 4 жыл бұрын
Sounds good. Consider going over to the Cheap Controls web page and entering a comment with your Email address so we can discuss this in more detail. If you don't want to do that I understand and will try to get a video out on this project next week.
@cristhiannasarioespinozaac5593
@cristhiannasarioespinozaac5593 4 жыл бұрын
Amazing
@CheapControls
@CheapControls 4 жыл бұрын
Thanks for the compliment and for watching.
@claytonjandeliverio6348
@claytonjandeliverio6348 2 жыл бұрын
does this code work on arduino uno?
@CheapControls
@CheapControls 2 жыл бұрын
It doesn't work very well but if perfect accuracy is not needed, it works ok.
@claytonjandeliverio6348
@claytonjandeliverio6348 2 жыл бұрын
@@CheapControls if accuracy is need. do i have to install a specific library for its communication/Serial and what would it be?
@CheapControls
@CheapControls 2 жыл бұрын
No library. Millis is part of standard arduino code. Just use variables.
@CheapControls
@CheapControls 2 жыл бұрын
If you want accuracy you will need to add a Real time Clock chip
#121 Arduino Displaying an integer as Bits in the serial monitor
13:43
Cheap Controls
Рет қаралды 1,4 М.
#89 Nextion Display get command Part 1 The Setup Nextion Tutorial
8:00
Как Ходили родители в ШКОЛУ!
0:49
Family Box
Рет қаралды 2,3 МЛН
OCCUPIED #shortssprintbrasil
0:37
Natan por Aí
Рет қаралды 131 МЛН
#behindthescenes @CrissaJackson
0:11
Happy Kelli
Рет қаралды 27 МЛН
#117 Nextion Internal Real Time Clock RTC
16:05
Cheap Controls
Рет қаралды 26 М.
#119 Nextion cov to covx
13:36
Cheap Controls
Рет қаралды 4,3 М.
ESP32 Internet Clock (4.0) With RTC
16:54
EE Craft
Рет қаралды 200