How to flash the Arduino - dkidd928/cartreader GitHub Wiki
The Cart Reader's firmware is released as source code and needs to be compiled before flashing. Both can be done with the Arduino IDE. Each Cart Reader release comes with a preconfigured and tested portable Arduino IDE tailored for that specific release which includes the Cart_Reader sketch as well as all the needed libraries and does not interfere with any previous Arduino installation.
To upload the firmware to the Cart Reader please follow these steps:
0) Plug your Arduino Mega into a USB port. If you already completed the Cart Reader then the ON/OFF switch needs to be set to ON and the 3V/5V switch to 5V.
1) Download and extract VX.X_Portable.zip from the Releases tab.
2) Install CH341 drivers if needed by running SETUP.exe in the "CH341 Drivers" folder.
After the successful installation of the driver, there should be a CH340 entry in the device manager(WIN+R devmgmt.msc). This will also tell you what COM Port you need to select later on.
3) Launch "arduino.exe" found in the "Arduino IDE Portable" folder you just extracted(right-click "Run as administrator").
4) In the Arduino IDE go File -> Sketchbook -> Cart_Reader
5) Then Tools -> Port and select your Arduino. Also, make sure the board is set to "Arduino Mega or Mega 2560".
6) Finally Sketch -> Upload
7) As an alternative you can also download the Arduino installer: https://www.arduino.cc/en/Main/Software and then copy the two folders from "VX.X_Portable.zip\VX.X_Portable\Arduino IDE Portable\portable\sketchbook" to "C:\Users[yourusername]\Documents\Arduino" and launch the Arduino IDE from the newly created start menu entry.