How to write data on SD card of the Arduino TFT LCD screen with Official Arduino Robot?By default, on the Official Arduino Robot, µSD card reader located under the Arduino TFT screen is dedicated to read sound or bitmap. header file "ArduinoRobot.h" define it like that.
For our robot we want to save all our data into the µSD in the way to upload them later to a database using wireless connection.
Using the Robot::beginSD() is not interesting for us as it will initialize the Melody class to play music.
We prefer use directly SD method to manage SD directly.
'card' and 'file' are already defined into the main class of robot control 'Arduino.robot.h'.
SD card module is plugged into pin CARD_CS of the Arduino Robot control board. The management of this pin (due to SPI usage) is managed automatically by the LCD library part.