Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

Using a Sonar Device

Alan Yorinks edited this page Nov 17, 2015 · 3 revisions

The diagram above shows how to wire an HC-SR04 Ultrasonic Ranging Sensor device for use with s2aio.

The trigger and echo pins are wired together and a single wire is connected to an Arduino digital input. The diagram above uses pin 12.

The pin is enabled using the Digital Pin Configuration block, selecting Sonar mode. Sonar data is monitored using using a Read Digital block.

FirmataPlus must be uploaded to the Arduino, for this feature to work.