Hello, i am a student and i'm in need of help.
1. State exactly what the problem is.
- i tested the flex sensors and LCD (16x2) screen and it's working. The problem is how can i connect them with code? i tried alot of codes and the message that i want to appear in the LCD is not showing.
2. State which sensors you are using and provide a link to them.
- I am using Flex sensor 2.2 here what it is looks like: https://d1xahwiwo4b49p.cloudfront.net/1657-large_default/flex-sensor-22.jpg
3. If you are following an online tutorial, provide a link to that.
- im not really following any online tutorial but this is exactly what i want to happen, and i am not using speaker just LCD as a medium: Hand Talk Using Flex Sensor With Voice Output - YouTube
4. Provide a wiring diagram (or a link to an existing one if you are using that)
GND (LCD) is connected to GND (arduino uno r3)
VCC (LCD) is connected to 5V (arduino uno r3)
SDA (LCD) is connected to A4 (arduino uno r3)
SCL (LCD) is connected to A5 (arduino uno r3)
and for the flex sensor, i used breadboard to connect it (im using 1 flex sensor (2.2) for now)
so here's what i did: Flex Sensor Hookup Guide - SparkFun Learn
- Post the code you are using.
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
int flexPin1 = A0;
int value1;
void setup() {
// put your setup code here, to run once:
lcd.begin(16, 2);
lcd.setCursor(0, 0);
lcd.print("Sign Language");
Serial.begin(9600);
delay(200);
}
void loop() {
// put your main code here, to run repeatedly:
value1 = analogRead(flexPin1);
Serial.print(value1);
if (value1 > 150)
{
lcd.setCursor(0, 1);
lcd.print(" ");
lcd.setCursor(0, 1);
lcd.print("Food");
digitalWrite(6, HIGH);
Serial.println(" Food");
delay(500);
}
else
{
lcd.setCursor(0, 1);
lcd.print(" ");
lcd.setCursor(0, 1);
lcd.print("Sign Language");
lcd.clear();
digitalWrite(6, LOW);
Serial.println(" Sign Language");
delay(500);
}
}
above is the current code im trying to work on, since ive found he used this code (we have the same project)
if you are going to ask me the materials i only have here: