Progress Bar

Skip to main content

Jaycar
...

Symbol Keyboard

Symbol Keyboard

Difficulty
Test & Tools

Summary

Many of the articles that we write include scientific, mathematical or typographic symbols that aren’t easily entered with a keyboard. In Windows, for example, some symbols can be entered from the so-called Emoji Panel; previously, tools like Character Map allowed symbols to be copied to the clipboard for pasting into a document. However, those methods are slow and awkward.

Windows also supports ‘Alt codes’, which allow a code (corresponding to a specific symbol or character) to be entered on the numeric keypad. Many of the available characters come from what is known as Code Page 1252.

Since a Leonardo board can emulate a USB keyboard, it can generate these key sequences as needed. While a series of pushbuttons could be used for input, we have decided to use an LCD touch panel, as it allows us to customise the available symbols.

By using a display shield, assembly is simple: just plug the shield into the Leonardo board. Of course, it needs to be programmed; we have used the Arduino IDE for this, so it is easy to modify or customise.

The photo above shows a complete Symbol Keyboard populated with our choice of symbols. We often use these symbols when writing our articles, but there are many other useful ones in the Windows Code Page 1252 set. Many are accented letters used in languages other than English.

Note that the Alt codes scheme only works on Windows computers, so this keyboard will not work on other operating systems. Alt codes should also work in Linux, but for macOS, you would have to modify the software to use either Option codes or text replacements.

Materials Required

1Duinotech Leonardo r3 Main BoardXC4430
1Duinotech Arduino Compatible 2.5 Inch Colour LCD Touch Screen DisplayXC4630
10.5m USB A male to Micro-B CableWC7723

Plug the display shield into the Leonardo and use the USB cable to connect it to a computer. That completes the physical assembly! Next, download the sketch (siliconchip.au/Shop/6/378), extract the ZIP file, open the sketch with the Arduino IDE and upload the sketch. You shouldn’t need any external libraries.

While the sketch is compiling, open a text editor window (eg, Notepad) to test the Symbol Keyboard. This will also help to catch any stray keystrokes if there is a problem.

You should see the LCD screen initialise with the graphics seen in our photos. Pressing any of the symbols on the display panel should cause the corresponding symbol to be typed into the text editor. In that case, all is well.

If your display is not correct, try pressing the touch panel to see if that triggers keystrokes. That should still work even if the display is wrong. If the touch panel isn’t responding, try reprogramming the Leonardo.

leoandshield.png

Similar projects you may be interested in

Test & Tools
ATtiny Programmer Shield
Difficulty

Test & Tools
Revive your Arduino - ISP Programming
Difficulty

digital-compass-thumbnail.jpg
Test & Tools
Digital Compass
Difficulty

Jaycar-RCT-Hero
Test & Tools
Resistor & Capacitor Tester
Difficulty