![]() |
Forum Index : Microcontroller and PC projects : MuP 2
Author | Message | ||||
Georgenicholls Newbie ![]() Joined: 12/01/2017 Location: United KingdomPosts: 2 |
Good morning, Can anybody help me. I want to connect a 2.8 inch touch screen to the MuP 2. What connections do I use?. Regards George Nicholls. |
||||
WhiteWizzard Guru ![]() Joined: 05/04/2013 Location: United KingdomPosts: 2932 |
Hi George - good to see you on here ![]() Assuming you have an ILI9341 TFT with touch then: MM PIN: TFT PIN: 15 Touch_IRQ (recommend a 10K pull-up on this line too) 7 Touch_CS 14 Touch_DO AND SDO (MISO) 25 Touch_CLK AND SCK 3 Touch_DIN AND SDI (MOSI) 2 D/C 23 RESET 6 CS Also on TFT: LED needs +5v OR via a pot to allow variable brightness, OR via a simple circuit to allow PWM controlled brightness. For now, keep it simple and connect to +5v And obviously connect GND & Vcc to a 5v supply. Then configure the TFT in MMBASIC with: OPTION LCDPANEL ILI9341,L,2,23,6 and Touch with: OPTION TOUCH 7,15 NOTE: Test TFT with GUI TEST LCDPANEL and also you will need to calibrate the touchscreen initially with: GUI CALIBRATE. After calibrating, use GUI TEST TOUCH Hope this helps ![]() WW |
||||
bigmik![]() Guru ![]() Joined: 20/06/2011 Location: AustraliaPosts: 2949 |
GDay George, Of course there are many ways to connect a 2.4"/2.8" SPI TFT module as MMBasic caters for configurable pin options.. You could connect the way WhiteWizard suggests or alternatively, have a look at a board I designed after I designed MuP2 specifically to mate with these modules My BackPack170 If you look in the directory there you will find the manual (which includes the schematic and configuration strings) as well as the schematic in JPG format.. The schematic shows a PWM controlled (using pin 26) back light circuit or alternatively you can just connect the LED input of the module to 3.3V (maybe through a low value 4.7ohm resistor) to 3v3. WW or myself can supply you with a board if you chose to go that way. I also have a SMD version of the board SMD BackPack170 which includes an on-board RTC and USB input with USB-Serial chip. Kind Regards, Mick Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<< |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |