testing_i2c_wiring
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| testing_i2c_wiring [2019/04/03 19:31] – [Grab the multimeter] tell | testing_i2c_wiring [2022/02/03 09:08] (current) – tell | ||
|---|---|---|---|
| Line 15: | Line 15: | ||
| To see if the i2c port is alive, and getting properly conveyed to the other end of a cable, one can grab a multimeter. | To see if the i2c port is alive, and getting properly conveyed to the other end of a cable, one can grab a multimeter. | ||
| - | or " | + | or " |
| We can also test the far end of i2c cable, to see if we can " | We can also test the far end of i2c cable, to see if we can " | ||
| - | * Set the digital multimeter to read DC voltage or " | + | |
| - | * connect the black (negative) meter lead to the ground pin of the i2c cable | + | * connect the black (negative) meter lead to the ground pin of the i2c cable |
| - | * Touch the red (positive) meter lead to the " | + | * Touch the red (positive) meter lead to the " |
| - | * Then, touch the red lead to SCL. Expect to read about 3.3v here also. | + | * Then, touch the red lead to SCL. Expect to read about 3.3v here also. |
| - | * Repeat for SDA. We also expect to read 3.3v here. | + | * Repeat for SDA. We also expect to read 3.3v here. |
| Why 3.3v on the SCL and SDA data pins? The RoboRIO has a [[pullup resistor]] on each of those pins which weakly connect them to the 3.3v supply when they are not otherwise pulled low. If we can see that voltage, the wire is likely connected. | Why 3.3v on the SCL and SDA data pins? The RoboRIO has a [[pullup resistor]] on each of those pins which weakly connect them to the 3.3v supply when they are not otherwise pulled low. If we can see that voltage, the wire is likely connected. | ||
| Line 30: | Line 30: | ||
| Can we do somthing better/ | Can we do somthing better/ | ||
| + | |||
| ====== I2C Cable Test Tool ====== | ====== I2C Cable Test Tool ====== | ||
| - | Here's an idea for a simple wiring test tool that will show if somthing like the correct voltages are present on the I2C pins. | + | Here's an idea for a simple wiring test tool that will show if somthing like the correct voltages are present on the I2C pins. |
| + | |||
| + | {{ : | ||
| + | |||
| + | ===== How it works ===== | ||
| + | |||
| + | First, there' | ||
| + | |||
| + | On each of SCL and SDA signals, a 2n7000 MOSFET transistor detects if the voltage on the wire is pulled high (to near 3 or 5 volts) by a pull-up resistor. | ||
| + | First prototype: | ||
| + | {{ : | ||
testing_i2c_wiring.1554334304.txt.gz · Last modified: 2019/04/03 19:31 by tell
