Jump to content


Photo

2.4" 320 x 240 Color LCD Booster Pack (with and without touch panel)

2.4 LCD BoosterPack touch

  • Please log in to reply
37 replies to this topic

#1 RobG

RobG

    Level 5

  • Members
  • 2,997 posts
  • LocationCary, NC, US


Posted 25 November 2014 - 04:19 AM

New LCD BoosterPacks are here. Both are 2.4" 320x240, one with touch panel, one without.

Both feature the same pinout as their "little" 2.2" brother, same configuration options and SD socket.

Can be used with my graphics library without any changes! 

 

Available on Tindie

 

Attached File  2.4.jpg   66.02KB   19 downloads

 

 

Attached File  2.4 LCD BP v3.pdf   30.77KB   74 downloads

Attached File  2.4 LCD BP v2.pdf   29.2KB   30 downloads


  • pine, CorB, Rei Vilo and 1 other like this

#2 Rei Vilo

Rei Vilo

    Level 4

  • Members
  • 1,210 posts
  • LocationFrance

Posted 25 November 2014 - 09:35 PM

What is the controller please?

#3 roadrunner84

roadrunner84

    Level 4

  • Members
  • 1,371 posts
  • LocationEindhoven, the Netherlands

Posted 26 November 2014 - 07:44 AM

@Rei Vilo looks like the controller is ILI9341 for the 2.2" version, as he didn't mention it for the 2.4" I suspect it's the same.


Always connect a pull-up resistor (47kΩ) and a pull-down capacitor (2.2nF) to reset.

Never use delay() or _delay_cycles(). Never use floating points in embedded systems.


#4 RobG

RobG

    Level 5

  • Members
  • 2,997 posts
  • LocationCary, NC, US


Posted 26 November 2014 - 12:55 PM

Yes, the controller is 9341.



#5 CorB

CorB

    Level 2

  • Members
  • 159 posts
  • LocationNetherlands


Posted 26 November 2014 - 04:53 PM

Hi Rob,

 

When will they become available and from which store ?

 

cheers

CorB



#6 RobG

RobG

    Level 5

  • Members
  • 2,997 posts
  • LocationCary, NC, US


Posted 26 November 2014 - 05:55 PM

I will put them up on Tindie today or tomorrow.

#7 RobG

RobG

    Level 5

  • Members
  • 2,997 posts
  • LocationCary, NC, US


Posted 03 December 2014 - 11:43 PM

Available now in limited quantities.



#8 CorB

CorB

    Level 2

  • Members
  • 159 posts
  • LocationNetherlands


Posted 04 December 2014 - 05:20 AM

Hi,

 

No shipping outside the US it seems.

 

CorB



#9 RobG

RobG

    Level 5

  • Members
  • 2,997 posts
  • LocationCary, NC, US


Posted 04 December 2014 - 05:49 AM

Request to ship and I will add it. I was too lazy to go through the list :)



#10 CorB

CorB

    Level 2

  • Members
  • 159 posts
  • LocationNetherlands


Posted 04 December 2014 - 04:42 PM

Thanks, ordered !



#11 CorB

CorB

    Level 2

  • Members
  • 159 posts
  • LocationNetherlands


Posted 12 December 2014 - 11:27 AM

And received. Thanks for sending it so fast.

 

Since I have time to start using it I started to look for documentation etc. There is no specific docs from this pack I have the feeling, or did I miss something ? 

I have seen in the discussion topic on your LCD library that you have updated code in april . But its a bit unclear which code fits the current boosterpack with touch. 

 

Also I am looking for  a simple schematic which shows which pin are used by default for this boosterpack and for which functions. The SCK/MISO/SOMI are simple as they are default on the launchpads, but where is CS and which pins are used by the touch/SD.

 

kind regards

Cor



#12 RobG

RobG

    Level 5

  • Members
  • 2,997 posts
  • LocationCary, NC, US


Posted 12 December 2014 - 12:38 PM

@CorB, the pinout is the same as my 2.2" 320x240 LCD, touch controller same as 2.2" Touch LCD.

I will add this information here later on and also update my lib (there are only 3 lines that have to be changed.)


  • CorB likes this

#13 CorB

CorB

    Level 2

  • Members
  • 159 posts
  • LocationNetherlands


Posted 12 December 2014 - 12:43 PM

Hi Rob,

 

Which of the current libraries should I then use ... the lines below are from your original posting. The unclear thing is that the ugl8 library is for a touchpanel and an ILI9225, whilst the current displays have ILI9342 and would direct me to ugl16.

 

2.2" ILI9225 based displays (touch panel) - ugl8

2.2" ILI9341 based displays 320x240 pixels - ugl16

 
I saw a pinout scheme that was made by Rei Velo for energia, that was a helpfull scheme ... if it is stil the same.
 
On the 3 lines that need to be changed in the Lib, can you share those here ?
 
regards
Cor 


#14 RobG

RobG

    Level 5

  • Members
  • 2,997 posts
  • LocationCary, NC, US


Posted 12 December 2014 - 07:35 PM

Here's the pinout (LCDs are preconfigured for new pinout.)

Pos/Pin   CS_Dis CS_SD  D/C
New(1)    P2.5   P2.4   P1.3
Legacy(2) P1.0   P2.5   P1.4
P2.0 Touch IRQ
P2.1 Touch CS

As for the library, use ugl16msp.zip (from here) and change the following lines in msp.h

// chip select
#ifndef LCD_CS_PIN
#define LCD_CS_PIN BIT5 // from BIT0 to BIT5
#define LCD_CS_PORT P2 // from P1 to P2
#endif
#define LCD_CS_OUT portOut(LCD_CS_PORT)
#define LCD_CS_DIR portDir(LCD_CS_PORT)
//
#define LCD_SELECT LCD_CS_OUT &= ~LCD_CS_PIN
#define LCD_DESELECT LCD_CS_OUT |= LCD_CS_PIN
// data/control
#ifndef LCD_DC_PIN
#define LCD_DC_PIN BIT3 // from BIT4 to BIT3
#define LCD_DC_PORT P1

Now, that library does not support touch panel, but there are some touch examples posted by me. Rei's library supports touch panel, so you could also use that one as well.

I am almost done adding touch to my library, but I am not sure when I will finish it, possibly next week.


  • CorB likes this

#15 CorB

CorB

    Level 2

  • Members
  • 159 posts
  • LocationNetherlands


Posted 13 December 2014 - 08:04 AM

Your library Works as planned, thanks !

 

When I try Rei Vilo's library (107) I only get a white screen ... no further response. That library was however not ment for the current pin-out so I changed one of the routines to follow the current pinout (I changed Screen Chip Select and Data Command). But that also did not solve it.

 

regards

Cor

 

from LCD22_touch.cpp

#if defined(__MSP430G2553__) // LaunchPad MSP430G2553 specific
LCD22_Touch::LCD22_Touch() {
    LCD22_Touch(P2_5,    // Screen Chip Select
                P1_5,    // Serial Clock
                P1_7,    // Serial Data
                P1_3,    // Data/Command
                P2_1, // Touch Chip Select
                P2_3);   // Reset
}


#16 Rei Vilo

Rei Vilo

    Level 4

  • Members
  • 1,210 posts
  • LocationFrance

Posted 13 December 2014 - 09:23 AM

@CorB
Thank you for reporting the issue.

Unfortunately, it is very difficult to add support for a new screen when I don't have one sample at hand, especially for "compatible" screens.
  • CorB likes this

#17 RobG

RobG

    Level 5

  • Members
  • 2,997 posts
  • LocationCary, NC, US


Posted 13 December 2014 - 01:41 PM

The new screen will work with ILI9431 library (like my 2.2" LCD BP) and the touch panel works just like in my 2.2" LCD with Touch BP (ILI9225.)

So all that should be required to make it work is just changing LCD CS & RS pin and which driver chip is used.



#18 CorB

CorB

    Level 2

  • Members
  • 159 posts
  • LocationNetherlands


Posted 16 December 2014 - 07:48 AM

Hi,

 

@RobG. Thanks for the answer but ... its not a response that helps me much. I have shared the part of the Energia code that I have changed, that part shows a change for the CS pin to 2_5 and the D/C to 1_3. You now mention a change to an RS pin. Which pin do you mean by this ? In your mail where you mentioned the changes there is no mention of an RS pin. Sorry to bother but I would like to get it working also on Energia.

 

cheers

Cor



#19 RobG

RobG

    Level 5

  • Members
  • 2,997 posts
  • LocationCary, NC, US


Posted 16 December 2014 - 12:40 PM

Sorry, I meant D/C pin, not RS (it's basically the same thing, data/control or register select.)



#20 CorB

CorB

    Level 2

  • Members
  • 159 posts
  • LocationNetherlands


Posted 16 December 2014 - 01:07 PM

That would mean the changes I made are the changes that should be made ... unfortunately I only get a white screen in Energia. Must be something else that blocks the code from working properly. So no touch yet. And to further complicate ... it seems the LCD is hampering the function of the Anaren Air Boosterpack I am using in conjunction. The Anaren signals incoming data on P2_6 and I had the feeling the LCD isnt using that pin at all. But when I mount the LCD the RF still works but doesnt signal incoming RF packages. Ah ... thats what fiddling with MCUs is all about ;)

 

 

EDIT: just found out things work as planned if I connect the LCD with only 6 lines (+3v3,GND, CS, D/C, MOSI, CLK) ... 

 

Problem Solved ... IRQ was interfering.







Also tagged with one or more of these keywords: 2.4, LCD, BoosterPack, touch

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users