![]() ![]() I have used something like this in the past and found sometimes I was off by 1.// EDITED TO WORK ON THE ARDUINO MEGA #if defined(_AVR_ATmega328P_) & defined(ILI9488_KBV_H_) //#define USE_SERIAL_COMPLEX //optimised C code for Uno, Xmega. When you touch the location of each pin on the display, the actual pin number that is connected to it, should change state and display in the Serial terminal. And run jumper wire where one side goes to GND. So if you run this, with your display removed. And then cycle through and read the state. ![]() But the idea is to run a sketch like this that pulls on of the pins high. If (pin_state) Serial.println(" - went High") Something sort of like: int last_pin_states = įor (uint8_t pin=2 pin<14 pin++) pinMode(pin, INPUT_PULLUP) Sometimes with wiring issues, I also run some simple sketch to check to see if I am getting the expected signal at different pins. Did you pass that pin number to the constructor. For example, you have a wire connected up to the reset pin. So you might want to double check.Īlso might help to know what sketch and library you are using.Īlso showing the constructor being used. Some of the photos looked sort of like the yellow wire was on the OE pin location instead of A8, but others look fine. You might connect CS to A1 of the level shifter and Pin 10 of the UNO to B1. OE - need to look up to see if high or low.Īnd then for each of the signals, like CS which goes to PIN 10. You would connect up the VCCA to 3.3v and VCCB to 5v, GND to GND. I think they put in something like a 100ohm resistor in series to the signal, which limits the current.īut assuming you want to play it safe and have one of these BiDirectional shifters. LED (might try IOPIN or +5v through resister like 100 ohm or such)Īnd who knows you might be lucky with your display as it mentions 3.3/5V. Reset 9 (they don't hook it up in this example, also add to constructor Suppose I am using the Adafruit_ILI9341 library, with the graphic test, I might wire it up like: So now I can not find anythingīut let's say I don't need to use level shifter with these boards. And several months ago, I tried to organize things. For example found one of my TXB0108 breakout boards from Adafruit. Sorry I usually just wing it, which is easy with some of the Bidirectional ones. I believe PJRC recommends something like a 100 ohm resistor. The other problem I ahve run into before is not remembering that you need to hook up the backlight pin, to power, probably through a resistor. SparkFun Level Shifter - 8 Channel (TXS0108E) - BOB-19626 - SparkFun Electronics With your current display I have hooked them up before to 5v processors, but I have typically done so through a level shifter chip/breakout board. Which is a shield that can simply plug into the Uno. Such as:Ģ.8 TFT Touch Shield for Arduino with Resistive Touch Screen v2 : ID 1651 : $24.95 : Adafruit Industries, Unique & fun DIY electronics and kits For example Adafruit sells a couple of ILI9341 displays that can work with either 3.3v or 5v logic. When I have played with 5v Arduinos such as the UNO, I prefer to use ones that have the level shifters built in. For example PJRC sells a version of these that you can use I have used some of these displays before, but only with CPU's that run with 3.3v logic, and they have the touch screen chip installed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |