My goal is to build a DIY servo controller with  and a DC motor

My goal is to build a DIY servo controller with #BeagleBoneBlack and a DC motor with integrated quadrature encoder. The TI eQEP hardware peripheral integrated into the BeagleBone processor can accurately decode quadrature encoded pulses. I am using the Linux kernel driver from @Nathaniel_Lewis :

I also used this post from BeagleBoard mailing list:
https://groups.google.com/forum/#!msg/beagleboard/0ewLcdUtA_E/sVEoDGkL9FcJ

And this device tree config for eQEP2:
https://17376924468624948387.googlegroups.com/attach/57f40b690c2851b1/LoadeQEP.txt?part=0.1&view=1&vt=ANaJVrGPwHIS2WLiOv6ixKKbzR46eHqySZLgFoyqQ_d_WnwWpd6WHjAYJi1DUftPPemLjzWziNVQ5BXCSQEDe6COpc_1ZPRU5ZAgS0AyU5ycCZ0_vLyWF3g

My changes are in my own repo:

GitHub Gists with notes for this video:

Wondering what the kernel module does? Here is the code extracted from Nathaniel’s kernel patch:

Photos: https://plus.google.com/photos/117542001281850354871/albums/6028753166053143281?banner=pwa
BeagleBone: Using TI eQEP to read quadrature encoder in DC motor - YouTube