This repository has been archived by the owner on Sep 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
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.
Copyright (C) 2015 -2019, Alan Yorinks, All rights reserved.
- Home
- Before You Install s2aio
- Installing s2aio
- Starting s2aio
- s2aio Programming Blocks
- Examples