2025-05-18 15:08:57 +02:00
|
|
|
# Controller
|
|
|
|
## links
|
|
|
|
* https://www.kernel.org/doc/Documentation/i2c/dev-interface
|
2025-05-18 21:05:44 +02:00
|
|
|
* https://forum.arduino.cc/t/solved-cannot-get-correct-i2c-data-from-atmega8-into-raspberry-pi/1368337
|
2025-05-18 15:08:57 +02:00
|
|
|
|
|
|
|
## PINs
|
|
|
|
* interal = physical = usage
|
|
|
|
* 5 = 29 = reset peripheral devices
|
2025-05-18 21:05:44 +02:00
|
|
|
* 0 = 10 = I2C SDA
|
|
|
|
* 1 = 9 = I2C SCL
|
|
|
|
|
|
|
|
## I2C
|
|
|
|
* somehow the buildin I2C does not work anymore (maybe already damaged?)
|
|
|
|
* add additional bus by using GPIOs:
|
|
|
|
```
|
|
|
|
$ fgrep i2c /boot/firmware/config.txt
|
|
|
|
dtparam=i2c_arm=on
|
|
|
|
dtoverlay=i2c-gpio,bus=7,i2c_gpio_sda=10,i2c_gpio_scl=9
|
|
|
|
```
|
2025-05-18 15:08:57 +02:00
|
|
|
|
|
|
|
## commands
|
|
|
|
* reset peripheral devices: `gpioset gpiochip0 5=0`
|