Figure 3—A few years back, I wrote an application and hacked some hardware to do what this little IC does.