Im currently in junior high, trying to create a prototype for a project about using FSR in translating braille characters into speech. We're currently halfway (I think), we've finished the code and hardware for the FSR( 6 individual FSR for each individual bumps of the braille character) and now tackling the hardware for translating the inputs of the sensors. any suggestion on how we might finish this project?, we're only using one arduino uno (R3) board because our school let us borrow ir, we're thinking about using Text to speech in translating the given inputs of the sensors
This is the code we've used for the sensors:
int pressureAnalogPins[] = {0, 4, 5}; // Pins where our pressure pads are located
int numPressureAnalogPins = 3; // Number of pressure analog pins
int pressureReading; // Variable for storing our reading
// Adjust these if required.
int noPressure = 2; // Max value for no pressure on the pad
int lightPressure = 50; // Max value for light pressure on the pad
int mediumPressure = 100; // Max value for medium pressure on the pad
void setup(void) {
Serial.begin(9600);
}
void loop(void) {
for (int i = 0; i < numPressureAnalogPins; i++) {
int currentPressureAnalogPin = pressureAnalogPins[i];
pressureReading = analogRead(currentPressureAnalogPin);
Serial.print("Pressure Pad ");
Serial.print(i + 1);
Serial.print(" Reading = ");
Serial.println(pressureReading);
if (pressureReading < noPressure) {
Serial.println(" - No pressure");
} else if (pressureReading < lightPressure) {
Serial.println(" - Light Pressure");
} else if (pressureReading < mediumPressure) {
Serial.println(" - Medium Pressure");
} else {
Serial.println(" - High Pressure");
}
delay(500);
}
}
This would greatly help 6 students tryna pass a subject, thank you so much in advance