Save data with atmega 328

What Arduino board are you using? They do not all handle USB the way you want to use it.

a7