Smart Glasses for the Blind

1.2K21

Intro: Smart Glasses for the Blind

The aim of our project is to hopefully inspire people to use their creativity to develop innovative, cost-effective, and practical solutions to issues regarding the visually impaired. Our project is the smart glasses for the blind, a small, portable pair of glasses serve as a prototype for wearable tech that can allow the visually impared to recognize basic objects in front of them. The smart glasses can be be "trained" to recognize multiple objects by their colour, and output text-to-speech to inform the user of what they are looking at.

STEP 1: Fritzing Diagram

STEP 2: Mind Map

STEP 3: Arduino Code

#include


#include "Talkie.h" #include "Vocab_US_Large.h"

Talkie voice;

Pixy2 pixy; String signatureS; String pureSig; int sig;

void setup(){ Serial.begin(115200); Serial.begin("Starting...\n");

pixy.init();

#if defined(CORE_TEENSY) pinMode(3,OUTPUT); digitalWrite(3,HIGH) //Enable Amplified PROP shield #endif

voice.say(sp2_DANGER); voice.say(sp2_DANGER); voice.say(sp2_RED); voice.say(sp2_ALERT); voice.say(sp2_MOTOR); voice.say(sp2_IS); voice.say(sp2_ON); voice.say(sp2_FIRE); }

void loop(){ int i; //grab blocks! pixy.ccc.getBlocks();

//if there are detected blocks, print them! if(pixy.ccc.numBlocks){ for(int i = 0; i < pixy.ccc.numBlocks;i++){ sig = pixy.ccc.blocks[i].m_signature; Serial.println(sig);

switch(sig){ case 1: voice.say)sp2_DANGER); Serial.println("red"); break; case 2: voice.say)sp2_ALERT); Serial.println("danger"); break; case 3: voice.say)sp2_WARNING); Serial.println("warning"); break; default: break; } } } delay(2000); }

Comments