Tag «programming»

Arduino power strip: Finishing touches, problems, and future improvements

Today we’re going to finish the Arduino Power Strip – or at least bring it to a state where it’s usable for now and can be controlled using Home Assistant. There is also an issue we need to address.  Read more

Temperature-dependent fan control using Arduino

I’m building a box to dampen the noise of the projector I bought (more on that in a later post) and to keep it cool I added two fans, one sucking cold air in and one pushing warm air out. To reduce the noise as much as possible I wanted to run the fans as slow as possible, but of course they should still run fast enough to properly cool the projector. So I built a little fan controller with an Arduino that uses temperature to determine the fan speed.  Read more

Python: Converting decimals to imperial fractions

For my blog (the one that you’re currently reading) I wanted to implement an automatic conversion from metric to imperial for all measurements that I mention in my posts. This would help readers from the US to understand them more easily and (probably the more relevant reason) be a nice programming task for me. While I plan to publish the full implementation and write a post about it, this post focuses on a small part of the task: converting decimal values into nice fractions with a denominator that is a power of two.  Read more