Description
What it is
The US-015 module is an ultrasonic sensor designed for distance measurement. It allows the detection of obstacles or objects at various distances, providing a numerical value that can be used to control the behavior of a system.
Features
- Measurement precision: 0.3 cm
- SKU: ARD0010985
- Price: 2.94 €
What it is for
The US-015 module is ideal for projects that require precise distance measurement, such as:
- Obstacle avoidance systems for robots
- Home automation
- Measurement of small spaces
- Arduino Uno or compatible
- 5V power supply cable
- 10kΩ resistor
- Breadboard and 0.1″ pins
- 1. Connect the module to the breadboard.
- 2. Connect the VCC pin to the 5V of Arduino.
- 3. Connect the GND pin to the GND of Arduino.
- 4. Connect the TRIG pin to a digital pin (e.g., D10).
- 5. Connect the ECHO pin to a digital pin (e.g., D11).
- 6. Connect the 10kΩ resistor between VCC and GND.
- 7. Upload the code to Arduino.
- 8. Test the module with Arduino IDE.
The module is compatible with platforms such as Arduino and ESP.
Tutorial: How to use US-015 Ultrasonic Sensor Module
The US-015 sensor measures distances with precision and is suitable for projects that require detailed distance measurement, such as home automation or obstacle avoidance systems.
What you need
Steps
Example code
```
void setup() {
pinMode(10, OUTPUT);
pinMode(11, INPUT);
}
void loop() {
digitalWrite(10, LOW);
delayMicroseconds(10);
digitalWrite(10, HIGH);
delayMicroseconds(10);
digitalWrite(10, LOW);
long duration = pulseIn(11, HIGH);
int distance = duration * 0.034 / 2;
Serial.print("Distanza: ");
Serial.println(distance);
}
```
Mini project
Create an obstacle avoidance system for a mobility robot.
Common mistakes
- Connect ECHO to an analog pin.
- Omit the 10kΩ resistor.
- Power the module with a different power supply than 5V.
- Use a digital pin for TRIG and ECHO without distinguishing between the two.
Recommended accessories
- Arduino Uno
- Breadboard
- 0.1″ pins
- 10kΩ resistor
Frequently asked questions
How can I verify the accuracy of the sensor?
Measure the distance of objects of different sizes and compare the results.
Does the sensor work well in all environmental conditions?
The sensor performs best in well-lit conditions without electrical interference.
Can I use the sensor with an Arduino Mega?
Yes, the sensor is compatible with any Arduino with at least 2 digital pins.
Can the sensor work with a power supply different from 5V?
Check the datasheet for the maximum and minimum power supply.







Reviews
There are no reviews yet.