Rotation-matrix To rotate a pixel around an axis, we need to do some sinus and co-sinus calculation to it because, in short, rotation follows a circular path. The good part is that…
Month: November 2022
How to scale any voltage into the analogRead range of your microcontroller
You want to measure a voltage? But it’s outside the range of your microcontroller’s 0 to 3.3v or 5v? We can achieve this with resistors.
How to drive a relay from a digital pin, two solutions
The first is by using an NPN-transistor, and the second a N-channel-MOSFET. Both circuits are pretty much the same otherwise.
How to create a power limiter to get zero-on-the-meter to save taxes
If you are one of the many people exporting electricity to the grid, chances are you are familiar with the following… When you export electricity you also get to pay energy taxes…