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/04 23:20] – [I2C Cable Test Tool] 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 39: | Line 39: | ||
| ===== How it works ===== | ===== 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. | ||
testing_i2c_wiring.1554434454.txt.gz · Last modified: 2019/04/04 23:20 by tell
