Nishant Bhat
Created September 3, 2024

VisionAid: Empowering the Visually Impaired

Empower visually impaired individuals with an AI app that identifies objects, colors, and text, enhancing independence.

16
VisionAid: Empowering the Visually Impaired

Things used in this project

Hardware components

Blues Swan
Blues Swan
×1
Blues Notecard (Cellular)
Blues Notecard (Cellular)
×1

Story

Read more

Code

VisionAid: Empowering the Visually Impaired

C/C++
This Arduino code initializes the TCS34725 color sensor and continuously reads the RGB values of the detected color. The values are printed to the serial monitor, providing a basic functionality for color detection that can be integrated into the mobile app.
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_TCS34725.h>

Adafruit_TCS34725 tcs = Adafruit_TCS34725(TCS34725_INTEGRATIONTIME_50MS, TCS34725_GAIN_4X);

void setup() {
  Serial.begin(9600);
  if (tcs.begin()) {
    Serial.println("Found TCS34725");
  } else {
    Serial.println("No TCS34725 found ... check your connections");
    while (1);
  }
}

void loop() {
  uint16_t r, g, b, c;
  tcs.getRawData(&r, &g, &b, &c);
  Serial.print("R: "); Serial.print(r);
  Serial.print(" G: "); Serial.print(g);
  Serial.print(" B: "); Serial.print(b);
  Serial.print(" C: "); Serial.print(c);
  delay(1000);
}

Credits

Nishant Bhat

Nishant Bhat

1 project • 1 follower

Comments