Close

Archived V1 instructions

A project log for HC-SR04 I2C Octopus "octosonar"

Connect up to 16 ultrasonic range sensors to an Arduino with I2C bus and one pin

alastair-youngAlastair Young 09/16/2018 at 21:550 Comments

Archiving the original V1 board and no-board prototype instructions here.

THIS IS NOT CURRENT

Hardware

The minimum setup to use this usefully requires

basic breadboard testSoftware

If you are using version 1.6.2 or later of the Arduino software (IDE), you can use the Library Manager to install this library:

  1. In the Arduino IDE, open the "Sketch" menu, select "Include Library", then "Manage Libraries...".
  2. Search for "SonarI2C".
  3. Click the SonarI2C entry in the list.
  4. Click "Install".

If this does not work, you can manually install the library:

  1. Download the latest release archive from GitHub and decompress it.
  2. Rename the folder "SonarI2C-master" to "SonarI2C".
  3. Move the "SonarI2C" folder into the "libraries" directory inside your Arduino sketchbook directory. You can view your sketchbook location by opening the "File" menu and selecting "Preferences" in the Arduino IDE. If there is not already a "libraries" folder in that location, you should make the folder yourself.
  4. After installing the library, restart the Arduino IDE.

(note - the above instructions adapted from a Pololu readme)

HC-SR04 I2C Octopus "octosonar"

There was enough interest in these that I made up a small batch to sell on Tindie.

To test these without the headers attached, I made up a test-bed on an Arduino proto-shield. This tests all the power pins (the green LEDs), checks the outputs from the PCF8574A and feeds signals into the CD4078 and verifies the output.

There is a minor error on these boards in that the silkscreen "Name" layers are missing so it does not show what port is which. Refer to the image below.

IMPORTANT: There are no pull-down resistors on the Echo inputs. Jumper any unused ports from E to G or you will get very erratic results.

The 8 Port Prototype

octalsonarshield_schem
octalsonarshield_bb
20160424_153047
20160424_153028

Download the current SonarI2C library code on GitHub

HC-SR04 I2C Octopus "octosonar"

There was enough interest in these that I made up a small batch to sell on Tindie.

To test these without the headers attached, I made up a test-bed on an Arduino proto-shield. This tests all the power pins (the green LEDs), checks the outputs from the PCF8574A and feeds signals into the CD4078 and verifies the output.

There is a minor error on these boards in that the silkscreen "Name" layers are missing so it does not show what port is which. Refer to the image below.

IMPORTANT: There are no pull-down resistors on the Echo inputs. Jumper any unused ports from E to G or you will get very erratic results.


Discussions