Closed arongoldberg closed 2 years ago
We will use this part in I2C mode, which it comes in by default. Its default address is 0b0111101 or 0x3d, but this can be changed to 0b0111100 or 0x3c by setting the A0 pin low. To connect the part, we will follow these instructions. We can connect Vin to 3-5V power line; it should be the same voltage that the microcontroller logic level is based on. Connect GND to GND, Data to the SDA pin on the Pi, and Clk to the SCL pin on the Pi. Here is an example:
If it's wired correctly and powers up, a small green LED on the backside will light up, like so:
Also, we can run i2cdetect -y 1
and see if the address comes up, like so:
When we see those two indicators, it shows that our part is at least not DOA.