SIGN OUT LOUD - The project came into existence for one sole purpose, to help the deaf/blind community to easily communicate and interact with their nearby surroundings and people. The aim is to convert basic symbols and gestures made by hand into sign language and display it through an app. A person communicating with someone who has a hearing inability can use this and display what they want to say through an app so that a differently abled person can read it and communicate effectively and productively.
ARDUINO NANO R3
FLEX SENSORS(5)
BLUETOOTH MODULE HC-05
GYROSENSOR
/**************************
#include <SoftwareSerial.h>
SoftwareSerial mySerial(0,1);
const int FLEX_PIN0 = A0;
const int FLEX_PIN1 = A1;
const int FLEX_PIN2 = A2;
const int FLEX_PIN3 = A3;
const int FLEX_PIN4 = A4;
const float VCC = 4.58; // Measured voltage of Ardunio 5V line
const float R_DIV = 100000.0; // Measured resistance of 3.3k resistor
const float STRAIGHT_RESISTANCE = 55000.0; // resistance when straight
const float BEND_RESISTANCE = 150000.0; // resistance at 90 deg
void setup()
{
//pinMode(FLEX_PIN, OUTPUT);
Serial.begin(9600);
pinMode(FLEX_PIN0, INPUT);
pinMode(FLEX_PIN1, INPUT);
pinMode(FLEX_PIN2, INPUT);
pinMode(FLEX_PIN3, INPUT);
pinMode(FLEX_PIN4, INPUT);
}
void loop()
{
// Read the ADC, and calculate voltage and resistance from it
int flexADC0 = analogRead(FLEX_PIN0);
int flexADC1 = analogRead(FLEX_PIN1);
int flexADC2 = analogRead(FLEX_PIN2);
int flexADC3 = analogRead(FLEX_PIN3);
int flexADC4 = analogRead(FLEX_PIN4);
float flexV = flexADC0 * VCC / 1023.0;
float flexR = R_DIV * (VCC / flexV - 1.0);
// Serial.println("Resistance: " + String(flexR) + " ohms");
// Use the calculated resistance to estimate the sensor's
// bend angle:
float angle = map(flexR, STRAIGHT_RESISTANCE, BEND_RESISTANCE,
0, 90.0);
//
Serial.println("BEND: " + String(angle) + " degrees");
Serial.println(flexADC4);if flexADC0<300
Serial.print("BYE");
if ((flecADC0>320)&&(flexADC4>220))
Serial.print("Can I go to the washroom?");
if 350<flexADC1<450
Serial.print("GO AWAY");
if ((flexADC0>300) && (flexADC1>330))
Serial.print("YOU'RE BEAUTIFUL");
if ((flexADC0>330)&&(flexADC1<330)&&(flexADC1<220))
Serial.print("OKAY");
if ((flexADC1>350)&&(380<flexADC2<450))
Serial.print("Peace");
if flexADC2>450
Serial.print("Pardon me");
if ((flexADC3<550)&&(flexADC1>500)&&(flexADC0>430))
Serial.print("Fine");
delay(5000);
}