Speed Controller
Speed Controller
Click images to expand
To control the speed of the train, we need to read the voltage on potentiometers. The amount of voltage read will directly equate to how fast the train will go.
Basic Instructions:
Hardware:
ADS1115 A2D [click here]
TXS0108e [click here]
Review the datasheets:
ADS1115 data sheet [click here]
TXS0108e datasheet [click here]
Schematic: [click here]
Software: [click here]
Note that in the example programs, there is a "knob test" program that is very handy and will easily test if the knobs are working or not, but it does not affect the OE pin on the TXS0108e, so you'll need to set it manually before running the test program.