... | @@ -4,6 +4,21 @@ This page contains information on how to use I2C sensors on a Raspberry Pi using |
... | @@ -4,6 +4,21 @@ This page contains information on how to use I2C sensors on a Raspberry Pi using |
|
|
|
|
|
We have been using the Raspberry Pi platform for I2C sensors since they are low-cost and the software/hardware is mature. We use Raspberry Pi 4B 4GB models to have ethernet networking and enough memory to comfortably run Nix. The system also runs fine with 1 GB of memory, but we recommend to have at least 4GB of memory. We run the official 64-bit Ubuntu images for Raspberry Pi.
|
|
We have been using the Raspberry Pi platform for I2C sensors since they are low-cost and the software/hardware is mature. We use Raspberry Pi 4B 4GB models to have ethernet networking and enough memory to comfortably run Nix. The system also runs fine with 1 GB of memory, but we recommend to have at least 4GB of memory. We run the official 64-bit Ubuntu images for Raspberry Pi.
|
|
|
|
|
|
|
|
### SD cards
|
|
|
|
|
|
|
|
We have good experience with Samsung (EVO, EVO plus, and PRO series) and Sandisk (extreme series) SD cards.
|
|
|
|
Recent data has also shown that cards with an A1 rating are recommended for best performance. **A2 cards are not recommended at this moment**.
|
|
|
|
- https://docs.armbian.com/User-Guide_Getting-Started/#how-to-prepare-a-sd-card
|
|
|
|
- https://forum.armbian.com/topic/954-sd-card-performance/page/3/#comment-49811
|
|
|
|
|
|
|
|
### Peripherals
|
|
|
|
|
|
|
|
Other peripherals we have good experience with:
|
|
|
|
- [Aluminum Heatsink Case for Raspberry Pi 4](https://www.sparkfun.com/products/15773)
|
|
|
|
- [PoE+ HAT](https://www.raspberrypi.com/products/poe-plus-hat/)
|
|
|
|
- [2x20 socket riser](https://www.adafruit.com/product/4079)
|
|
|
|
- [Qwiic HAT](https://www.sparkfun.com/products/14459)
|
|
|
|
|
|
### I2C bus
|
|
### I2C bus
|
|
|
|
|
|
By default, there is one I2C bus available (`/dev/i2c-1`) which has pull-up electronics build in (see for example [this pinout](https://pinout.xyz/pinout/i2c#)). Various 3.3v, 5v, and ground pins are available for usage. To use the I2C bus, install `i2c-tools` (`sudo apt install i2c-tools`). After the installation, the current user must be added to the `i2c` group to access to the I2C devices (`/dev/i2c*`). The program `i2cdetect` can be used to detect I2C buses and connected devices.
|
|
By default, there is one I2C bus available (`/dev/i2c-1`) which has pull-up electronics build in (see for example [this pinout](https://pinout.xyz/pinout/i2c#)). Various 3.3v, 5v, and ground pins are available for usage. To use the I2C bus, install `i2c-tools` (`sudo apt install i2c-tools`). After the installation, the current user must be added to the `i2c` group to access to the I2C devices (`/dev/i2c*`). The program `i2cdetect` can be used to detect I2C buses and connected devices.
|
... | | ... | |