Weird time behavior (millis, delay and tune) when the processor runs outside the Arduino board

Hi all.

David, they worked flawlessly after burning the bootloader. Thanks a million!!!

Tom, my apologies. I rushed too much out of frustration. I gotta read that for the next time. BTW, I can't post the circuit since I intend to sell them soon. I left my job at the telco industry to sell this devices and see if I can earn for a living. However, I can describe them for you in private in case you are interested.