TOF10120 Laser Range Sensor with Arduino to Measure Distance + Oled Display. laser for measurements
Вставка
- Опубліковано 23 сер 2024
- PCBWay Yearly-end Promotion with the Biggest Sale Coming In December: www.pcbway.com/
Download Circuit diagram, Programming, and Libraries:
www.electronic...
Subscribe to my New UA-cam Channel, if you want to watch my videos in Hindi/Urdu
/ @letsgetstartedd
Support me on Patreon and get access to hundreds of projects:
/ electroniclinic
sign up for a free account and download hardware designing and programming books:
amzn.to/2WeBCw1
***********
free Amazon Business Account:
amzn.to/2MiPiBT
************
Project Description:
********************
In today’s episode, we will use the ToF10120 Laser Range Sensor module for measuring the distance.
As usual, before I am going to use this sensor in some intermediate and advanced level projects, first I will cover the extreme basics to help you get started with this small tiny beautiful piece of hardware. I performed a series of experiments and displayed the values on the serial monitor and once satisfied, I further modified the code and displayed the measured distance in millimeters and Inches on the Oled Display module. Unlike the Ultrasonic Sensor, this Laser Sensor Module can also be used for monitoring the water level, it can be used in security systems, obstacle avoidance robots, and so on. Anyhow, I continued with the experiments, modified the code one more time, and this time I was able to control a 110/220Vac light Bulb, Make sure you wear protective gloves as 220Vac can be really dangerous. You can replace this bulb with a water pump, or any other electrical device that you want to control. The Bulb is turned ON when the distance is less than 5 inches and remains ON until the distance is greater than 10 inches. While performing the experiments, when the Laser Sensor was facing the camera, I could see this light coming out of the sensor which you can’t see with naked eyes, if you have this sensor go ahead and check.
In this tutorial, we will cover,
1. ToF10120 Laser Range Sensor Module Pinout and technical specifications.
2. Complete circuit diagram explanation.
3. Arduino Programming, and finally
4. Testing
********************
Amazon Purchase links:
*****************
Arduino Nano USB-C Type ( recommended):
amzn.to/4ahGLdk
ESP32 WiFi + Bluetooth Module for iOT Projects (recommended), more IO pins, improved speed, and supports a Lipo Battery:
amzn.to/3v40DkE
TOF10120 Laser Range Sensor:
amzn.to/2Kloy7o
LM7805 Voltage Regulator:
amzn.to/39V2vx3
DC Female Power Jack:
amzn.to/2Pnoljp
128x64 Oled Display Module SSD1306:
amzn.to/3h1COwT
Other Must-Have Tools and Components:
Top Arduino Sensors:
amzn.to/3vZbnfM
Super Starter kit for Beginners
amzn.to/3cq56C5
Top Oscilloscopes
amzn.to/3ctF3d8
Variable Supply:
amzn.to/2PEAqE7
Digital Multimeter:
amzn.to/2QGRPg1
Top Soldering iron kits: "best"
amzn.to/39nqDtb
Top Portable drill machines:
amzn.to/3suQMh7
Jumper Wires:
amzn.to/2NYPEDA
3D printers:
amzn.to/3ruG1dt
CNC Machines:
amzn.to/3cuZWVv
Electronics Accessories:
amzn.to/3sueV7z
Hardware Tools:
amzn.to/3m9UhaN
DISCLAIMER: This video and description contain affiliate links, which means that if you click on one of the product links, I will receive a small commission. This helps support the channel and allows me to continue to make videos like this. Thank you for your support!
****************
Follow me on Facebook:
/ electronic-clinic-7697...
Email: stu_engineering@yahoo.com
About the Electronic Clinic:
Electronic Clinic is the only channel on UA-cam that covers all the engineering fields. Electronic Clinic helps the students and other professionals to learn electronics designing and programming. Electronic Clinic has tutorials on
Arduino
Raspberry PI
image processing
gsm based projects
Bluetooth based projects
esp8266 projects
Nodemcu projects
robotics
desktop application designing and programming
Project Related Tags:
Every amature on UA-cam like you is designing pcbs unnecessarily just to shout out to their sponsors! 😂
using optic rules its possible to calculate far distant distances too by checking movement of lasers dot on screen, but that partially depends on focus of used camera and used lasers degree of direction. anyway still try and learn technique probably will work. ;p
Helal olsum dayım, ingilizce çeviri değilse harikasın
Thank you for the effort in making this video, sir. Great project sir!
Question: How fast can the sensor update reading? Also will a nano be able to read tof at around 60hz per second and log data for 10hrs?
can you please exlplain what is the IC1 thinkie you always have in the left of your boards, right below the voltage jack ? And if you have the exact model /purchage link it whould be extra helpfull . Thank you immersely for all these amazing videos !!!
How fast it this sensor read distances?
Great video, only thing I would say is there is not enough clearance on that relay board for high voltage shown.
i have a complete video on relays and how to make relay drivers.
Very good
Can I use to make safe distance project
Did you use ultrasonic sensor in crack measuring?
Hi nice video
What is the field of view for this sensor?
Hello, I need help. I wanna try create this project. And now I have problem with code for Arduino IDE. Exactly problem with "SimpleTimer" library. Code doesn't work(
Thank you
Is it possible to get the Two PCBs that you designed for the TF10120 laser sensor project? Thanks .
Hi, I should measure the height of water in a well that is 50 meters deep. Could you kindly point me to a laser or ultrasonic sensor capable of such a measurement? Thank you.
hi, i have same problem with you. now, i want to use LiDAR sensor. how about you ? have you solve your problem ?
hi, unfortunately not yet
Good explanation
Great video, do you know the laser safety class of the module? Thanks!
Very nice work!
Thanks a lot!
hi i got problem on timer.setInterval(500L, display_measurement); in the coding. can you explain it thanks
What are the main objects used in this model?
How much maximum distance it can detect?
How to find water depth using this sensor?
Cost of total project
how accurate can this measure? i need microns
Hello sir ..can we use it for measurement of spring mass deflection when mass is added to spring
You definitely cannot
Can i replace oled & need a graph in pc
can the sensor go in the water? I mean is this waterproof ?
on backside components are exposed.
Great ♥
what is the operating range in (centimeters or metres)? My use case is to measure the water level in the well. The water level in the well is at the distance of 100 metres from the ground level. is it possible to measure the water level?
100 meters it's too much. What you can do is install this sensor near the water surface and then from there you can transmit data via rf modules like LoRa.
@@ElectroniClinic And how much this laser module costs
@@roopesh668 2 or 3 dollars. It's a low cost sensor.
soooooo goooooooddddddddddddddddddddd!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! great great
thank you sooooooooooooooooo much Sir.
Hi good sir, can you please tell me the Angle Coverage of a TOF10120?
video request. can you join a tof to a 433mhz transmitter/ reciever. so i have a lazer trip wire allarm for a door or gatè way... if distance decreeses. transmit signal to reciever that makes a noise.
yes i can.
how about using it with lora?
@@ElectroniClinic how about using an existing wireless doorbell and make something to join the toff to the doorbell push button
@@ElectroniClinic keeping it as small as possible.
to the doorbell switch, sounds great. you are trying to make contactless doorbell?
Does it work in front of sunlight?
works outdoors, but i didnt check this directly under sunlight or directly facing the sun.
Can I use it for angle measures like ultrasonic
you can use it for the distance measurement and for the angle measurement you can use a compass.
Can I use Arduino Nano with TOF10120 sensor?
yes
your website not available now
now online. sorry we had some issues. website is online now
if i want bulb ON only if object gets near at 2 inches to that sensor. can i change distance through code??
yes, you can.
Thanks for replying. I will check availability of above material because I’m not sure either these things are available in Pakistan or not :/
Can I get water level with this sensor ?
yes
Officially I think it's not compatible with water, but I tried and it works fairly well. Of course only if the water is quiet, it won't work if the water moves around as water behaves like a mirror and a distorted mirror doesn't reflect properly
8:50 every single one of those solder points seems cold to me
Distance range?
1800mm
@@ElectroniClinic thank you❤
I want such product which can attached to mobiles
Can it measure up to 0.01mm precision?
I have the same thing, and no, the noise of each measurement is ~3-4mm. You can improve that by taking the average of many measurements, but in my experience with 150 measurements you get ~0.5mm, and that only every 5 seconds, as the sensor can give you a maximum of 30 measurements per seconds
@@m.sierra5258
Thanks for providing accurate statistics
Unfortunately that's not enough
I was looking for a laser detector with 0.01mm precision
But I am not searching now anymore
Because i lost the job offer