Help connect HXD8357D to a Arduino DUE

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
hswaters
 
Posts: 3
Joined: Tue Nov 23, 2021 5:54 pm

Help connect HXD8357D to a Arduino DUE

Post by hswaters »

I am a beginner with Arduino and Adafruit. I purchased a HXD8357D touch screen and have been trying to wire it properly to use with a Arduino DUE. I can find wiring for the uno and the mega but never for the DUE. I want to wire the 8 bit connection. I am not only new to this I am not all that bright so I need a picture that shows the connections as well as a narrative that tells me what I am doing. I wired the DUE to the touchscreen and it comes on as far as the screen lights up but I never get any graphics of any kind. I tried the spi connectios but it did not work so now I will be happy if I can just get the 8bit to work.

User avatar
hswaters
 
Posts: 3
Joined: Tue Nov 23, 2021 5:54 pm

Re: Help connect HXD8357D to a Arduino DUE

Post by hswaters »

Wow 63 views and no comments. Is it something I said, bad breath, need a new 7 day deodorant pad? I guess at this point I will just have to forget the display and get all my data on the serial cable. Thanks for reading.

User avatar
Franklin97355
 
Posts: 23912
Joined: Mon Apr 21, 2008 2:33 pm

Re: Help connect HXD8357D to a Arduino DUE

Post by Franklin97355 »

Perhaps it is that people, me included have not used a Due for a long time and are not familiar with it. How do you have it connected and can you post a picture of the connections and any soldering required? What is the product number you have and what program are you trying to run?

User avatar
hswaters
 
Posts: 3
Joined: Tue Nov 23, 2021 5:54 pm

Re: Help connect HXD8357D to a Arduino DUE

Post by hswaters »

I have tried the most simple of the adafruit graphics programs like autoscroll etc. I have not tried the touchscreen part of the wiring as the adafruit online instructions have me wiring something else to one of the pins that it calls for in the x-y setup.
The adafruit card number is the HX8357D.
The Arduino is the DUE model and says on it made in Italy.
I had to solder two headers on to the HX8357D one on the 8 bit end and one on the SPI end. I did find a cold solder joint on the 8 bit ground and corrected that.
The online instructions actually only mention the uno and the mega but I tried to wire like the instruction for the mega as it does not specifically say DUE as far as I remember.
I used one of these touch screen cards from adafruit on a uno one time and it worked fine. I do not have it as it went away when I sold a machine I had attached it to.

Here is one of the sketches I tried to use.

Code: Select all

/*
  LiquidCrystal Library - Autoscroll

 Demonstrates the use a 16x2 LCD display.  The LiquidCrystal
 library works with all LCD displays that are compatible with the
 Hitachi HD44780 driver. There are many of them out there, and you
 can usually tell them by the 16-pin interface.

 This sketch demonstrates the use of the autoscroll()
 and noAutoscroll() functions to make new text scroll or not.

 The circuit:
 * LCD RS pin to digital pin 12
 * LCD Enable pin to digital pin 11
 * LCD D4 pin to digital pin 5
 * LCD D5 pin to digital pin 4
 * LCD D6 pin to digital pin 3
 * LCD D7 pin to digital pin 2
 * LCD R/W pin to ground
 * 10K resistor:
 * ends to +5V and ground
 * wiper to LCD VO pin (pin 3)

 Library originally added 18 Apr 2008
 by David A. Mellis
 library modified 5 Jul 2009
 by Limor Fried (http://www.ladyada.net)
 example added 9 Jul 2009
 by Tom Igoe
 modified 22 Nov 2010
 by Tom Igoe
 modified 7 Nov 2016
 by Arturo Guadalupi

 This example code is in the public domain.

 http://www.arduino.cc/en/Tutorial/LiquidCrystalAutoscroll

*/

// include the library code:
#include <LiquidCrystal.h>

// initialize the library by associating any needed LCD interface pin
// with the arduino pin number it is connected to
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);

void setup() {
  // set up the LCD's number of columns and rows:
  lcd.begin(16, 2);
}

void loop() {
  // set the cursor to (0,0):
  lcd.setCursor(0, 0);
  // print from 0 to 9:
  for (int thisChar = 0; thisChar < 10; thisChar++) {
    lcd.print(thisChar);
    delay(500);
  }

  // set the cursor to (16,1):
  lcd.setCursor(16, 1);
  // set the display to automatically scroll:
  lcd.autoscroll();
  // print from 0 to 9:
  for (int thisChar = 0; thisChar < 10; thisChar++) {
    lcd.print(thisChar);
    delay(500);
  }
  // turn off automatic scrolling
  lcd.noAutoscroll();

  // clear screen for the next loop:
  lcd.clear();
}
Last edited by Franklin97355 on Sun Nov 28, 2021 12:41 am, edited 1 time in total.
Reason: Added code tags.

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”