How to recover files from a formatted SD card?

Some good chances if that was only a format, not a wipe clean

I would not use an Arduino though, look for "SD Card Recovery Software" or just "Data Recovery" on your computer