Sale!

TOF10120 Distance Sensor 5-180CM

Original price was: 18,84 €.Current price is: 13,65 €. Excluding VAT

TOF10120 Distance Sensor 5-180CM

Available on back-order

Domande su questo prodotto? Scrivi a Lana su WhatsApp

Category:

🎬 The product on video

Description

What it is

The TOF10120 is a Time-of-Flight (ToF) distance sensor that allows measuring distances in the range of 5 to 180 cm. This sensor is ideal for robotics, home automation, and security systems applications.

Features

  • Measurement range: 5-180 cm
  • Compatible with Arduino and other microcontrollers

What it is for

The TOF10120 can be used to create home alarm systems, robotics, environmental interaction systems, and automation applications. It is particularly suitable for projects requiring accurate distance measurements in a home or industrial environment.

Tutorial: How to use TOF10120 Sensor

The TOF10120 sensor is ideal for measuring distances from 5 to 180 cm. This component is particularly useful for robotics, security systems, and environmental interaction applications.

What you need

  • Arduino Uno
  • USB cable
  • Breadboard
  • Soldering connections
  • 5V Power Supply

Steps

  1. Connect the sensor to the breadboard.
  2. Connect the VCC and GND pins to the 5V and GND of the Arduino.
  3. Connect the SCK pin to pin 3 of the Arduino.
  4. Connect the SDI pin to pin 2 of the Arduino.
  5. Download and install the I2Cdevlib library.
  6. Include the I2Cdevlib library in the code.
  7. Write the code to read the distance.
  8. Display the data on the serial monitor of the Arduino IDE.

Example code

include <Wire.h>
#include <I2Cdev.h>
#include <I2Cdev_i2c.h>

#define TOF10120_ADDRESS 0x0C

void setup() {
  Serial.begin(9600);
  Wire.begin();
}

void loop() {
  int distance = readDistance();
  Serial.print("Distanza: ");
  Serial.println(distance);
  delay(1000);
}

int readDistance() {
  // Implementazione della lettura della distanza dal sensore
  // Verifica sul datasheet
}

Mini project

Create a home security system that sends a message when a presence is detected within 50 cm.

Common mistakes

  • Connect the sensor with reversed polarity.
  • Install the library incorrectly.
  • Ignore the I2C bus configuration.
  • Do not verify the minimum and maximum distance of the sensor.

Recommended accessories

  • Arduino Uno
  • Breadboard
  • USB cable
  • 5V power supply

Frequently asked questions

What is the minimum detection distance?
The minimum distance is 5 cm, check the datasheet for additional details.

How can I optimize distance reading?
Use a moving average filter to improve measurement accuracy.

Reviews

There are no reviews yet.

Be the first to review “TOF10120 Distance Sensor 5-180CM”

Your email address will not be published. Required fields are marked *