A project for learning braille using FSR

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

Please show the code that uses all 6 of the FSR pins.

The code i've posted is the code that we used for the FSR pins, the only thing that happens is that we know that there is an output for each of the 6 fsr pins, we haven't connected it elsewhere

Are you going to use this code to continue your project, or start completely over again? You know this works a bit, so add the rest of the necessary code and continue with your development. Time is a wasting!

yep, we're continuing this project prior to that code, the only problem is that I haven't learn about the hardware of Text to speech an how to connect it with the sensors

I haven't either. However, the code you show is a very long way from being useful as input to a text to speech system. The first problem I see is there is no way to identify the end of a word that might be combined with previous words to make "text".

Is it possible to translate these sensor outputs into text? If so how can we make it possible

A wired sensor will give analog-to-digital voltage levels (1024 steps from 0 to 5), or digital voltage levels (0 or 5). You will use that to make a computer speak.

Thank you guys so much for helping <33

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.