Arduino Smart Robot Car from Banggood: PART2 Electronic Connections

Sdílet
Vložit
  • čas přidán 12. 09. 2024

Komentáře • 76

  • @meande-man5351
    @meande-man5351 Před 6 lety +1

    Thanks for the videos. I searched for days on the net and contacted the seller for instructions on how to get this car going, but your videos were the only thing that actually helped to get the car fully functioning.

  • @sierki
    @sierki Před 6 lety +1

    thx a lot for another great video! looking forward for a next part ...

  • @javieralbertosaldarriagaca1514

    great video thanks for the help!!!regards from colombia

  • @mtzmechengr5781
    @mtzmechengr5781 Před 2 lety

    Nice! Do you have a soldering kit that you recommend?

  • @artyemsie
    @artyemsie Před 4 lety +1

    Thank you for this, really helped me!
    I would like to use a power bank instead of those batteries by attaching it to the USB port of the arduino. How would I need to wire the arduino to the shield for power?

    • @ChenTheDesignMaker
      @ChenTheDesignMaker  Před 4 lety

      The shield should be powered by the USB as well. Give it a try. Let me know if it doesn't work.

    • @sunitshukla
      @sunitshukla Před 3 lety

      Very helpful and clear instructions...looked so many places to find your simple set of clear instructions. Many thanks

  • @dajaq.6497
    @dajaq.6497 Před 4 lety

    Thank you for the video! It really helped a great deal. I am using a PIC microcontroller, do I still need to connect the sensor to analog pins and the servo to digital pins?

  • @sorecentipede
    @sorecentipede Před 6 lety +2

    ChenTheDesignMaker
    Why did you connect the 5V output with the motor supply?

    • @sorecentipede
      @sorecentipede Před 6 lety +2

      And whats the advantage of it? Sorry if you mentioned it in the video but my english is not that well

    • @ChenTheDesignMaker
      @ChenTheDesignMaker  Před 6 lety

      Hi, it was actually an oversight. The power terminal is the only power connection on the shield so I thought it's the input. It works perfectly fine. However further research suggest the Vin Pin should be the best for power input. It goes through the on board voltage regulator to provide 5v, but that also means we have to provide something above 7V for the V drop. Since we already have 5V from the L298, connecting to the 5V works fine even not being protected.

    • @ChenTheDesignMaker
      @ChenTheDesignMaker  Před 6 lety

      Hopefully this make sense and let me know if I missed anything. For further reading: electronics.stackexchange.com/questions/65576/arduino-uno-r3-directly-supply-regulated-5v-to-5v-pin

  • @maryannliljenquist7766
    @maryannliljenquist7766 Před 6 lety +1

    Chen, Great tutorials. Two problems, When I run the motor test, the robot turns right not left (or maybe right not left). How do I switch the wires? Second, for the servo test, when I first upload the sketch, the servo turns full right and stops, never to go again. Any suggestions?

    • @ChenTheDesignMaker
      @ChenTheDesignMaker  Před 6 lety

      Hi Mary, for the motors, you could switch the motor A to motor B, or switch the respective 3 pins for each motor.

    • @ChenTheDesignMaker
      @ChenTheDesignMaker  Před 6 lety

      For the servo, first manually turn it to make sure the range is fine, I would check connections next. Make sure the pin defination in the code matches your pin connection.

    • @petrtyl7351
      @petrtyl7351 Před 5 lety +1

      @@ChenTheDesignMaker Seems that servo is pinned to pin number 9 in test code. But we have it in pin number 0. Try to switch them and it should work.

  • @gkassignments7203
    @gkassignments7203 Před 3 lety

    Hi I have never used an Arduino before I just connected everything and copy and pasted the code. What does the [csharp] stand for? Do I have to run it with C#?

  • @JoaquinPais
    @JoaquinPais Před 2 lety

    is it me or the code doesnt compile. i got some errors in the motor test.

  • @goku445
    @goku445 Před 3 lety

    Is it ok to send 6V to the logic voltage input of the L298N? The specs say 5V input.

  • @fredkaz245
    @fredkaz245 Před 3 lety

    what is the fault here please. Can you help??? (pulse_width = t2 - t1;)

  • @sunetamore7224
    @sunetamore7224 Před 4 lety

    If you solder it and you have to remove the wire what will you do

  • @amjedwashaha6506
    @amjedwashaha6506 Před 4 lety

    the code you have provided expects a initializer where the void loop is located what should I do?

  • @kev1kaz1
    @kev1kaz1 Před 5 lety +1

    Thank you, great vid :0)

  • @boussaidnejla3772
    @boussaidnejla3772 Před 5 lety

    You bild that car without programming the arduino card ?

  • @clivelewis2499
    @clivelewis2499 Před 5 lety

    Hi. Thanks for the videos I found them to be a great help. I have a question, I am able to upload the sweep test it seams with no problem but it does not seam to work the servo will make on small movement and the just stays motionless. Any ideas. Have I missed something. Motor test is fine. Is it something to do with library

    • @clivelewis2499
      @clivelewis2499 Před 5 lety +1

      Think I have sorted it with the amendment of the Pin 9 I change to pin 3

    • @ChenTheDesignMaker
      @ChenTheDesignMaker  Před 5 lety

      Great! Have fun~ let me know if you have other questions.

  • @Dropkicker27
    @Dropkicker27 Před 6 lety

    Hi Chen, i have a little question, why do you have bridged the 12v and 5v? Can you explain it for me, thank you!

    • @ChenTheDesignMaker
      @ChenTheDesignMaker  Před 6 lety +1

      Hi Dropkicker27, here are more information about the L298N connections: czcams.com/video/TMwBQ4sb3XY/video.html
      Basically the 12v pin is the power to the motors and 5v is powering the logics in L298N. The 5v pin supports 5 to 7v so it is safe to connect the 4 AAs to it, as well as the 12v pin. If you need to driver bigger motors with bigger voltage, the 5v pin can even be ignored with the on board 7805 voltage regulator. Check the video above and let me know any further questions. Happy Making! :D

    • @Dropkicker27
      @Dropkicker27 Před 6 lety +1

      Thank you for your quick answer, ah it make sense to me now. Nice vids by the way.

  • @serbaserbi6829
    @serbaserbi6829 Před 5 lety

    I want to added bluetooth modul it can??? Thank you

  • @rajaa4532
    @rajaa4532 Před rokem

    The code isn't opening😔

  • @spraz3r348
    @spraz3r348 Před 5 lety

    hi bro, thank you for the tuto, but i have a problem in the l298n module you have 6 pins but i have only 4 what i have to do?

    • @ChenTheDesignMaker
      @ChenTheDesignMaker  Před 5 lety

      Could you tell me what are the 4 pins?

    • @spraz3r348
      @spraz3r348 Před 5 lety

      @@ChenTheDesignMaker www.theengineeringprojects.com/wp-content/uploads/2017/07/L298-Pinout.jpg
      look in this photo i have the module whit the ativa MA and ativa MB like that and i cant put a cable in

    • @spraz3r348
      @spraz3r348 Před 5 lety

      @@ChenTheDesignMaker please help me cause i buyed the kit two times and i dont want to put my money in garbage

    • @ChenTheDesignMaker
      @ChenTheDesignMaker  Před 5 lety

      @@spraz3r348 ah, are those jumpers? Just use a some tweezers to remove those

  • @GolDAlexPirateKing
    @GolDAlexPirateKing Před 5 lety

    every time i try to test the ultrasensor and connect the GND to A0 it makes the arduino shutdown and i cant load the code.... HELP BRO

    • @ChenTheDesignMaker
      @ChenTheDesignMaker  Před 5 lety

      Wait, isn't GND connecting the GND? why A0? Sounds like there might be a wrong connection that shorts the arduino.

    • @alexamvs480
      @alexamvs480 Před 5 lety

      ALEX PAPAZOGLOU no worries dude I fixed it after all...2 connections were messed up 😂 now the other problem is to create an ir beacon that will “make” the car follow it😝

  • @eyadsalameh7057
    @eyadsalameh7057 Před 5 lety

    hi
    my n298 has just 4 pin
    and yous has 6
    what i have to do ???????????

  • @jedikkemoeder3674
    @jedikkemoeder3674 Před 6 lety

    Do you get the wires by the kit??

    • @ChenTheDesignMaker
      @ChenTheDesignMaker  Před 6 lety

      Hi, you'll need to purchase the jumper wires separately. The part 1 video has all the parts included in the kit. Have fun!

    • @aartboerland31
      @aartboerland31 Před 4 lety

      Hahaha ook Nederlander hier

  • @อ้อยนน-พ5ฒ

    Arduino: 1.8.8 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled, 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"
    C:\Users\User\Documents\Arduino\sketch_mar31a\sketch_mar31a.ino: In function 'void checkDistance()':
    sketch_mar31a:5:18: error: 'A1' was not declared in this scope
    #define ECHO_PIN A1
    ^
    C:\Users\User\Documents\Arduino\sketch_mar31a\sketch_mar31a.ino:111:21: note: in expansion of macro 'ECHO_PIN'
    while ( digitalRead(ECHO_PIN) == 0 );
    ^
    sketch_mar31a:5:18: error: 'A1' was not declared in this scope
    #define ECHO_PIN A1
    ^
    C:\Users\User\Documents\Arduino\sketch_mar31a\sketch_mar31a.ino:116:21: note: in expansion of macro 'ECHO_PIN'
    while ( digitalRead(ECHO_PIN) == 1);
    ^
    Multiple libraries were found for "Servo.h"
    Used: C:\Users\User\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0\libraries\Servo
    Not used: C:\Program Files (x86)\Arduino\libraries\Servo
    exit status 1
    'A1' was not declared in this scope
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.

  • @rvw5801
    @rvw5801 Před 6 lety

    when the part 3 bro?

    • @ChenTheDesignMaker
      @ChenTheDesignMaker  Před 6 lety

      Working on it right now. I'm trying to figure it all out this week and edit the video early next week.

  • @bnnktchp
    @bnnktchp Před 6 lety

    Can I use a 2s 2400mah lipo instead of 4x AA battery?

    • @ChenTheDesignMaker
      @ChenTheDesignMaker  Před 6 lety

      Hi Gemmo, I did some search and seems like it is a 7.4v battery, is it?

    • @bnnktchp
      @bnnktchp Před 6 lety

      ChenTheDesignMaker, yes it is. Unfortunately it's dead already and i just bought a 9v battery. Im on the loading of the program stage now, thank you for your video im learning quickly :)

    • @bnnktchp
      @bnnktchp Před 6 lety

      I followed the wirings and uploaded the code but it doesnt seem to work. I cant figure out where my error is.

    • @ChenTheDesignMaker
      @ChenTheDesignMaker  Před 6 lety

      Could you describe what's the issue? Is it the motor? or servo? Or no power at all?

    • @bnnktchp
      @bnnktchp Před 6 lety

      ChenTheDesignMaker if you dont mind, do you have facebook or other social media where I can send pm's? Thank you.

  • @user-wp5hl3hk8c
    @user-wp5hl3hk8c Před 6 lety

    Why my tt motor doesn't work?

    • @ChenTheDesignMaker
      @ChenTheDesignMaker  Před 6 lety

      Hi, I would first check if the motor runs with voltage applied to it, like 3v 2 AA batteries. If it runs, it must be a connection problem. Check this video: czcams.com/video/TMwBQ4sb3XY/video.htmlm5s to manually test the connections. Let me know if this solves it. Good luck!

    • @user-wp5hl3hk8c
      @user-wp5hl3hk8c Před 6 lety

      Manually the tt motor test ok!!! but assembly the smart car still doesn't wok....

    • @ChenTheDesignMaker
      @ChenTheDesignMaker  Před 6 lety +1

      If the 298N works fine on your manual test, it might be a software problem, can you check if your pin connections are matching in the #define area of the code? Let me know how it goes.

  • @joseluisdiaz3406
    @joseluisdiaz3406 Před 3 lety

    Malo