Introduction: Gesture Typewriter!

Hello, I present to you a simple project with Arduino and the MPU6050 accelerometer, namely a gesture typewriter. A project made with only a few easy-to-buy components. For people with disabilities of the upper limbs, it can be a very useful device.

Supplies

1.Arduino Nano

2.MPU6050 accelerometer module

3.Oled display 64x128

4.2xLED's (optional parts)

5.2x330...470 ohms resistors

6.buzzer

Step 1: Schematic Diagram

The electrical scheme is simple, it should not cause any problems during construction. The LEDs from pins D11 and D12 may be missing, they are optional. If you choose not to mount the LEDs, the resistors are not mounted either. The SDA and SCL accelerometer module pins are connected to Arduino pins A4 and A5. As well as the SDA and SCL pins of the OLED.


Step 2: Construction

I built the assembly on a test board and made the electrical connections with a soldering iron on the back. I powered the device from a 9v battery to make the device as compact as possible. You can opt for any other type of construction, depending on your preferences. It is important that the position of the accelerometer is as rigid as possible for good operation.


Step 3: Operating Principle

The operating principle is simple" by tilting the device to the left or right, the letters of the alphabet will change at a higher or lower speed depending on the degree of inclination in the center of the lower part of the display forward or backward. When you approach the desired letter gently raise the device to the horizontal position until the string of letters stops. At this moment you can tilt the device towards you and the letter will be displayed at the top forming the desired word. For the pause between words, tilt the device towards you and the "_" symbol will appear appeared on the screen. If you want to delete the written letters or words, tilt the device with an inclination of more than 60-70 degrees towards you, and it will reset and the screen will be displayed in the initial position.


Step 4: The Code

The code is built in the Visuino program, but you can find all the details in the attached link to be able to load it from the Arduino IDE. You can also find the libraries used by the Visuino program, specifically the "Mitov" folder that you will have to copy to the location where you have the Arduino libraries installed. The code is intuitive, some comparators read the values ​​from the accelerometer output and toggle the output from "false" to "true" and command a counter that counts from 1 to 26, practically from A to Z. Another comparator "writes" the letter on the display .

  • Choose the correct port and upload the code to the Arduino.

Code, library : https://app.box.com/s/w7avl74a8x3s4eu...


Step 5: Testing the Device

  • As soon as you turn on the device, you can use it. No other operations are necessary, everything is very simple and should work "from the first". The only problem that could arise is related to the position of the accelerometer module, depending on the mounting position, it is possible that the letters run from left to right in reverse. This should be corrected by changing the position of the accelerometer, or if you don't mind, it can remain unchanged.
  • I hope you liked my project, for any other details you can contact me in the comments section.
  • Enjoy!