![]() ukĭon't use millis() for timing on the ESP32. The forum mangles links sometimes, here's yours unmangled. I can't remember if the ESP32 has built in EEPROM but if not there is probably a library for simulating EEPROM in FLASH, don't know, not looked, something for you to investigate. Either use an external SD card if you need it to be removable or look at EEPROM for the ESP32. Could I use this to store the data from the process timer and sensors?Ĭertainly not with the Basic and Enhanced versions, possibly with the Intelligent version but I think you would be making hard work for yourself if it's even possible. #5 by Untipr - Displays - Arduino Forum Yes, you can get the Nextion to send you the values of it's internal clock, have a read of How to send a RTC Updating value from my Nextion to an Arduino without lib. I suggest writing a simple sketch to create a millis() based clock and leave it running for a few days and see how accurate it is. I would think the internal clock on an ESP32 would be accurate enough for an RTC. ![]() Note that only the Enhanced and Intelligent versions have an RTC, not the Basic version. See Displays - Arduino Forum for my tutorial on Nextion displays. Which would be easier to implement, as I am fairly new to this with only one project successfully implemented to date. Is this a viable option? For user to select inputs, such as time intervals in hours, what options would I have, since this is not touch screen? I also found this item on Amazon which has ESP board integrated with LCD display and LoRa, which might overcome lack of wifi access. I have not used any HMI before and interested to know if Nextion is a good option or overly complex for my requirements? Could I use this to store the data from the process timer and sensors? Re HMI, I was look at Nextion and I see that it has an onboard RTC. For phase 1 of the project, I had not intended to tackle the web access. My location for this project does not have a WAN so I'd need to use 4G or similar - don't know how complicated that would be on ESP. I have used that approach to get time in an other project which works very well. I will take this in stages, but want to make sure I am setting the correct foundation and select the right hardware. Ultimately, I would like to publish this data to a SQL database and display on web page. The tank sits on load cells sensors and I'd like to be able to store these weights and record times and dates of the fill/empty process. Once I have this operational, I'd like to have a simple HMI interface and a way to store some data. Can I rely upon millis() function to count the intervals, in a Finite State Machine, or would an RTC (which I haven't used before) be a better option? ![]() After each cycle, I would like I have a float switch to determine when the tank is full, which then needs to be emptied after a set period, ideally user input variable. The system needs to actuate two 220vac motorised ball valves, with SSR relays, to fill and empty a water vessel from a header tank. I am trying to design a system to manage a timed process which runs over a 30 hour process.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |