I don't have any experience with the OLED SSD* displays. I do have experience with the HD44780 LCD though. The HD44780 controller is part of the display (blobs on the PCB), however, some also have a I2C or SPI shift register fronting the normal (standardized) parallel interface. This project expects to interface to the normal parallel interface; with no serial front-end attached.
HARDWARE:See
this handy HD44780 LCD pinout (schematic). Or
here for a photo.
Note that pins on your display may be along the top or bottom edge. Pin 1 is on the left.
Pin 3 is a contrast voltage setting from the wiper of a 10K pot; with pot ends going to +5V and GND.
Pin 5 is normally tied to GND for write-only mode but it looks like the display project code expects to read-back from display memory so is MCU controlled.
Pins 7 through 10 (D0..D3) are left open since the Nano will be using 4-bit data transfer mode (saving MCU pins).
Pins 15, 16 on the far right (if provided) are LED+,LED-. Connect +5V via in-series 1K resistor to pin 15 and connect pin 16 to GND.
See
this handy Nano pinout (2nd picture).
According to "hp_display_spi.cpp" comments, connect:
53132A GND J1 pin 9 or 23 to Nano pin "GND"
53132A +5V J1 pin 10 or 20 to schottky diode anode with cathode to Nano pin "5V" (see note 1,3,5)
53132A VFSDSCLK J1 pin 12 to 1K5 to Nano "D13"/SCK (see note 2,3)
53132A VFDSIN J1 pin 14 do not connect to Nano
53132A VFDSOUT J1 pin 16 to 1K5 to Nano "D11"/MOSI (see note 3)
53132A VFDSEN J1 pin 18 to 1K5 to Nano "D2" (see note 3)
Nano "A0"/D14 to 1K5 to Nano "D10"/SS (see note 4)
Note 1: personally, I think it's kind-of sketchy to back-feed the on-board 5V regulator but apparently that's okay! See schematic
here. And discussion
here.
Ideally, you'd pull something >+5V from the 53132A and feed it to the Nano "Vin" which is tied to the input of the on-board 5V regulator.
Note 2: you'll need to remove the "L" LED or the resistor to it because the VFSDSCLK signal after passing through a 1K5 resistor will be mangled due to the LED load on "D13". Remove the LED only after you've confirmed that the blink sketch works (see below).
Note 3: you probably want to put the diode and 1K5 resistors behind the external connector on the 53132A side (before the external cable to the display).
Note 4: you have one Nano pin triggering another Nano pin because VFDSEN is a LOW-HIGH-LOW signal whereas /SS is inverted; HIGH-LOW-HIGH. So the former pin is triggered on an interrupt which is inverted to tickle the latter. Whatever!
Note 5: IMPORTANT IMPORTANT IMPORTANT, NEVER connect both the USB (to your computer) and cable from the project to the 53132A.
According to "lcd_20x4_hd44780.cpp" comments, connect:
Nano "D9" to HD44780 "RS"
Nano "D8" to HD44780 "R/W"
Nano "D7" to HD44780 "E"
Nano "D6" to HD44780 "D4"
Nano "D5" to HD44780 "D5"
Nano "D4" to HD44780 "D6"
Nano "D3" to HD44780 "D7"
See earlier for HD44780 pin 3 (contrast) and pin 15,16 (LED) treatment.
And HD44780 pin 1,2 are to be connected to GND, +5V.
SOFTWARE:-Install the latest IDE from
arduino.cc (version 2.3.3).
-Execute the IDE application for the first time which will download and install more stuff.
-Connect the Nano via USB.
-Specify to the IDE what board you're using via menu Tools->Board->Boards Manager...
-Specify to the IDE what serial port you're using via menu Tools->Port...
-Optionally you can specify to "Show verbose output during: compile, upload" (check both) in menu File->Preferences... (I like to see the compiler full output).
-Verify your installation by loading a sample sketch via menu File->Examples->01.Basics->Blink
-Click the round check mark symbol below the "File" menu to compile.
-Click the right arrow symbol below the "Edit" menu to upload to the Nano.
-You should see a blinking LED on the Nano.
Once you've confirmed that you can compile and upload a simple sketch then do the same for the display project code below.
-Install the "hd44780" by Bill Perry version 1.3.2 via menu Sketch->Include Libraries->Manage Libraries... entering "hd44780" in the search box.
-Visit the
display project github page and download the zip (see green "Code" button at top right of page).
-Extract the zip to the default "Arduino" user projects subdirectory (I'm on Linux, Windows or Mac may be different).
-Rename "hp_display-master" extracted subdirectory to "hp_display".
-Start the Arduino IDE application and open the "hp_display.ino" file within the "hp_display" subdirectory.
-In the "hp_display_config.h" file, uncomment the "//#define ARDUINO_NANO" and "//#define LCD_20X4_HD44780" lines. Then menu File->Save.
-Click the round check mark symbol below the "File" menu to compile.
-Connect the Nano via USB.
-Click the right arrow symbol below the "Edit" menu to upload to the Nano.