Software Hacks Unlock Cheap Spectrometer
Hacking a Budget-Friendly Spectrometer for Open Source Science

Spectrometers, powerful tools for analyzing light and materials, are often prohibitively expensive. DIY options exist, but they often lack the ease of use and features of commercial models. Chris from Zoid Technology discovered a portable spectrometer on AliExpress for just $150, complete with an Android app. Initially, this seemed like an incredible deal.
Unlocking the Spectrometer's Full Potential
The catch? The manufacturer, Torch Bearer, intentionally limits the functionality of the cheaper model to encourage purchases of their more expensive versions. Features like data export were locked within the software. Chris's first attempt to bypass these limitations involved reverse-engineering the serial data transmitted by the device. The spectrometer came with a USB-to-serial adapter, simplifying this process. However, the data itself was obfuscated, making it unusable.

Undeterred, Chris decompiled the Android application and modified the code to remove the model number checks. This unlocked the previously disabled features. Interestingly, some features genuinely required hardware capabilities absent in the cheaper model, confirming that not all limitations were artificial. Chris also fixed other software bugs and released a patch for others to enhance their own software: Torch-Bearer-Tools.
Deciphering the Data Obfuscation
The breakthrough came while analyzing the Android app's source code. Chris discovered the key to understanding the data obfuscation applied to the serial output. This led to the development of a Python library that allows direct data retrieval from the spectrometer, bypassing the manufacturer's software entirely. This open-source tool, licensed under GPLv3, promises to empower users and foster community development around the affordable spectrometer.
DIY Spectrometer Resources
For those inclined to build their own spectrometers, there are excellent resources available online. Check out some inspiring DIY spectrometer projects for guidance and inspiration: Pi-Based Spectrometer.
Video Demonstration
from Hackaday
-via DynaSage

Post a Comment