Skip to content

Test bench for AltSerialGraphicLCD version

Alexander Spiridonov edited this page Dec 25, 2023 · 4 revisions

Support for AltSerialGraphicLCD library should be enabled first, see Configuration section of Readme for details.

The following basic configuration can be prepared in order to follow along with the examples provided with the library.

About

Test bench for AltSerialGraphicLCD version of library consists of 128x64 Graphic LCD screen with properly configured SparkFun Graphic LCD Serial Backpack and 6 push-buttons (momentary switches) used to navigate through the menu: four directional controls, one Cancel, and one Ok.

Parts List

Schematic

Schematic is simple. Each switch is connected to the input pin 2 to 7 of Arduino using pulldown resistor (so the HIGH means that the button is pressed). Note, that this is different from how test bench for U8g2 version is wired. You may wish to implement additional debounce filtering to minify chances of false readings at the moment of button press (or try to increase value of the debounceDelay parameter of KeyDetector library, which is used in provided examples to detect button presses, during its initialization).

SparkFun Graphic LCD Serial Backpack is attached to LCD screen and connected to the 5V power source and to digital pins 8 and 9 of Arduino for serial communication via SoftwareSerial library.

Breadboard

Connect one terminal of each momentary switch both to its corresponding Arduino input pin (2, 3, 4, 5, 6, 7) and to ground through 10kOhm pulldown resistor. Connect the opposite terminal to 5V.

Connect LCD screen to SparkFun Graphic LCD Serial Backpack through its 20 control pins. Connect TX pin of backpack to digital pin 8 of Arduino, connect RX pin of backpack to digital pin 9 of Arduino. Connect backpack to 5V power source and to ground (through its Vin and GND pins respectively).

Use

This test bench is compatible with the AltSerialGraphicLCD examples supplied with the GEM library (if not stated otherwise). After compiling and uploading sketch to Arduino, wait while LCD screen boots and menu is being initialized and drawn to the screen. You now may use push-buttons to navigate and interact with the menu. See description of the specific example for details.