Open mbz4 opened 18 hours ago
I've always wanted to create a spectrometer that is so small it can fit into one's pocket and just barely larger than a cuvette itself. Working with bulky commercial spectrometers in labs, I was wondering about applications of such a small spectrometer. That's when I discovered the perfect combination – the M5StickC microcontroller and the AS7341 spectral sensor. My goal was simple: create an ultra-compact spectrometer that anyone could use.
While commercial spectrometers offer high precision, they're often expensive, bulky, and require a computer connection. I wanted something different – a standalone device that could fit in your pocket, complete with its own display and interface, without requiring external equipment such as connection to a mobile app or a computer. The kind of tool that could democratize spectroscopy for educators, students, and citizen scientists.
The AS7341 sensor is crucial for this project:
The M5StickC is the perfect platform for this project because it packs incredible functionality into a tiny package:
main.py
for automatic execution on startup The Pocket Spectrometer has numerous practical applications:
The code is written in MicroPython for simplicity and accessibility, making it easy to modify for various applications. Most of the AI tools nowadays are good with python code, so would be handy to have the code in micropython.
https://github.com/scientistnobee/Pocket-Spectrometer
combines m5stickc and a AS7341 (https://www.dfrobot.com/product-2132.html) light sensor to deliver a pocket spectroscope
to support the project will need these things: