Turn any glasses into hackable smart glasses with less than $25 of off-the-shelf components. Record your life, remember people you meet, identify objects, translate text, and more.
We will ship a limited number of pre-built kits. Fill out the interest form to get notified.
Join the Based Hardware Discord for setup questions, contribution guide, and more.
Follow these steps to set up OpenGlass:
Gather the required components:
3D print the glasses mount case using the provided STL file.
Open the firmware folder and open the .ino
file in the Arduino IDE.
arduino-cli
Follow the software preparation steps to set up the Arduino IDE for the XIAO ESP32S3 board:
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
esp32
in the search box, select the latest version of esp32
, and install it.xiao
in the development board on the left and select XIAO_ESP32S3
.Before you flash go to the "Tools" drop down in the Arduino IDE and make sure you set "PSRAM:" to be "PSRAM: "OPI PSRAM"
Clone the OpenGlass repository and install the dependencies:
git clone https://github.com/BasedHardware/openglass.git
cd openglass
npm install
You can also use yarn to install, by doing
yarn install
Add API keys for Groq and OpenAI in the keys.ts
file located at https://github.com/BasedHardware/OpenGlass/blob/main/sources/keys.ts.
For Ollama, self-host the REST API from the repository at https://github.com/ollama/ollama and add the URL to the keys.ts
file. The URL should be http://localhost:11434/api/chat
go to terminal and type "ollama pull moondream:1.8b-v2-fp16"
Start the application:
npm start
If using yarn start the application with
yarn start
Note: This is an Expo project. For now, open the localhost link (this will appear after completing step 5) to access the web version.
This project is licensed under the MIT License.