Devices & Components
Arduino Uno Rev3
Breadboard (generic)
Resistor 10k ohm
USB Connector, OTG
Jumper wires (generic)
Flex sensor
Hardware & Tools
Tape, Scotch
Hot glue gun (generic)
Software & Tools
MIT App Inventor 2
Tinkercad
Project description
Code
The Code
c_cpp
It is the code of the application. It can be altered according to the placement of the flex sensors on the fingers.
1int a = 0; 2 3int b = 0; 4 5int c = 0; 6 7int d = 0; 8 9int e = 0; 10 11void setup() 12{ 13 pinMode(A0, INPUT); 14 pinMode(A1, INPUT); 15 pinMode(A2, INPUT); 16 pinMode(A3, INPUT); 17 pinMode(A4, INPUT); 18 Serial.begin(9600); 19 20} 21 22void loop() 23{ 24 a = analogRead(A0); //thumb 25 c = analogRead(A1); //index 26 d = analogRead(A2); //middle 27 b = analogRead(A3); //ring 28 e = analogRead(A4); //little 29 { 30 if (a < 900 && b > 900 && c > 900 && d > 900 && e > 900 && a > 800 ) { 31 Serial.println("a"); 32 } 33 { 34 if (a > 900 && b < 900 && c < 900 && e < 900 ) { 35 Serial.println("b"); 36 } 37 38 if (a > 900 && b < 900 && c > 900 && d > 800 && e > 900 ) { 39 Serial.println("d"); 40 } 41 } 42 if (a > 900 && b > 900 && c > 900 && d > 900 && e > 900 ) { 43 Serial.println("e"); 44 } 45 if (a > 900 && b > 900 && c < 890 && e < 890 ) { 46 Serial.println("f"); 47 } 48 if (a < 900 && b < 900 && c > 890 && d > 890 && e > 890 && a > 800 ) { 49 Serial.println("g"); 50 } 51 if (a < 900 && b < 900 && c < 900 && d > 870 && e > 900 ) { 52 Serial.println("h"); 53 } 54 if (a > 900 && b > 900 && c > 900 && d > 900 && e < 900 ) { 55 Serial.println("i"); 56 } 57 if (a < 900 && b > 900 && c > 900 && d > 900 && e < 900 && a > 800 ) { 58 Serial.println("j"); 59 } 60 if (a > 900 && b < 900 && c < 900 && d > 900 && e > 900 ) { 61 Serial.println("k"); 62 } 63 if (a < 800 && b < 900 && c > 900 && d > 900 && e > 900 ) { 64 Serial.println("l"); 65 } 66 if (a < 800 && b > 900 && c > 900 && d > 900 && e < 900 ) { 67 Serial.println("m"); 68 } 69 if (a < 820 && b > 900 && c > 900 && d < 900 && e < 900 ) { 70 Serial.println("n"); 71 } 72 if (a > 820 && b < 900 && c < 900 && d < 900 && e > 900 ) { 73 Serial.println("o"); 74 } 75 if (a < 880 && b < 910 && c > 900 && d > 900 && e < 890 ) { 76 Serial.println("p"); 77 } 78 if (a < 850 && b < 900 && c > 900 && d < 920 && e < 890 ) { 79 Serial.println("q"); 80 } 81 if (a < 790 && b < 900 && c < 900 && d > 920 && e > 890 ) { 82 Serial.println("r"); 83 } 84 if (a < 960 && b > 900 && c > 900 && d > 920 && e > 890 && a > 940 ) { 85 Serial.println("s"); 86 } 87 if (a < 800 && b > 900 && d < 920 && e < 890 ) { 88 Serial.println("t"); 89 } 90 if (a > 900 && b < 900 && d > 900 && e < 900 ) { 91 Serial.println("u"); 92 } 93 if (a > 900 && b < 900 && d < 900 && e < 900 && c > 900 ) { 94 Serial.println("v"); 95 } 96 if (a < 900 && b < 900 && d < 900 && e < 900 && c > 900 ) { 97 Serial.println("w"); 98 } 99 if (a > 900 && b > 900 && d < 900 && e < 900 && c > 900 ) { 100 Serial.println("x"); 101 } 102 if (a > 800 && b > 900 && d < 900 && e > 900 && c > 900 ) { 103 Serial.println("y"); 104 } 105 if (a > 900 && b > 900 && d < 900 && e < 900 && c > 900 ) { 106 Serial.println("z"); 107 } 108 109 delay(2500); 110 }}
Downloadable files
The Schematic
It is the schematic of the device.
The Schematic

The Schematic
It is the schematic of the device.
The Schematic

Documentation
The App
It is the application which will be used to translate the gestures.
The App
The 3D Model
It is the 3D model of the device [.obj format]
The 3D Model
The 3D Model
It is the 3D model of the device [.obj format]
The 3D Model
The App
It is the application which will be used to translate the gestures.
The App
Comments
Only logged in users can leave comments