Post by TravisCrash on Jan 15, 2020 23:13:38 GMT -8
Hello,
First off, this is my first post. I am a novice with electronics, but I am willing to read and learn. I have been trolling around this forum, looking at the instructions at the GD2 GitHub, and perusing around the general interwebs for about three weeks trying to synthesize pieces of information together that will help me solve my issues on my own. It's come time to reach out for help. Hopefully I am asking valid questions, and not just being a bonehead.
I am attempting to make a touch screen interface for an oxygen sensor. I have been successful at interfacing with the sensor module over UART with an ESP32 (adafruit Huzzah 32 feather). I have been successful at creating a server on the esp32 and a corresponding web page to display the sensor values. I have not, however, successfully displayed the sensor value on a New Haven NHD-4.3-480272ft-csxn-ctp.
At this point I am not certain if the wiring is correct, if there isn't enough power to drive the esp and the display, or if I have improperly configured the GD2 library.
Board - Display
imgur.com/a/EpMc2U1
imgur.com/a/U3UFPCk
My Pins are setup like this:
Library:
I have installed the Gameduino2 library, and Hello World will compile and load onto the ESP32 board. The screen does not respond though.
Some things I have noticed, but am not sure what to do about them:
Thank you for reading through that, or if you didn't read it, thanks for scanning it. haha. I am sorry if this is just so simple, and I am making it harder than it needs to be. Assistance with this will be greatly appreciated, and if you have a donate link I'd happily buy you a coffee for your efforts.
This is a fantastic community, and a very cool bit of technology.
Cheers!
-Travis
First off, this is my first post. I am a novice with electronics, but I am willing to read and learn. I have been trolling around this forum, looking at the instructions at the GD2 GitHub, and perusing around the general interwebs for about three weeks trying to synthesize pieces of information together that will help me solve my issues on my own. It's come time to reach out for help. Hopefully I am asking valid questions, and not just being a bonehead.
I am attempting to make a touch screen interface for an oxygen sensor. I have been successful at interfacing with the sensor module over UART with an ESP32 (adafruit Huzzah 32 feather). I have been successful at creating a server on the esp32 and a corresponding web page to display the sensor values. I have not, however, successfully displayed the sensor value on a New Haven NHD-4.3-480272ft-csxn-ctp.
At this point I am not certain if the wiring is correct, if there isn't enough power to drive the esp and the display, or if I have improperly configured the GD2 library.
Board - Display
My Pins are setup like this:
Huzzah32 Pin | NHD Display Pin |
3V | 1 VDD |
GND | 2 GND |
SCK | 3 SCK |
MOSI | 4 MISO |
MISO | 5 MOSI |
12 | 6 CS |
3V | 17 BL_VDD |
GND | 19_BL_GND |
Library:
I have installed the Gameduino2 library, and Hello World will compile and load onto the ESP32 board. The screen does not respond though.
Some things I have noticed, but am not sure what to do about them:
- In the NHD documentation(Section: Serial Host Interface on Pg. 7) for this screen there is talk about MOSI and MISO having modes. Do I need to edit the GD2 start up mode? I have tried flipping the MOSI and MISO wires did not get a response from the screen.
- On the GitHub page for GD2-lib is a section for setting up the library for 800 x 480 pixels. Since the display I am using isn't a true Gameduino, should I also be editing the "scanout registers" but for my 480x272 display? There is a section in the display's documentation that gives TFT Timing Characteristics. do I need to edit these characteristics in one of the library files?
- Changing CS pin: I have gone into wiring.h and seen line 5 has #define CS 12, and I also changed line 11 to also say #define CS 12. Is there anything else in wiring.h I need to edit in order for GD2 to work for ESP32 with this display?
- In GD2.h, line 41 starts to define boards. ESP32 is not explicitly part of the list, so i am assuming i should put "BOARD_OTHER" in place of BOARD_GAMEDUINO23 on line 46. so, the line used to be:
#define BOARD BOARD_GAMEDUINO23 // board, from above
And now it reads:
#define BOARD BOARD_OTHER // board, from above
Should I actually be writing ESP32 instead of BOARD_OTHER? Or does arduino tell the GD2 library what board the sketch is being compiled for? - on line 47 I changed the 1 after STORAGE to 0 because i don't have an SD card reader, is it necessary to have an SD card reader? Should I just leave it as 1?
- in GD2.h I also changed line 64 to #define DEFAULT_CS 12 in the hopes that the library really will know that pin 12 is the CS pin.
- Do i need to edit anything else in GD2.h to make things work?
- In GD2.cpp on line 37 do i need to replace ft8xx_model with something? Or do i need to define the FT813 in wiring.h?
Thank you for reading through that, or if you didn't read it, thanks for scanning it. haha. I am sorry if this is just so simple, and I am making it harder than it needs to be. Assistance with this will be greatly appreciated, and if you have a donate link I'd happily buy you a coffee for your efforts.
This is a fantastic community, and a very cool bit of technology.
Cheers!
-Travis