Just a question about drivers

Just a theoretical question if i install a driver from the computer to an Arduino uno when its plugged into the computer is the driver still working when i use the board with a battery unplugged from the computer

Whichever library (or driver) you include as part of your sketch will get included as part of the file sent to your UNO. This will stay programmed into your UNO regardless of whether you are running on battery power or via your computers USB power until it's over-written by your next sketch.

Your UNO can't tell which power source it is using and will run the same code regardless.

2 Likes

The processor uses Flash memory which is an electronic non-volatile computer memory storage medium that can be electrically erased and reprogrammed. Non-volatile indicates it needs no outside source of energy or anything else to remember what was programed into it. Program it, place it in a drawer and twenty years later it will still have the data you programed into it.

The reason for the FLASH is so you can do exactly what you are asking about it. Program the part then place it into your stand alone applications without any need for computer support once the code is working.

I think that there might be confusion about "driver" in the previous posts

A driver in my vocabulary is software that runs on a computer, not on an Arduino board. So you install a driver on a computer, not on an Arduino board.

I do think of task functions run in void loop() to handle hardware IO as analogous to DOS drivers of the TSR variety back in the day.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.