Arduino Example Ultrasonic Range - Zeijlon Systems
Maybe your like
This example demonstrates how to use the Azande Library together with a Ultrasonic Range Detector.
The Ultrasonic Range DetectorThe following Feature Types are used:
- Command Bool Feature: With the cmdSetUnit the user can select unit cm/mm to use.
- Event Int32 Feature: The events eventDistanceCm and eventDistanceMm present the measured distance.
- Command Int32 Feature: With the commands cmdSetAlarmCm and cmdSetAlarmMm the user can set limit for alarm.
- Event Bool Feature: The event eventAlarm is sent every time a new measurement is done. True when distance <= limit.
Ultrasonic Range Detector | Arduino Board | |
Pin | Pin | Type |
Vcc | 5V | Supply |
Trig | Digital Pin 4 | Output |
Echo | Digital Pin 2 | Input |
Gnd | GND | Supply |
3.3V Supplied Arduino
If you use an Arduino with Vcc = 3.3V, the input ca not exceed 3.3V.
A simple solution is to use a Voltage Divider.
Downloads
The example is included in the Arduino Library.
Click here to access download of the Arduino Library
Tag » Arduino Vcc Library
-
Vcc - Arduino Reference
-
Yveaux/Arduino_Vcc: Arduino Library To Read VCC Supply ... - GitHub
-
Arduino_Vcc/Vcc.h At Master - GitHub
-
Vcc - Arduino Library List
-
New Library To Read Arduino VCC Supply Level Without Resistors For ...
-
Tag: Vcc Library - Arduino Craft Corner
-
Arduino Vcc - Open Source Agenda
-
Arduino - The Spark - Guides At University Of North Texas
-
[PDF] Chapter 3 Ratio Proportion Percent Vcc Library | Mass.Gov Blog
-
Arduino With BH1750 Ambient Light Sensor - Random Nerd Tutorials
-
Electronics Design - Aybak AL-daamsa
-
Reference — ESP8266 Arduino Core 2.4.0 Documentation
-
Arduino Library For The Pololu QTR Reflectance Sensors
-
JQ6500 MP3 Player Arduino Library: Main Page