Series: Getting Started with GT-CP

Getting Started with GT-CP | Case Study : Tenkey Program


Case Study : Tenkey Program

As part of the Getting Started with GT-CP series, we will actually run the program using an Arduino connected to GT-CP. For details, please refer to Direct control in Step 8. This time, we will display the numeric keypad and show how the operation is actually performed by touching it.

Depending on your PC environment, you may not be able to connect USB to Arduino and GT-CP at the same time for writing.

Sample programs for Tenkey

 

This is an actual sample program that runs on an Arduino connected to the GT-CP via UART.

Preparation of Host Board

Please obtain an Arduino Pro Mini or equivalent in advance. It must have a CPU capable of outputting a stable 38,400 bps via UART and a signal voltage specification of 0 to 3.3V.

Compile the Arduino Sketch file and upload it to Arduino. See the sample program at the bottom of the page.

Preparation of GT-CP Module

Check the specification sheet and set the interface specification to UART (Baud Rate 38,400 bps). For GTWV070C300PA, set JP5 and JP6 to Short respectively, and the remaining JP1-JP4 and JP7-JP10 to OPEN.

Connect to the PC with the USB cable and turn on the power to the Module.

For more information, see Series: Getting Started with GT-CP STEP 1 Connect Display Connect Display

Register image files

Register image files in GTOMP to the module.

The image files referenced in the program can be downloaded from this link.

For more information, see Series: Getting Started with GT-CP STEP 4. Store and Display a Sample Image

Connection of GT-CP Module and Host (Arduino)

Refer to the wiring diagram below to connect the GT-CP Module to the Host (Arduino).

Turn on the power and the Sample Program will be executed.

Sample Program

This is Arduino Sketch. Compile the Arduino Sketch file and upload it to Arduino. The image files referenced in the program can be downloaded from this link.

 


Interested?

* Indicates a required field

- from