loading
3 Comments

Tell us about yourself!

Complete Your Profile
  • How to use 2.4 inch TFT LCD SPFD5408 with Arduino Uno and Mega

    I have to say another problem for the Touch ScreenArduino analog input impedance is HiZ(Open)And the Touch Screen impedance is also HiZ while not push the screen.So the voltage from the Touch Screen is undecided while not touch the Screen.You'll read varied voltage then.I strongly recommend you put a register(10K ~ 30K) from A1 (YP) and A2(XM) to GND pin..masa

    Hi JulieG42I checked your program and found the code I suggested before.So there's no problem in this case.But I found another problem in your source code.1. Touch Screen was not initialized/*TouchScreen ts = TouchScreen(XP, YP, XM, YM, SENSIBILITY);*/This is your source code.Do not comment out the line.2.TSPoint p must be globalTSPoint p is used in the function of waitOneTouch().And the function is used for both setup() and loop()So move the code ""TSPoint p;" in the loop() to before the setup().And remove the code "TSPoint p;" in the waitOneTouch() function.3.No need to put value to p Enough Not necessarywaitOneTouch <---------- p = waitOneTouch();You've already set the value to "p" in the function ...see more »Hi JulieG42I checked your program and found the code I suggested before.So there's no problem in this case.But I found another problem in your source code.1. Touch Screen was not initialized/*TouchScreen ts = TouchScreen(XP, YP, XM, YM, SENSIBILITY);*/This is your source code.Do not comment out the line.2.TSPoint p must be globalTSPoint p is used in the function of waitOneTouch().And the function is used for both setup() and loop()So move the code ""TSPoint p;" in the loop() to before the setup().And remove the code "TSPoint p;" in the waitOneTouch() function.3.No need to put value to p Enough Not necessarywaitOneTouch <---------- p = waitOneTouch();You've already set the value to "p" in the function waitOneTouch().as this. p= ts.getPoint();Those are the points I noticed Have fun masa

    View Instructable »
  • masay66 followed Arduino channel 10 months ago
  • How to use 2.4 inch TFT LCD SPFD5408 with Arduino Uno and Mega

    HelloI had the same problem on my TFT LCD ILI9325 ever.I think It is from the PIN definition of LCD and Touch PanelIn this case A1 and A2 are duplicated When you access the LCD, those PIN mode must be set to digital out.But when you access the Touch Panel the mode must be changed to analog input.If your Touch Panel library does not work so you need to change the mode manually.And you should change the PIN mode to digital again after access the Touch Panel.Try to add these lines before and after access the Touch Panel.pinMode(LCD_WR,INPUT);pinMode(LCD_CD,INPUT);EX. p = ts.getPoint(); <==== Touch Panel access function pinMode(LCD_WR, OUTPUT);pinMode(LCD_CD,OUTPUT);masay66

    View Instructable »