Skip to content
Gert Sanders edited this page Apr 8, 2018 · 1 revision

Welcome to the 8-SR-HC04-I2C-SLAVE wiki!

This repository is to document the various versions of the board made to read out the 8 SR-HC04's (sonar range sensors).

Credits: This work is based on the following: The initial idea is by Andrew Kramer (http://andrewjkramer.net/attiny-sonar-controller/), who used an ATTiny84 to control 8 sonar range sensors. The code is based on the core provided by Spence Konde (a complete core for most ATTinies), load it into your Arduino IDE from this URL: http://drazzy.com/package_drazzy.com_index.json You can find more information at this GIT: https://github.com/SpenceKonde/ATTinyCore The code also uses the NewPing library by Tim Eckel: https://bitbucket.org/teckel12/arduino-new-ping/wiki/Home

Starting points: I decided to use the ATTiny841 because it was incompatible with the ATTiny84, has a hardware I2C slave circuit, and a Timer2. So there was no need to hack libraries like Andres Kramer needed to do. For my small robots, 8 sonar range sensors is fine to start with. This is part of a learning proces. It was clear that proximity sensors by themselves are insufficient to move through the house with bumping into this (especially chairs). Playing around with a Zumo robot (the new version) thought me that. So adding sonar seemed to make sense. As I read about the subject, it became clear that a single, or even three sensors with now be sufficient. But before starting on a project with 24 sensors, I wanted to begin with 8.

This repository contains the boards, designed in Eagle (by CADSoft, the free version). Boards were manufactured at OSHPark, and are shared there: https://oshpark.com/shared_projects/OCg8YC7X

The BRD and SCH files are available here.

Clone this wiki locally