Это видео недоступно.
Сожалеем об этом.
LEGO 51515 Distance Sensor - Everything You Must Know
HTML-код
- Опубликовано: 17 авг 2024
- LEGO 51515 has a newly-redesigned distance sensor, A.K.A ultrasonic sensor; the LEGO MINDSRORMS 51515 tool for measuring distance and detecting obstacles. Ultrasonic sensors are commonly used by an FLL robot or a WRO robot to locate the robot on the competition field. The ultrasonic sensor has been redesigned for the LEGO 51515.
I use the terms distance sensor and ultrasonic sensor interchangeably. That's because the LEGO MINDSTORMS 51515 Robot Inventor distance sensor is indeed an ultrasonic sensor. It measures distance by emitting pulses of inaudible ultrasonic sound.
The distance sensor that comes with LEGO 1515 is shared with the distance sensor from the LEGO Spike Prime platform.
Today's LEGO MINDSTORMS 51515 programming tutorial teaches you everything you need to know to master the new LEGO 51515 distance sensor. I conceptually explain how an ultrasonic sensor works, demonstrate the operating modes, explain the best practices for using an ultrasonic sensor, and walk you through programming three examples of using the LEGO 51515 distance sensor in the context of a program: events, conditionals, and numerical sensor values.
🔴 Watch my LEGO MINDSTORMS 51515 Review: • LEGO MINDSTORMS 51515 ...
🤖 See all of my LEGO 51515 Tutorials here: • LEGO 51515 Tutorials -...
CONTENTS
0:00 - Introduction
0:35 - How an Ultrasonic Sensor Works
1:51 - Exploring Port View
3:19 - Best Practices
3:51 - Code Ex. 1: Events
5:33 - Code Ex. 2: Conditionals
7:42 - Code Ex. 3: Using Numerical Sensor Values
📕 Check out my book, “Building Smart LEGO MINDSTORMS EV3 Robots,” available on Amazon: amzn.to/2MyGVCl
🔴 Subscribe to Builderdude35: www.youtube.co...
🕸 My Website: builderdude35.com/
📷 Follow me on Instagram: / builderdude35
🦸♂️ My supporters on Patreon contribute additional funding that allow me to build up and improve this channel and to make more videos. If you would like to help, you can support me here: / builderdude35
🎵 Thank you to my friend OTT for producing the beats and music used in this video. You can check him out on Instagram here: / onetaketom
📽 Thank you to my friend Preston Nichols for designing Builderdude35's intro animation and logo!
#builderdude35 #lego51515 #legomindstorms51515
How do you plan to use the LEGO 51515 distance sensor? Let me know here!
I'm trying to make robot that rotates, and when he detects the ball - move to it, but sensor doesn't detect the ball if ball is farther that ~45cm =(
Is this always was a problem? Or only SP, RI5 sensors have that issue?
@@RomanRichter420 The Distance sensor is going to have a hard time seeing an object like a ball. Because it is round, a lot of the sound pulses will reflect off of the ball in the wrong direction. The Distance sensor is best used with flat surfaces.
@@Builderdude35 I'm trying to do something like NXT TriBot, but yeah, you were right, sensor have hard time with ball =(
Hi Builderdude35,
I've one question about force sensor.
In Spike app we have blocks for force sensor but these blocks for force sensor are lost in Mindstorm Inventor app.
So do you think it's possible to use force sensor in Inventor .
I didn't find anythink about this on internet, so if it's possible did you plann to make a video tutorial about this ?
Thnaks
@@cuda7189 I thought about it and originally I had it in my plan. The force sensor should, in theory, work just fine with LEGO 51515, but as you noted, there is no programming support for it in the MINDSTORMS app. Until that happens, I am afraid I cannot make a tutorial on it.
Thanks so much for this VERY Clear demonstration!
I personally never use events in the scratch code. I find the "if" or "wait until" blocks more universal so I just use those
That's a good practice, because it is more along the lines of how most other programming languages work.
Hey man can you tell me if this idea is good? I’m going to get this to make a Halloween animatronic so when someone is close to it it will spin its head also do you have to buy the motor or use the technic motor
Your videos are so well produced! :) I'm wondering if a Lego Sumo bot could successfully use the newly-designed Lego Distance Sensor/Ultrasonic Sensor to "home" in on an opponent's Sumo bot. If you noted that the Distance Sensor is only good at detecting PERPENDICULAR ultrasound reflections, if the Sumo bot is spinning around to locate the opponent, could it work? Lego Sumo bots sometimes use Dual-Range infrared sensors (like the Mindsensors "Dual Range, Triple Zone Infrared Obstacle Detector for SPIKE Prime"), but it is "not Lego" and costs a lot....
Thank you for noticing the improvement in production quality! I've been putting in some more time to make sure video quality is up to a higher standard now, and I am glad it is paying off!
As for Sumo bots, I believe I used the EV3 infrared sensor back in the day, and got better results using IR than ultrasonic-based sensors. I can't remember exactly why. You can certainly make an ultrasonic sensor work if your robot sweeps around slower and the opponent robot has wide, flat sides.
Thanks man!. I'll play around with this this weekend
Excited to see what you make! Let me know!
@@Builderdude35 I made Blast's light change colour based on distance. Green then yellow then red. I wrote it in both scratch and python. I am going to add a reaction from the robot to. Apparently the distance sensor can be opened up and 3rd party sensors added through a breakout board with 8 pins!
@@75STARFISH Yes, there is a breakout port in the Distance sensor, which only I learned this week as well! I hope to have a few words on it soon
@@75STARFISH Nice job on the light color change program too btw! Keep up the great work!
My ultrasound sensor doesn't work. It'll detect a define object like a wall, but only while the sensor is stationary. It also has trouble a less define object like a hand. Anyone know why this is?
Inquisitive!
Cultivating the intellect!
Could you build your dinosaur robot better with robot inventor?
Nice! I love watching your videos
Very glad to hear that! I love making these videos for you all!
For my own research and curiosity: what do you like the most about watching my videos?
@@Builderdude35 I like how you have a split-screen of you talking to the BIG display of the robot programs. You mix some humor into what would normally be "dry" topics. The pacing is just right too. :)
@dluders thanks for sharing! I am happy to hear the extra humor and attention to detail is paying off!
what's the different between motors block and movement block?
I really like the set, I used to have an NXT and the cables always were problematic for me.
Things I would improve about it could be that it used USB C instead of micro, longer cables (this could be actually improved by lego if they make extensions) and the color led in the light sensor, it looked cool sometimes.
Also how can I get a bulk of technic pieces? Are there good sets just to buy for this?
For buying pieces in bulk: LEGO Education makes parts add-on packs of 30-ish brocks that you can buy on their website. Other than that, buying a LEGO set to uses as a "donor set" and using its bricks is the way a lot of people do that.
Im looking to get into lego robotics for cheap, i mean dirt cheap. Is nxt still an option to code with at all. I was looking at those just to run a few large mototrs off of. If so, would I use the Lego Mindstorms Home application to do so
Not sure whether LEGO still allows you to download NXT software, but you can probably find the CD with the software for sale somewhere. I can't guarantee it will be cheap though -- probably just the opposite, considering the NXT is not produced anymore.
@@Builderdude35 So if I bought the brick and motors then I couldn’t use them!
@@alextrujillo7849 Quite possibly. I recommend doing some research to see if you can get the LEGO NXT software. Which reminds me, you actually can program the NXT using the EV3 programming, which is still available. Check out this video for more info: ruclips.net/video/ybv98CALAt4/видео.html
your videos are great
How can the Remote blocks for Sony Playstation 4 Controller be added to a project? Tricky has it, for example.
I will cover that in a future tutorial, coming soon. Stay tuned!
@@Builderdude35 Great. I got it working. Seems the system requires a conduit such as an iPhone to make it work. Pairing both, the the Mindstorm app allow switching from the iPhone to the PS4.
@@bobcubsfan that's exactly correct, you need to connect both the robot and controller to your smart device (phone, tablet) to use as an intermediate. Have fun with it!
hey @Builderdude35 is there any way to make a robot that turns on the lights from the distance sensor when the lights from a room turn off?
I found the precision of the sensor is very poor when in Streaming mode and I expected that because it executes the loop at a lower speed. But I didn't find it acceptable even in Download mode.
I found the same thing, and if you see my demonstration example at the end of the video (where I assign motor speed to the distance measurement) you can see velocity changes are very sloppy and not smooth at all.
any tips for how to account for this in the code @@Builderdude35 ?
Does this sensor work with the Powered Up app and 88012 Technic hubs?
I was wondering it the sensor could be used to do something while using the Playstation 4 remote to control a build. So I built a little car and had the right joy stick start and stop a motor. But I inserted some blocks that had the sensor test to see if it was closer than 8 cm, and if so, stop the drive motor. Guess what? It worked!
That's super cool! Thanks for sharing your project with us!
@@Builderdude35 Thanks. Added the light sensor to detect if the car was "going off a cliff" like the edge of a table. That worked too.
@@bobcubsfan that sounds like a pretty sweet project! Congrats!
@@Builderdude35 I am wondering about coding a subroutine. For example, I put together a block that makes the car go backwards when the PS4 joystick is in the down position. What if when the light sensor stops the car I want to use the same code to have it back up? The section My Blocks might be the key, but I don't see a way to do it.
I figured it out how to make reusable blocks
I like it!
Glad to hear! Thanks!
But i actually hear it when i put it to my ear
Nice video First also
second! and thanks!
This kit is really amazing, sorry ev3 fans but I am enjoying this much more.
I am glad to hear! What do you like better so far?
@@Builderdude35 First of all it is neat that it comes with a battery. It would be better if the port was Type-C but still. It boots up so fast. I boot it up, test my creation, shut it down and improve the creation. That preserves the battery life for me. This whole kit and the software is like a QOL update. The ease of use is amazing, it is like plug and play, straightforward. Apart from not supporting daisy chaining and not being backwards compatible I had no problems with the set.
@@korisilivri You pretty much summarized my thoughts exactly! I hope you continue enjoying 51515!
@@Builderdude35 thank you I hope that you continue to enjoy your set as well 👍
@@korisilivri Much appreciated! I have a few exciting projects in mind, so stay tuned!
please do a python tutorial
can I communicate with a dolphin with this thing?
Perhaps... maybe this is a topic for a future tutorial? ;)
Always first!
@@larrytong3498 what does first even mean? you lose some. you win some.
@@asharfarooq6334 what he said^
🤯
I think Ashar is right here
Don't count Ashar out just yet, he's got some valid points too