A touchscreen matrix using an 3.5" ILI9488 TFT with resistive touch and a Raspberry Pi Pico. The Raspberry Pi Pico has native HID Keyboard support. This sketch gives you 12 buttons in a 4x3 matrix. Each button can have one or more keyboard functions.
Installing the arduino-pico
(https://github.com/earlephilhower/arduino-pico) core:
- In the Arduino IDE go to File->Preferences.
- Under "Additional Board Manager URLs" add this line:
https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
. Click OK. - Go to Tools->Boards->Board Manager. Type "pico" in the search box and click "Install" for "Raspberry Pi Pico/RP2040".
The sketch and board have been tested with the following Board Settings:
This example uses LittleFS for a tiny bit of storage. Storage is needed to store the calibration file that is created when calibrating the touchscreen. So make sure when you flash the Pico, you flash it with at least 64KB for the FS under "Flash Size".
For better connections and a nice finished project you can use the Pico + TFT Combiner board I designed. You can order these straight from PCBWay (https://www.pcbway.com/project/shareproject/Pico_Matrix_Touch_Keypad.html), donwload the gerbers, or the Kicad project. You can find them in the Pico_TFT_Combiner_Board
folder of this repository.
You can use the diagrams below if you want to connect the screen without using the combiner board.
If you like what I am doing, there are a number of ways you can support me.
Platform | Link |
---|---|
You can follow me on Twitter: @dustinwattsnl | |
You can subscribe to my channel on Youtube: /dustinWatts | |
You can support me by becoming a patron on Patreon: https://www.patreon.com/dustinwatts | |
You can make a one time donation using PayPal.me: https://www.paypal.me/dustinwattsnl |
For quick access to help you can join my Discord server: https://discord.gg/RE3XevS