this project is designed to be installed inside a pharmacy to be used as a weight and height measurement device , the project is supposed to run during all the working hours of the pharmacy where it's open from 9 am to 11:55 pm.
So can the Arduino nano withstand running for 15 hour daily , and how long does it last under such condition
I have some that have been running 24/7 since about 2016. As long as its specifications are maintained it should last indefinitely. For example the Flash is good for at least 100,000 write cycles . So if you upload 10 programs a day, every day for the next 27 years, you might wear it out. The flash is the weakest link in the processor.
I will expect that if it is built properly and none of its parameters are exceeded your great grand children should be able to watch it operate.
That, and the DuPont connectors are likely to present problems sooner or later as well, especially if people/things bump into the project box from time to time.
The lifetime of the actual Arduino is way at the bottom of the list of concerns.
My friend, you are asking the WRONG question. The correct question is: how can I detect a failure in the Arduino? You design your project so you can detect errors and failures.
I had an Arduino nano fail in my anemometer. The program uses float to compute wind speed and the average of the last 15 seconds of wind speed. Suddenly, one day, the computed values were way off from normal. Reloaded the program and no change. Replaced the nano and all was good again. Don't know what failed, but it did.
So are you able to change your system so errors can be detected?
Your logic is reasonable, but I'm not expert and I'm not really sure how to make design so errors can be detected, can you help me about that .
you will find the project diagram above .
I am not an expert on such design, either. But, you need to decide what it will cost you if there is a failure of your device. Sort of an insurance analysis.
Then decide if the cost of adding any sort of error detecting is worth it.
Most electronics fail at the power on time. This is why all PCs have a power-on self test. There are also ICs that force the proper power-on sequence for your electronic components. It worth the cost to redesign adding that control feature.
Just spend some time considering studying your project in the light of possible failures.
Neither dissipate any meaningful amount of power, so no.
The only thing that may heat up is the power supply. This is generally also the first thing that will fail.
The PC dies for any number of hardware related reasons
The PC dies for any number of software related reasons
Hackers infiltrate the PC.
The USB port dies
I could keep going on and on. There are myriad ways that a computer can fail. Far more than there are places where the Nano is going to fail.
The point isn't that the computer is a weak point. Only that it is weaker than the Nano that you are concerned about. Meaning that the Nano isn't really the place to put your worry.
@Delta_G
I have another issue
my sketch is quite lengthy, so when uploading it it gives me the current message,
Global variables use 1589 bytes (77%) of dynamic memory, leaving 459 bytes for local variables. Maximum is 2048 bytes.
Low memory available, stability problems may occur.