Sorry if this is a stupid question, but I'm new to Pi and Arduino, and couldn't really find an answer through Googling. I'm designing a project that needs some sort of "brain" which will use PID to control relays turning on and off, and I'm unsure whether I should use Pi or Arduino. I would like to be able to write the code for the project then store it on the board I will be using and have it operate continuously without an internet connection or other computer / monitor (just a power supply). I believe Arduino can do this according to this post I found on another site: https://forum.arduino.cc/t/save-program-to-board/38100
My question is, can any version of a Raspberry Pi do the same thing, or does it require an internet connection to run any code I write?