DATV Repeater i2c Interface

From BATC Wiki
Revision as of 11:55, 18 February 2022 by G8GKQ (talk | contribs) (Created page with "The i2c interface for the repeater controller is configured to use GPIO pin 8 for sda and GPIO pin 10 for scl. Note that these are not the default Raspberry Pi i2c pins (norm...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The i2c interface for the repeater controller is configured to use GPIO pin 8 for sda and GPIO pin 10 for scl. Note that these are not the default Raspberry Pi i2c pins (normally pins 3 and 5 which are reserved for the clock module) and must be addressed using the interface /dev/i2c-22). The configtxt file is modified to activate these pins for 100 kHz i2c with the lines

dtparam=i2c_arm=on
dtoverlay=i2c-gpio,i2c_gpio_sda=14,i2c_gpio_scl=15

The i2c interface on the Raspberry Pi uses 3.3v and requires 1.8k resistors to the 3.3v supply (GPIO pin 1) on both the sda and scl lines.

The audio switch board i2c interface should ideally be drivenm with 5v i2c, but does work with 3.3v i2c with reduced noise immunity. The noise immunity can be improved by using an i2c level shifter