|
Post by wphrwm on May 5, 2017 13:36:40 GMT
Has anyone connected a TFT display to the Shieldbuddy? I am planning to use the Adafruit 2.8" TFT Shield which is also touch sensitive but I will have to convert the 5v shieldbuddy outputs to 3.3v -not a problem. Is there a more suitable panel that you can recommend? Thanks in advance.
|
|
|
Post by Admin on May 5, 2017 13:43:27 GMT
|
|
|
Post by wphrwm on May 6, 2017 10:07:27 GMT
Many thanks. Will report on experience with this shield.
|
|
|
Post by wphrwm on May 25, 2017 15:05:55 GMT
Hi I got one of the boards that you suggested from Maplin
There are several practical issues with this board,
1. It plugs directly onto the shield buddy but does not have any thru-connectors so you lose a lot more pins than it needs. I have inserted a piece of veroboard with thru-connectors between the shield buddy and the display. 2. The documentation is almost non-existent and describes a graphical API that is very difficult to find on the web. 3. An API for the ILI9341 does exist on GitHub but is very rudimentary compared with the ADAfruit 2.4" offering. eg no routine to set the background colour or to clear the screen. There is an ILI9341 API from ADAFruit but it does not compile - will have a go at fixing this as it is only missing the pin definitions. 4. That said, the API functions do what they claim. 5. I have not yet got the touchscreen working - it seems to use the adafruit driver but this won't compile. Not tried hard with this yet. 6. I have got the ILI9341 manual (arghh!) and will see if I can implement some of the missing functions.
As an alternative approach, I have got a Nextion display that communicates with the host via a serial interface. You design display screens and then simple feed it the data to populate them. Looks good but there will be quite a lot of work designing the screens - probably as much as for a conventional display.
Happy to be told that I've got it wrong and there is a better API or someone has more experience with this display.
|
|
|
Post by tegwyntwmffat on Feb 6, 2018 11:00:59 GMT
There is an ILI9341 API from ADAFruit but it does not compile - will have a go at fixing this as it is only missing the pin definitions Did you get this working at all? wphrwmThanks.
|
|
|
Post by Admin on Feb 6, 2018 11:07:12 GMT
If someone can send a link to the ILI9341 Adafruit library, we will try it.
|
|
|
Post by tegwyntwmffat on Feb 6, 2018 11:21:01 GMT
|
|
|
Post by tegwyntwmffat on Feb 6, 2018 11:27:21 GMT
Currently getting error:
..... Arduino\libraries\Adafruit-ST7735-Library-master\Adafruit_ST7735.cpp:27:28: fatal error: wiring_private.h: No such file or directory
#include "wiring_private.h"
And:
...... Arduino\libraries\Adafruit_ILI9341-master\Adafruit_ILI9341.cpp:20:32: fatal error: wiring_private.h: No such file or directory
#include "wiring_private.h"
|
|
|
Post by Admin on Feb 6, 2018 11:43:31 GMT
OK, I have built it. I cannot test it due to the lack of an Adafruit display. You need to add this to the sketch:
#if defined (_AURIX_SHIELDBUDDY_TC275_) #define STMPE_CS 6 #define TFT_CS 9 #define TFT_DC 10 #define SD_CS 5 #endif
Then copy the attached wiring_private.h to "C:\Program Files (x86)\Arduino\hardware\aurduino\aurix\cores\aurduino"
wiring_private.h (2.22 KB)
We will put this new .h file into the next ShieldBuddy release.
|
|
|
Post by tegwyntwmffat on Feb 6, 2018 12:24:04 GMT
That works nicely thanks! I just pasted in the new .h file.
|
|
|
Post by Admin on Feb 6, 2018 13:12:03 GMT
Cool!
|
|
|
Post by tegwyntwmffat on Feb 6, 2018 14:05:53 GMT
...... Just destroyed my board ........ was working fine but I could smell something getting hot, the 00B00W regulator I think ..... then red light by reset switch came on and now it flashes randomly. Not sure if it was related to the TFT screen or not. I might have cracked the main chip or something like that attaching it to my main board as it took a lot of manipulation to attach/detach it. The MEGA seemed to fit a lot better and still works fine.
|
|
|
Post by wphrwm on May 6, 2018 20:34:01 GMT
Thanks for the above.
I have got the display working with the Arduino IDE but only after placing the "Wiring_private.h" file in the
"C:\Users\??\Documents\Arduino\libraries\Adafruit_GFX_Library" directory.
I also wish to use the built in SD card on this board but find that the SD card fails to initialise. I have looked at the web posts and find that this has, in the past, been an Arduino Mega problem but that it seems to have "gone away" as there have been no recent posts. The problem seemed to be with two devices using the SPI bus. I have tried all the documented solutions to no effect.
I noted the post on this site regarding the use of SDfat and, following it up, found SD header files (no CPP) in the
"C:\Program Files (x86)\Arduino\hardware\aurduino\aurix\libraries" and the " C:\Program Files (x86)\Arduino\hardware\aurduinodx\aurix\libraries" directories.
Are these locations only active when using Eclipse? or am I using a version of SD or the embedded SDfat that is peculiar to the ShieldBuddy installation even when using the Arduino IDE?
Any help or comments welcome. Thanks
|
|
|
Post by Admin on May 8, 2018 7:59:28 GMT
"C:\Program Files (x86)\Arduino\hardware\aurduino\aurix\libraries" and the " C:\Program Files (x86)\Arduino\hardware\aurduinodx\aurix\libraries" are only used by the Arduino IDE. Which chip select is the SD card on? D4? The SD card works OK on the Linksprite TFT shield. The Wiring_Private.h is now included in the ShieldBuddy add-in. Please make sure you are using the latest version:
www.hitex.co.uk/fileadmin/uk-files/downloads/ShieldBuddy/ShieldBuddyMulticoreIDE.zip
To use SdFAT, you need to use a special platform.txt for the Arduino environment that ignores the build-in SD card file filesystem. This is at:
aurduino.boards.net/attachment/download/91
|
|
|
Post by wphrwm on May 8, 2018 13:33:18 GMT
Hi Again. I have just tried to extract the latest ShieldBuddy add-in on Win10 and it fails with the error 0x80004005. I have checked for registry errors and there is no apparent problem. Directory permissions are OK. I eventually extracted on a Vista system and copied the exe to the Win10 system.
I then remembered that I had had this problem previously when trying to install this version but not with other versions. I do not remember earlier versions of the code being password protected but may be wrong.
|
|