Skip to content

Commit

Permalink
Update hardware-interfaces.md
Browse files Browse the repository at this point in the history
  • Loading branch information
fjp committed Dec 8, 2019
1 parent a9eb888 commit 5dfd6dc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/hardware-interfaces.md
@@ -1,6 +1,7 @@
## GPIO

The ultrasonic ranger uses just a single GPIO pin for communicating its measured distances.
Therefore we can use one of the GPIO pins such as [physical pin 11](https://pinout.xyz/pinout/pin11_gpio17).



Expand All @@ -11,6 +12,16 @@ Therefore we need to setup the I2C ports on the Raspberry Pi 4 B first.

To do so, we will use the tool `i2cdetect` which requires that we install a tool on Ubuntu called `i2c-tools`:

```bash
$ i2cdetect

Command 'i2cdetect' not found, but can be installed with:

sudo apt install i2c-tools

$ sudo apt install i2c-tools
```

<pre><font color="#8AE234"><b>fjp@ubuntu</b></font>:<font color="#729FCF"><b>~/git/2wd-robot</b></font>$ i2cdetect

Command &apos;i2cdetect&apos; not found, but can be installed with:
Expand Down

0 comments on commit 5dfd6dc

Please sign in to comment.