Hacker Newsnew | past | comments | ask | show | jobs | submit | ashafq's commentslogin

https://shafq.at

I write about signal processing.


I’m building SPARK (Signal Processing Algorithms, Routines, and Kernels), an open-source library of modular, efficient DSP components for low-power embedded audio systems.

The goal is to make it straightforward to design and deploy small, composable audio graphs that fit on MCUs and similar hardware. The project is in its infancy, so there’s plenty of room for experimentation and contributions.

https://github.com/Colahall/SPARK


Nice! Unrelated to the other open-source SPARK for designing and deploying small, composable data processing graphs with a Python API, I guess?

Are you thinking about supporting deployment on FPGAs like the iCE40 line?


Currently FPGAs are out of scope. But, would love to implement that use case as well in future.


I've been clumsily exploring the space of what kind of DSP you can do without multipliers, because (in hardware) multiplication is one or two orders of magnitude more expensive than addition; see https://nbviewer.org/url/canonical.org/~kragen/sw/dev3/spars... for one example.


This is a fascinating space where logarithmic numbers can offer a lot of value with fewer bits.


Can they?


Thank you! I will add them later on. You can access the schematic and PCBs here:

GitHub: https://github.com/Colahall/tiny85fancontrol/tree/main/schem... Codeberg: https://codeberg.org/Colahall/tiny85fancontrol/src/branch/ma...


I did try the internal temperature sensor, but it didn't measure the ambient temperature. I have read that if you set the ATtiny85 to sleep mode for some time, it will converge to ambient temperature, but it would take too long to validate, and I didn't want to go down another rabbit hole.

USB Bootloader is interesting, but I already had a few ISP loaders. You can make an ISP loader with Arduino as well. [1]

[1] https://docs.arduino.cc/built-in-examples/arduino-isp/Arduin...


> I did try the internal temperature sensor, but it didn't measure the ambient temperature. I have read that if you set the ATtiny85 to sleep mode for some time, it will converge to ambient temperature, but it would take too long to validate, and I didn't want to go down another rabbit hole.

It's kind of better than ambient, it would reach the temperature of the GPU if thermally coupled. The sleep-mode thing would just be a case of lots of micro sleeps to discount the temperature of the chip, could have even under-clocked too.

> USB Bootloader is interesting, but I already had a few ISP loaders. You can make an ISP loader with Arduino as well.

The benefit of USB is being able to get debug data from the fan controller as it runs, and be able to re-flash it whilst in the PC by attached to an internal USB bus.

This way you could also log out what the GPU reports, vs what you measure, vs what the ATtiny85 measures.


This project is great! I have used this API for a personal WiFi enabled dashboard on an ESP32.


It’s not a startup. It’s a studio. A workshop. A chain of curiosity. We build slowly, deliberately, until it’s awesome. No pitches. No pivots. Just noise…


I love it! I used to be a huge fan of Rockbox.


If you've ever wrestled with fixed-point math, scaling, and rounding, this blog post is for you!

I go deeper into binary arithmetic, division tricks, rounding, and what it really takes to build fixed-point systems that actually works.

As always, I appreciate all of your feedbacks and corrections.


I have also documented how to vectorize IIR filters (EQ) in this article as well https://shafq.at/vectorizing-iir-filters.html


IRC #c on libera.chat


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: