This is the source code for my SACE Stage 2 Industry and Entrepreneurial Solutions Major project. I used an Arduino Mega, USB host shield and touchscreen shield to create a portable USB reader.
USB Host Board: UsbFat
Touchscreen: Adafruit_GFX, MCUFRIEND_kbv, Adafruit Touchscreen
- Clone this repo locally and open it in the Arduino IDE or Visual Studio Code (or any other supported Arduino IDE)
- Download and install the libraries above
- Find the controller used for your touchscreen and uncomment it's line in the MCUFRIEND_kbv.cpp file
- Cut the PCB trace on the USB host board between the INT solder pads
- Run the calibration example program for your touchscreen in the MCUFRIEND_kbv library, pasting the values from the serial port into the program
- Place the screen on top of the USB host board and the USB host board on top of the Arduino Mega
- Upload this program to the Mega