Project 6 - Making a Translating Keyboard

Demo Video

Summary

The Arduino Yún has the ability to act as a USB keyboard. This project builds a proof-of-concept device that: reads from a USB keyboard that you plug into the Yún; sends key presses to the PC; and translates sentences and paragraphs from English to one of three foreign languages.

When this project reads akey press from an external keyboard, it sends the information to the PC. When you press the Enter key, or a push button, the Arduino sketch translates the text and then resends it to your computer.

To translate text, you can use Microsoft’s Translator web service. However, accessing this service is complicated on the Yún. Temboo is a web service that simplifies how you can work with other, more-complicated web services.

Parts List

  • An Arduino Yún, connected to the Internet over Ethernet or Wi-Fi
  • A USB to micro-USB cable
  • A USB keyboard
  • One common-cathode RGB light-emitting diode (LED)
  • One 330 Ω resistor
  • One 10 kΩ resistor
  • A momentary push button
  • One 4-way rotary switch
  • A solderless breadboard and jumper wires

Useful Links

Circuit Diagrams

Source Code Download Here

ArduinoMeetsLinux-P6.ino

kbd.py

utf8.py

Start Building Today

book cover Start Reading Now

Your guide to Yún developement. Arduino Meets Linux includes:

  • Over 320+ pages of content
  • OpenWrt-Yun Linux tutorials
  • Python and shell scripting
  • 7 in-depth Arduino projects

Take your Arduino projects to the next level. This book shows you how.