Це відео не доступне.
Перепрошуємо.
How to Make an Ultrasonic Nervous Robot - The Learning Circuit
Вставка
- Опубліковано 17 сер 2024
- In this episode of the Learning Circuit Karen creates another robot! This robot has three ultrasonic distance sensors in its mouth, two micro:bits that make up eyes, and an Arduino as its brain. The sensors detect when something steps in front of the robot, and as the object moves left and right, the eyes of the robot will follow it. Not only can the robot detect when an object is in range, it can detect when that object gets too close and it will look down at the object to follow it moving. Check out the video to see Karen break down the code and show how she built the robot : bit.ly/3pppO8o
Video Sections -
0:00 // Video Start
0:30 // Project Overview
1:11 // Code Overview
5:17 // Wiring Diagram
8:03 // Feature Demo
8:34 // Conclusion
Karen here! If you want to play with the Arduino code, you can find it over on the element14 community - bit.ly/3pppO8o. If you post new code there, I can try it on my robot and if it works, I can post video updates. So check it out! Be sure to tag me, @MakerKaren.
Hey Ms. Karen, great video! I'm new to this channel, and your heaven sent! I'm trying to construct a motion censored Hawk deterrent, possibly a makeshift American Bald-Eagle that shrieks upon motion with flapping wings, a moving head and glowing red eyes. I'm a disabled Veteran and my PTSD therapy is raising and breeding Show/Game Chickens with my son who is also disabled, and we lose quite few Show birds (biddies and stags) to hawks and other predators, but I'm also a student at Robeson Community College's Industrial Construction Systems Technology program, with a Graduation project to complete, and I've been following you, and I enjoy your tutorials extremely so. I tend to watch you as if I have another class on my schedule, and I hate to miss an episode.
I see Karen and I click the like button but only because UA-cam doesn't provide a love button.
D'awwwww
Hi Karen,
First thing - cool idea... when you said you decided to make a robot, the box-mounted face didn't occur to me. I just assumed the "standard" obstacle avoiding robot running around on the floor, like everybody else seems to do.
And as for it being "skittish"?
Well I haven't really looked at, never mind analyzed, the Arduino code, but I think your issues might be related to tying the three sensors' TRIGGER pins together. When you send the trigger, all three sensors will emit a pulse of ultrasound, so the sensor you're reading could be detecting echoes from any one of them. I presume they react to the first pulse they receive, so that would likely be the pulse from whichever emitter is closest to the target. In other words, when the target is to the right, the sensor on the left would read a (false, incorrect) distance from the emitter on the right - to the target - and then to the sensor on the left. And similarly for every sensor. Only when the target is right in front of a sensor would it be likely to detect it's own echo first.
I haven't done the math, but I suppose it's possible that it might even detect the original *emitted* pulse from another sensor, if it takes more than 10 microseconds for the sound to travel the distance between them. (Oh heck - lets do it... Google says the speed of sound is about 343 meters per second - which is 0.000343 meters per microsecond = 0.343 mm per microsecond. So in 10 microseconds, the sound wave is able to travel 3.43mm. Yep, plenty of time for all three sensors to go into "listen" mode before any sound from another sensor reaches it).
I'm not saying this IS the problem, but it seems to me to be a complication that needs to be looked at. So, since there are still plenty of pins available on the Arduino, I can't help but think that three separate triggers would've made more sense.
That's exactly what I was about to tell her, cause I had the same issues when I was trying to build a robot mower. I amounted the sensors all in front of the robot, now what happened is if the robot encountered a wall for example, the pings bounce all at ounce or coming from one surface at ounce , then my robot gets confused about what to do now. I tought that my conditions was wrong, but when I think about it like the robot, it was obvious. Next thing I mounted R sensor on the R side, L on L side of the robot, it was better. I was just trying to read a bigger surface to not miss by too much the obstacles. It didn't work well😂 that what you call interference in ultrasonic sensors. I'm going to try this code for my new project. Thanks Karen for your work, please make a video about neural network using ultrasonic sensors. Full code would be appreciated.
Awesome. I would like to see a 1-2 hour long video or video series walking us through a project like this from start to finish.
Definitely the coolest Karen in UA-cam!
Thanks, Karen! Neat project!
Heya, I couldn't find the link to the code, but based on how the ultrasonic sensors were wired, I believe you are getting output from one sensor that is coming into the input of another. If you fire them off sequentially instead it might work better. Maybe make sure to leave a slight delay too, microcontrollers are FAST and you might have to account for the time it takes a sound pulse to bounce back! Crazy huh!
Thanks for the feedback! You can find the downloadable link to the code here. - bit.ly/3pppO8o
It's in a zip file at the bottom of the page through that link.
Nice robot & her professor.
Many thanks
Happy New Robot
plz.......can u be kind to explain us about p chanle mosfets little bit more with curent flow animations....im biginer to this felld. sory about my english. i hope you understand wt i ask
Awwww, it turned out so cute!!! I love that he's skiddish! Hahahahah
part 2 update please
Hi Karen
Robots are great.
wow im litrally the first comment. this never happens
I dislike anything to do with dumb deno