copy link
Str1ker / Encoders working copy link
years ago
by Valeriy Novytskyy at ^H Hackerspace/ 1 min to read
Got chained ADS1115 encoders reading analog signals
I finally got chained ADS1115 encoders working to read arm bone positions. It was really confusing because the manual lists configuration setting bit offsets in low-endian, but the chip then accepts the resulting bytes in high-endian (two’s complement encoded) order: https://github.com/01binary/drummingrobot/blob/master/src/code/ads1115.cpp
Everything I had to go through is documented in Absolute Encoder Review including stand-alone source code that can be pasted into your project.