Elegoo Smart Robot Car Part 3 - Collision Avoidance & Line Following

แชร์
ฝัง

ความคิดเห็น • 76

  • @PhG1961
    @PhG1961 5 ปีที่แล้ว +6

    Excellent work. Very well presented in a relaxing way, with detailed information. That's how we like it !

  • @robertbess5601
    @robertbess5601 4 ปีที่แล้ว +6

    Bill, you are amazing and awesome. Watched several of your videos and am truly impressed with your ability to present. But, I cannot even begin to imagine the time you spend on preparing these videos.The amount of time you spend on graphics, written materials and sketches is truly remarkable. Keep up the outstanding work, it has to be rewarding considering all the accolades you receive. Justly deserved. Thank you-your have a devoted follower. Bob

    • @Happymz
      @Happymz 4 ปีที่แล้ว

      Robert Bess yess

  • @guywhoknows
    @guywhoknows 3 ปีที่แล้ว +1

    I thought you were going to fix the bad coding settings on avoidance.
    The stop and run after time is way way to high.
    This is why it crashes after stoping and turning.
    The servo turn, being 90 o and motor turn is not the same, it's about 45 o.
    If the case is,. Then a additional scan is required at 22 o
    As the scan time is set in 20ns, why there is a 1s wait I don't know,the most would. Be double the regent.
    Also we should ping and turn code. And I believe there is a mapping sketch?
    Hopefully so it learns the area.. it only needs to plot.

  • @robertarmstrong3478
    @robertarmstrong3478 5 ปีที่แล้ว +3

    Good videos; bought the car. Made some code mods;
    The pivot turn used needs a higher speed to work on carpet. Lots of friction, initially just stalled out trying to turn, so added two different motor speed, one for moving forward and back and one for turns.
    Didn't like the pivot turn for remote control, so added a radius turn. Both sides motors run forward, outer faster than inner. Differential controls the radius. Swap motor speeds for left turn or right.
    Also found that initial collision avoidance distance was too short, adjusted out. Also different speed settings for forward/back and turns.
    Future mods;
    Collision avoidance, raise speed if long clear distance, reduce as shortens to stop.
    The ultrasound does not seem to get a correct distance from an angled surface. It seems to run into any wall that is at 45 degrees (about) to the direction of travel. Need a strategy to solve this problem (if possible). Possibly a 'stalled' detection.
    Want to incorporate both the radius turn and the pivot into the IR or bluetooth functions.
    Want to add a compass sensor and 'turn to north/south/east/west' options. Have a '3 axis magnetometer' on breadboard functioning to give a heading reading.

  • @davidcourtney1398
    @davidcourtney1398 5 ปีที่แล้ว +2

    While line following, if you put a box on the line, will it avoid it? It seems like it's doing collision avoidance OR line following, but not both. Or am I mistaken?

  • @hogfanboy9443
    @hogfanboy9443 5 ปีที่แล้ว +2

    Thanks for the videos. When you show the code for the line following section, I'm a little confused when the pinmode is defined for the sensors. It seems like you are using the !digital read for the value of the pin in the pinmode command. or did I just miss something. Thanks again for the videos.

  • @USMCRet1993
    @USMCRet1993 5 ปีที่แล้ว +2

    hi Bill. How in the world did you manage the ultra small screws and nuts in mounting the ultrasonic sensor???? I've been trying for days...... and can't get it put together.

    • @brickyrobot8932
      @brickyrobot8932 5 ปีที่แล้ว

      I used the ultra small screwdrivers that came with the robot. It was pretty tough even with those though.

    • @toddboni9313
      @toddboni9313 4 ปีที่แล้ว

      I used a small piece of tape on the nut and tweezers to start the screw

  • @duARTstudioChannel
    @duARTstudioChannel 3 ปีที่แล้ว +1

    Thank you very much to share this precious information! Keep going with this great working, thank you again.

  • @Osmanity
    @Osmanity 5 ปีที่แล้ว +3

    You are awesome as always and thank for sharing really useful knowledge!:))

  • @vjoh1014
    @vjoh1014 ปีที่แล้ว

    Greetings, i enjoy your videos, I have question. I recently purchased smart car 4.I cant get this thing moving. Im having a problem with the pins going to the driver motor .Its the drv 8835 i tried 567 and 8 to no avail. I atually tried pn 3 and it work but unprdictable. If you could stir me in the right direction Thanks keep up the goood work

  • @Новости-з3й
    @Новости-з3й 3 ปีที่แล้ว

    Setup code is wrong : pinMode(LT_X,INPUT) only set pin 0 or 1 as input... useless !
    The code works because by default all pins are inputs !

  • @opalprestonshirley1700
    @opalprestonshirley1700 4 ปีที่แล้ว +1

    This has been a great project. A great job. My only problem is the Micro Servo 99 is I can't get a 180 degrees arc my best has been 15 -> 165 . When my kit comes in hopefully the servo will work better than the ones I've purchased. Thanks for a great presentation.

    • @Новости-з3й
      @Новости-з3й 3 ปีที่แล้ว

      Some servos (most of the cheap servos...) turn only ~160°, not 180° !
      That's the reason why in the example they used 20 to 180°

  • @tinkmarshino
    @tinkmarshino 5 ปีที่แล้ว +1

    Bill, I followed all three of you robot videos and have decided that this is the project that my grandson and I will do when he comes for a visit this summer.. Your videos are concise, clear and will be easy for him to follow I think it will be a big hit for him and maybe point him in the direction of electronics and/or programming.. thanks you.

  • @davidguiu5072
    @davidguiu5072 5 ปีที่แล้ว +1

    Hi Bill,
    I am working on a project and I was wondering if you could help me.
    I got this Elegoo Smart Robot Car and a Pixy2. My goal, is to make the robot track objects and lines just like Pixy2 does , the problem is, that I don't know how to make Pixy2 interact with the DC motors.
    So if you have any clue, on how to work this out please let me know, thanks.

    • @Marva123
      @Marva123 5 ปีที่แล้ว +1

      Pixy2 has a tracked chassis from a company called Pololu if you buy the tank-chassis assembled all you have to do is mount the pixy2 camera and you can follow lines and objects like the Elegoo car. I have built both projects and they both work great at this task.

  • @santhoshkannan9844
    @santhoshkannan9844 5 ปีที่แล้ว +2

    Did u ever integrate all 5 tutorial into a single program and made it work?

    • @JabezVidz
      @JabezVidz 4 ปีที่แล้ว

      I plan to do this very thing

  • @MatiasPoisson
    @MatiasPoisson 5 ปีที่แล้ว +1

    Great set of videos!
    I purchased this kit for my son, we built it together but we were unable to make collision avoidance work as expected. I'm having the same problem described in comments. Apparently the ultrasonic works fine with flat surfaces, but not so much with irregular ones. While I debug the code with serial console the sketch works fine, but once in the floor the car doesn't seem to follow the right pattern.
    I noticed also that the following portion of code is "almost" never executed. It only works when right and left distances are equals and less than 20cm.
    else if((rightDistance

    • @kanhaiyaupreti6702
      @kanhaiyaupreti6702 5 ปีที่แล้ว +1

      Use && as both needs to be true in order for the robot to turn back.

  • @iankesbey1487
    @iankesbey1487 5 ปีที่แล้ว +1

    great series of videos...purchased this Smart Robot...assembled and running in just a couple of hours....thx for the instructions

  • @streetvendour1287
    @streetvendour1287 ปีที่แล้ว

    Sorry but can anyone can tell me if i want to use ir control mode at the same time with line tracker mode without using mobile app to switch between the two modes

  • @renevandorp
    @renevandorp 5 ปีที่แล้ว +1

    I like youre video's, you put a lot of work in it. Thanks from The Netherlands.

  • @rdoetjes
    @rdoetjes 4 ปีที่แล้ว

    That code Elgoo provided is terrible! All does 500ms and 1s waits block processing.
    You should avoid blocking. And it’s simple just read time and see if 500ms has passed since your last measure meant. If not don’t execute, if it has execute.
    I see too much of this badly written code in arduino world. I don’t know where it comes from.

  • @manuelddiaz
    @manuelddiaz 2 ปีที่แล้ว

    I install the program "Obstacle_Avoidance_Car" in the car, but the wheels on the right side don't move, only the wheels on the left side move, and both the distance meter and the servo work fine. After testing for several days trying to identify the cause, I found that if I delete the instruction "myservo.attach(3);" in the program, all the wheels and the distance meter work fine, but logically the servo is disconnected.
    Could anyone help me. I would like to know why this happens with that instruction? I want the program to work completely.
    I couldn't.

  • @chandrashekara5564
    @chandrashekara5564 3 ปีที่แล้ว

    sir ,Iwant to use line following robot using Arduino. In my company to carry 30 kg of weight . which driver and which DC motor you suggest. kindly help me.

  • @baxter6504
    @baxter6504 2 ปีที่แล้ว

    Hi, Bill;
    Does the robot car work better with PVC tape (which ships with the car) or with vinyl tape? Which would you recommend?
    Great explanation of the Smart Robot. Keep up the good work!

  • @SidneyMcCauley-i2u
    @SidneyMcCauley-i2u 9 หลายเดือนก่อน

    What Servo library should i download?

  • @JabezVidz
    @JabezVidz 4 ปีที่แล้ว +1

    Fantastic in-depth series. Great job all around! Really appreciate the detail of instruction.

  • @capistor1
    @capistor1 4 ปีที่แล้ว

    im not sure if anybody spotted this before but you said "if right distance AND left distance are less than zero then it will go back" but in reality that was a logical OR sign and not an AND...

  • @johnmarshall2660
    @johnmarshall2660 2 ปีที่แล้ว

    Hi Bill, great video and I know its a few years old but, I got a Robot car about 4 years ago and never finished it, after watching your video it gave me the Opportunity to finish but the Motor driver and Uno shield are different but no problem got a similar motor driver board on ebay and the Uno shield I designed the shield and will get made at JLCPCB, so something to do later in year ...John

  • @liszcgsedt
    @liszcgsedt 3 ปีที่แล้ว

    Nice tut ... but are you powering the servo from Arduiono? I assume it is a matter of currect pull, but I consider it somewhat risky - in some cases it has worked for me, but I have also burned a nano in this way (well, with two servos, no load, just random movements, but anyway)...

  • @malinmalindic8582
    @malinmalindic8582 4 ปีที่แล้ว

    What is rightDistance is equal leftDistance?
    So, in my opinion, after checking which distance is greater (or less) we should simple add else (which means they are equal) and in that block add commands back and delay, and checking if they are less or equal 20 should be separated if condition, but that only my opinion.
    Great video, thanks a lot.

  • @ayyubshaffy3612
    @ayyubshaffy3612 4 ปีที่แล้ว

    nice video .... :)
    please can you make a video on controlling a robot arm like this one: SainSmart 6-Axis Desktop Robotic Arm & Grippers, Assembled for Arduino UNO MEGA2560
    as a begginer i really enjoy watching your videos!!

  • @TheFleetz
    @TheFleetz 5 ปีที่แล้ว +1

    Brilliant, very informative and helpful! 👍👍👍

  • @shelbytrudeau3730
    @shelbytrudeau3730 2 ปีที่แล้ว

    why is mine not driving but lighting up when i try and move

  • @IngenieriaConfeccion
    @IngenieriaConfeccion 3 ปีที่แล้ว

    Hello, thank you for your great video. May I ask something. I want to use this car for a contest. The track has a lot 90 degrees turns, but the car doesn't turns enought and go out of the track. The code doesn't have a program when the car goes out of the track. Do you know how to improve the car for 90 degrees turns?

  • @alexbulavin543
    @alexbulavin543 2 ปีที่แล้ว

    🔥👍👍👍

  • @tu2gs
    @tu2gs ปีที่แล้ว

    What is the program name

  • @georgeak4454
    @georgeak4454 2 ปีที่แล้ว

    very cool. Can you do maze solver with this car??

  • @thelastlannister9312
    @thelastlannister9312 3 ปีที่แล้ว

    No sir. I thank you for this wonderfull video

  • @viopklji100
    @viopklji100 4 ปีที่แล้ว

    hi do u have any video similar to this but instead of line following, using wheel encoder to reach from point A to B. or other method as long it does the work.

  • @nicholasyeetusanddeletus9398
    @nicholasyeetusanddeletus9398 3 ปีที่แล้ว

    For some reason mine doesn't have that blue thing at 23:21

  • @vincentsamuel2779
    @vincentsamuel2779 ปีที่แล้ว

    Great review

  • @nikhilkatakwar7852
    @nikhilkatakwar7852 ปีที่แล้ว

    Price of one

  • @benl686
    @benl686 4 ปีที่แล้ว

    uhhhh i may have made a mistake im the 666th liker

  • @charlesarnold4963
    @charlesarnold4963 5 ปีที่แล้ว

    I really like your presentation and especially this series on the Elegoo car. The line following experiment was extremely interesting as well as being highly educational. Have you done any experiments on wire following, where the wire is excited by a sin wave signal and the car follows it? This would be useful in an environment where the ground is likely to become dirty and the black line is impractical.

  • @Jos69119
    @Jos69119 5 ปีที่แล้ว

    Hi, did anyone know how to set a car to follow a blue line??

  • @tristanrichardson9349
    @tristanrichardson9349 3 ปีที่แล้ว

    thanks very helpful

  • @electronic7979
    @electronic7979 5 ปีที่แล้ว

    Good project

  • @nixo0077
    @nixo0077 3 ปีที่แล้ว

    Perfect work,

  • @CrispierTerror
    @CrispierTerror 5 ปีที่แล้ว

    Could you make a change in the speed of the car when approaching an object?

    • @jimstand
      @jimstand 4 ปีที่แล้ว

      Sure you can, as the distance gets closer, pass a smaller value to the forward() function to reduce the speed.

  • @cathyc8989
    @cathyc8989 4 ปีที่แล้ว

    Love your videos

  • @lithiumwarhead
    @lithiumwarhead 4 ปีที่แล้ว

    You have a cool show.

  • @DanMcAfee
    @DanMcAfee 5 ปีที่แล้ว

    Great series!
    And it was a laugh to see you having fun with it and joking.
    Thanks

  • @sumedhburbure4173
    @sumedhburbure4173 5 ปีที่แล้ว

    Great video

  • @linus561
    @linus561 5 ปีที่แล้ว

    Thanks

  • @mkk5414
    @mkk5414 5 ปีที่แล้ว

    Nice video

  • @number9103
    @number9103 5 ปีที่แล้ว +1

    Nice,but please, smile and be Happy more!!!

  • @andykauffman7466
    @andykauffman7466 5 ปีที่แล้ว

    Another great video, thanks!
    During the collision-avoidance clip, the robot drove directly into a wall at one point. I have the same thing happen with a car I built using the same ultrasonic sensor. The sensor is seeing distances outside the stopping distance, so the car thinks it can go forward. This is probably due to the angle between the wall and the receiving part of the sensor.
    My question though, is how to avoid this? I can increase the distance to stop, but too far and the robot will stay in the center of a room. Do we just need to expect some collisions? Thanks!

    • @andykauffman7466
      @andykauffman7466 5 ปีที่แล้ว

      @chris0tube Possibly, but wouldn't the car be hitting stuff all the time, then?

    • @andykauffman7466
      @andykauffman7466 5 ปีที่แล้ว

      @chris0tube That sounds like a great idea. I'm working on other things with my car, but will circle back.

    • @andykauffman7466
      @andykauffman7466 5 ปีที่แล้ว

      @chris0tube Thanks, Happy New Year!

    • @keithschaub8570
      @keithschaub8570 5 ปีที่แล้ว +1

      u-sensor works really well with flat surfaces, but not so well with corners. You can also get negative distances as well as 2000+ distances..so you need to add more logic to deal with the variations and extremes you can get. Few things you can do: 1. only do something if the value is > 10 2. If the value is > 80, then set it to 80..basically u r telling the sensor to ignore anything far away...lastly...average several readings together after u do steps 1 and 2.
      facebook.com/keith.schaub.5/videos/10216652344993348/?l=9174098805765710842
      facebook.com/keith.schaub.5/videos/10216597922712825/?l=1995439918924746601

    • @keithschaub8570
      @keithschaub8570 5 ปีที่แล้ว +1

      in a nutshell, keep the USB connected and print out all the values in serial monitor while you manually move the car around - pay close attention to the values and think why might you be getting strange values and how to deal with them.

  • @fidgetspinner1403
    @fidgetspinner1403 5 ปีที่แล้ว +1

    Yet another great vid. Keep up the great work . I would love to see you build one using a lidar.