Hey folks, I've been working on a project for a few months now, and I'm trying to polish the hardware a bit in a new iteration.
Currently I'm using a Teensy 4.1 along with the Color 320x240 TFT Touchscreen, ILI9341 Controller Chip display purchased from PJRC. While the combo is performing well, I'd like to move to an IPS display to improve the viewing angle as I'm finding myself hunching over to stare down at the current display.
After realizing that the Dirtywave M8 is teensy powered, runs an ILI9341 display and has a much improved viewing angle, I popped it open to see what part it uses and I found the ER-TFT028A2-4. So I ended up ordering two from buydisplay.com, and had some time to look over the datasheet today. While I'm aiming to have a PCB similar to the one I currently have made (with the ER-TFT028A2-4 and minus the SD card + touch components), I think I'm probably going to make a few mistakes and I'm hoping I can get some guidance to reduce the number of times I need to design, order, wait, build, test, and repeat.
For starters, here are the pins that I'm currently using:
Here is an example of what I'm doing to set the backlight intensity:
Here is the datasheet for the ER-TFT028A2-4.
Here are the pins that I am fairly confident need to be connected:
I have zero confidence regarding power and backlight connections given that I'm pumping 5v into the display I currently have, and the datasheet for the ER-TFT028A2-4 indicates it's looking for 2.8v-3.3v for VCI/VDDI and 3.2v-3.4v for the backlight leds. Addressing this is my main concern at the moment. I would like to not fry the displays, and maintain the ability to change the backlight intensity using `analogWrite(DISPLAY_PIN_BACKLIGHT, ...)`.
As for the interface mode, I believe that I want `4-wire 8-bit data Serial Interface II`, so...
And finally I think all unused pins should be connected to GND.
Hopefully that's not too much info . I'm going to try to start getting something up and running in kicad after I decipher the details in another post on here that seems related: https://forum.pjrc.com/index.php?th...faders-are-moved-teensy-4-1.73803/post-333427. Thanks for taking a look!
Currently I'm using a Teensy 4.1 along with the Color 320x240 TFT Touchscreen, ILI9341 Controller Chip display purchased from PJRC. While the combo is performing well, I'd like to move to an IPS display to improve the viewing angle as I'm finding myself hunching over to stare down at the current display.
After realizing that the Dirtywave M8 is teensy powered, runs an ILI9341 display and has a much improved viewing angle, I popped it open to see what part it uses and I found the ER-TFT028A2-4. So I ended up ordering two from buydisplay.com, and had some time to look over the datasheet today. While I'm aiming to have a PCB similar to the one I currently have made (with the ER-TFT028A2-4 and minus the SD card + touch components), I think I'm probably going to make a few mistakes and I'm hoping I can get some guidance to reduce the number of times I need to design, order, wait, build, test, and repeat.
For starters, here are the pins that I'm currently using:
Code:
#define DISPLAY_PIN_CS 9
#define DISPLAY_PIN_RESET 6
#define DISPLAY_PIN_DC 10
#define DISPLAY_PIN_MOSI 11
#define DISPLAY_PIN_SCK 13
#define DISPLAY_PIN_BACKLIGHT 28
#define DISPLAY_PIN_MISO 12
Here is an example of what I'm doing to set the backlight intensity:
Code:
void SetBacklightIntensity(uint8_t value) {
value = ConstrainNumber<uint8_t>(value, 0, 100);
uint8_t pinValue = 255 * value / 100;
analogWrite(DISPLAY_PIN_BACKLIGHT, pinValue);
}
pinMode(DISPLAY_PIN_BACKLIGHT, OUTPUT);
SetBacklightIntensity(15);
Here is the datasheet for the ER-TFT028A2-4.
Here are the pins that I am fairly confident need to be connected:
Code:
CS -> CS (pin 38)
RESET -> RESET (pin 10)
DC -> WRX(D/CX) (pin 36)
MOSI -> SDI (pin 34)
SCK -> D/CX(SCL) (pin 37)
MISO -> SDO (pin 33)
GND -> GND (pins 43, 48-50)
I have zero confidence regarding power and backlight connections given that I'm pumping 5v into the display I currently have, and the datasheet for the ER-TFT028A2-4 indicates it's looking for 2.8v-3.3v for VCI/VDDI and 3.2v-3.4v for the backlight leds. Addressing this is my main concern at the moment. I would like to not fry the displays, and maintain the ability to change the backlight intensity using `analogWrite(DISPLAY_PIN_BACKLIGHT, ...)`.
As for the interface mode, I believe that I want `4-wire 8-bit data Serial Interface II`, so...
Code:
IM0 -> GND
IM1 -> VCI
IM2 -> VCI
IM3 -> VCI
And finally I think all unused pins should be connected to GND.
Hopefully that's not too much info . I'm going to try to start getting something up and running in kicad after I decipher the details in another post on here that seems related: https://forum.pjrc.com/index.php?th...faders-are-moved-teensy-4-1.73803/post-333427. Thanks for taking a look!