TF Luna: "Time Of Flight" Distance Measuring Arduino Sensor with I2C
HTML-код
- Опубликовано: 5 окт 2024
- TF Luna: "Time Of Flight" Distance Measuring Arduino Sensor with I2C
This is my 3rd try at gettting one of these laser distance sensors to work with Arduino. Ive tried the TL53LOX and they clain to be 5V tolerant but are not. So Iwas excited to find the TF LUNA from Maker Focus.
In this video, I'll show you how to connect it to and Arduino Nano via I2c.
ORIGINAL ARDUINO PARKING ASSISTANT VIDEO: • Arduino Parking Assistant
*************************************************************************
Please help support this channel at NO COST TO YOU. If you shop on *Amazon, please use this link: amzn.to/3706t6c *
*I will get a small commission and it costs you nothing. *
*************************************************************************
HEY YOU ABOUT TO POST SOMETHING STUPID:
Yes, I know my hands are large/fat. It's because of a heart condition I suffer from called Congestive Heart Failure. Here's a link to some information about CHF: cle.clinic/2Td...
One of the symptoms is that it causes fluid retention, mostly in the hands, feet/ankles, and face..
-------------------------------------------------------------------------------------------------------------------
Support learnelectronics:
Amazon Store:
If you are shopping for electronic components, test gear or consumables please consider visiting my Amazon shop @ amazon.com/shop/learnelectronics
Patreon:
Please check out www.patreon.com/learnelectronics and pledge a dollar if you can. It will go a long way to keeping the channel alive. It costs a bit of money to buy all the items and produce these videos. Your help is appreciated.
Paypal:
Or....if you'd like to send a one-time donation you can use this link: paypal.me/learnelectronics
---------------------------------------------------------------------------------------------------------------------
Gear I use:
Multimeter: OWON B33+ amzn.to/3UkTJOo
Oscilloscope: KIPRIM DS1202 amzn.to/3gfJGMN
Signal generator: Junctek JDS8080 shorturl.at/ehTZ1
Component Tester: T7 Multifunction amzn.to/3AYY03v
Soldering Station: Sealody ???????
Paul, sorry to hear about your problems with pwcway. Everyone is feeling the squeeze and it hurts.
Sorry about the falling out with PCBWay, wishing the best. Take care man.
It will be interesting to see the parking sensor working. Let Blake backup the car. 😎
Multiplexing output means it can be used for two purposes. On/off mode means IO mode which outputs 0V/3.3V or 3.3V/0V when the distance is less than set threshold distance or greater than threshold respectively. The second mode is IIC mode, that by utilizing the signal on this pin you can judge if the sensor is ready to read the distance packet from the sensor.
The parking sensor sounds interesting.
Hopefully your next sponsor will be a better fit, and come through for you properly.
--------------
Multiplexing output... why wouldn't they just call it "enable"? That way they can use the space to explain to anyone who's new to the I2C protocol that every one of these devices is manufactured to have the same exact I2C address, and they were smart enough to make them so you can easily use more than one in a project.
You can tell it took me too long to learn how I2C works.
Pin 6 use is for on/off mode. Description is in the TF Luna product manual:
6.7 On/off Mode
On/off mode is designed from those users who only need to detect the existence of an object. TF Luna can start this mode using “Enable/disable on off mode ID_ON_OFF_MODE=0x3B” and then shows result through pin 6. Figure 6 below shows how the mode works when a high level is set to represent an object is detected........
That's very sad to hear. Fingers crossed you can find other sponsors to replace them who'll be more reliable.
Hey Paul, sorry to hear about your dealings with PCB Way. Hope you get the sponsorship issues sorted out. This sounds like a cool sensor, curious, can you see if it will work detecting water level (e.g. like looking inside sump pump pit). Cheers and have a nice weekend!
It works by shining a laser off of an object and timing the return. I think it would work looking down, when the water level raises it will return a smaller number. The output is expressed in cm.
@@learnelectronics right, that's what i'm curious about, if it will work with water level
If it still doesn't work properly for whatever reason, maybe just add a pvc pipe and a target that floats.
I've worked a lot on those ST Time of flight sensors. They are supposed to be run at 2.8v but will run ok at 3.3 which I've always run them at. Wonder if the ones you have are fake or faulty ? Also before you try it for a parking sensor try it in sunlight first, the ST parts are next to useless in sunlight.
It will be in my garage, so no sunlight.
PAUL, make a theory lesson about I2C and why did they make I2C protocol for what reasons to make that protocol
It'd be worth contrasting it with SPI in that case.
@@talideon yes i agree, what reasons to make an SPI protocol.
Cool sensor. Shame that PCB Way is pissing you about.
Total agree
The other thing about pcbway is it’s kid of expensive compared to others
Sorry about the clash with PCBWay. I need to start tinkering with Arduino.
I wanted to learn about electronics a long time ago. I picked up small bits and pieces but it wasn't until I bought an Arduino starter kit that I really started learning. Now I'm building circuits that I'd never even have dreamt of before. Go for it.
@@tonysansom I found my elegoo super starter kit in my electronics stockpile. This weekend, I am going to see what it can do.
Maybe reach out to JLCPCB. I have all my boards made there and they are also top quality. They may not have some of the options that PCBWay has, but for most ordinary purposes they make a nice board. They are also less expensive than PCBWay. Shipping costs are steep if you want the boards relatively quickly but that's pretty much the same for all of them. 5 boards for $2 (100mm square max for that price) and $20 for fast shipping.
Not paying someone you've contracted to promote your services is really self-defeating.
china contract no go brrrr