Flash custom firmware in minutes and build your smart glasses your way. No vendor lock-in. Just hardware, code, and fun.
Use your favorite AI assistant to set up PMSG quickly.
Each option opens a pre-configured prompt tailored to your hardware and project.
How to use:
- Click the badge for your preferred AI.
- Follow the AI’s prompts to select your XIAO board and I²C sensors.
- Get step-by-step guidance for BLE, LEDs, vibration, and more.
💡 Tip: You can try multiple AIs to compare instructions or get alternative approaches. And Don’t forget your towel! Just like in Hitchhiker’s Guide. Use this as a reminder while exploring AI ✨ galaxy setup always think 42 is awnser. - Paul Stefaan Mooij 2025
How to use:
- Click the badge for your preferred AI.
- Follow the AI’s prompts to select your XIAO board and I²C sensors.
- Get step-by-step guidance for BLE, LEDs, vibration, and more.
💡 Tip: You can try multiple AIs to compare instructions or get alternative approaches.
💡 Tip
Always tell the AI which Seeed Studio XIAO board you are using by looking at Xiao sheeld or by asking via USB-c board info and whether you have I²C sensors connected.
Recommended:
- Open the PlatformIO folder ( plus Agent to help out )
- Let Agent read
/ai/mcp/*.json(if present) - Ask Agent to respect XIAO board pinouts
For Apple-centric workflows and Swift-based embedded experiments.
📁 Embedded Swift (Xcode) Project:
https://github.com/Control-C/PMSG/tree/main/Embedded%20Swift
Best for:
- Swift-based firmware experiments
- Apple ecosystem integrations
- Future Apple Intelligence workflows
** DeepSeek:** // Not tested in china
In 2026, we'll be rolling out exciting enhancements to the PMSG project. This includes pin reconfigurations for improved compatibility in next-generation versions (v4 and higher). We're also planning to release a comprehensive SDK along with affordable hardware kits based on the Seeed Studio XIAO platform—designed for easy integration without the need for a full pair of sunglasses. For more details on these upcoming features and to stay updated, visit our PMSG official website:
Opensource version:
Introducing the PMSG—because who needs designer wearables when you’ve got DIY smarts and a pair of old goggles? 🤓
Ever looked at your old sunglasses and thought, “These could use a little IoT love?” Well, now they can! The PMSG kit lets you swap out those boring old arms for a custom-made PCBA that looks and functions like something a hacker MacGyver would dream up. It fits just like the original—using the same hinges, screws, and probably duct tape somewhere—but now you’ve got space for sensors, connectors, and all the IoT magic you can pack onto your temples.
Perfect for those who want to look cool while tracking air quality, blinking Morse code, or… just pretending they’re Tony Stark. Now with 100% more tech nerd street cred. 🕶️
- Replace one (or both) arms of your glasses with a custom PCBA
- The PCBA has special cutouts for hinges, making it easy to attach to any old frame.
- Add or remove sensors and connectors with ease—think plug-and-play for your face!

Here’s what you’ll need to bring your PMSG to life:
- Old pair of safety glasses or sunglasses
- Custom PCBA (available in this repo its bassed on the seeed studio XIAO )
- buy extra pair of hinges simular to the original glasses
- Sensors (IoT-enabled sensors of your choice: e.g., air quality, light, temperature, Oled display and camera bassed off the Seeedstudio Grove and XIAO modular platform )
- Including A onboard batt holder and system simular to XIAO to run stand alone plans are to add solar pannels at side to dubble as UV sensor to warn user
- Connectors (to hook your glasses up to the web or other devices)
- The WIFI and BLE can we switch off and power and data can com via a USB-C host like Smartphone this protocol is called USB OTG experimental* ( tested on Android for apple ios we need to enter the Apple MFi program or have look at https://github.com/rsms/peertalk/tree/master/Peertalk%20iOS%20Example )
The fix possition of 2.4gHz antannane ( wifi/ble ) and possible more like Lora, UHF 800/900mhz I im still researching to also compli with SAR, RED, and FCC compliance
The PCB design includes:
- Special cutouts for attaching to standard eyewear hinges.
- Mounting holes for securing the arms to the glasses frame.
- Modular layout to easily add/remove components like sensors or IoT modules.
1 For an easy and simple way ready to start order direct from us—also to support the project at http://pmsg.online.
1.1 Get the PCB from the pcb_design folder. go to https://www.seeedstudio.com/fusion_pcb.html to *oder sample
*( dubble check hinges ar simular to you glasses and holes on PCB )

- Use the original screw from your glasses to attach the PCBA
- Mount your sensors and connectors into the designated slots on the PCBA. To ensure a better fit, you can enhance the setup by adding 3D-printed parts or applying paint/epoxy to the PCB.
- Voilà! Your Poor Men’s Smart Glasses are now ready for some tech magic.
Best is to go and check the offical website of Seeed studio for ESP32C3 this will help and let you setup your system
REV v1 does not include battery management. The plan for hardware REV 2 is to add battery charging and A0 monitoring for the battery later...
I primarily use PlatformIO, but since I started also with the Arduino IDE in my early years, I’ll also include files compatible with it make bit easyer to upload make stuff work...
------- WIP -------
The PMSG v1 includes:
-
MCU - Esp32C3 *( possible to use the WIFI and BLE please add external antenna its compatible XIAO 2.4Hgz also on todo for v2 )
-
Lux sensor - BH1721FVC-TR
-
Humidety and Temperure sensor - HDC1080DMBR
-
Button 1 port D8 3v3
-
Button 2 port D10 3v3
-
USB - C *( send data via serial 119200 for OTG )
-
Grove port for I2C ( for adding display on to glass inside inlcuding lens and Oled Display 0.96 )
-
Grove port for Uart 3v3 ( for adding a uart bassed camera to side of frame )
-
Grove port for GPIO - D2 and D3 3v3
-
A0 will be used to read out Batt level Battery voltage monitor
In 2026, we'll be rolling out exciting enhancements to the PMSG project. This includes pin reconfigurations for improved compatibility in next-generation versions (v4 and higher). We're also planning to release a comprehensive SDK along with affordable hardware kits based on the Seeed Studio XIAO platform—designed for easy integration without the need for a full pair of sunglasses. For more details on these upcoming features and to stay updated, visit our PMSG official website:

