Smart Glasses
An idea inspired from google glasses we tried making one using Arduino Nano and other such components, the device is capable of connecting to the smart phone via Bluetooth using Bluetooth module and display incoming calls, notifications and time for the same. The device was then mounted on a simple glass converting into a glass which can connect to your smart phone and thereby to the glasses, the programing was done in c and executed using Arduino ide. The application installed in the phone are given below.
Component:
- Arduino Nano
- OLED Display .96 inch
- Bluetooth Module: HC-05
- Power Supply
- Connecting Wires
- Vibrator Motor
Circuit Diagram:
Working:
Program:
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define OLED_RESET 4
Adafruit_SSD1306 display(OLED_RESET);
void setup() {
Serial.begin(9600);
display.begin(SSD1306_SWITCHCAPVCC, 0x3D);
display.display();
delay(2000);
display.clearDisplay();
}
void loop() {
while(Serial.available() > 0){
String Date = Serial.readStringUntil('|');
Serial.read();
String Time = Serial.readStringUntil('|');
Serial.read();
String Phone = Serial.readStringUntil('|');
Serial.read();
String Text = Serial.readStringUntil('\n');
Serial.read();
}
if(Text == "text" && Phone == "phone")
{ display.println(Date);
display.display();
display.println(Time);
display.display();
display.clearDisplay();
}
if (Text != "text" && Phone == "phone"){
display.println(Text);
display.display();
delay(5000);
display.clearDisplay();
}
if (Text == "text" && Phone != "phone"){
display.println(Phone);
display.display();
delay(5000);
display.clearDisplay();
}
}
Application:
https://drive.google.com/file/d/1srmNcQ9XZM2ZuYnZvFFTLAt-ITq4y8yJ/view?usp=sharing
References:
http://iaeme.com/MasterAdmin/uploadfolder/IJCET_11_01_003/IJCET_11_01_003.pdf
https://youtu.be/E-1w7dL3Cps
https://www.instructables.com/id/DIY-Smart-Augmented-Reality-Glasses-Using-Arduino/
Comments
Post a Comment