Making a simple Arduino Line Follower Robot

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024

Комментарии • 104

  • @nocopyrightmusic5432
    @nocopyrightmusic5432 2 года назад +2

    well explained thank you

  • @botreboot6352
    @botreboot6352  2 года назад +3

    Hi guys, quick update: as I got summer break, I will pause my current project (check out my dev video about making a robotic vacuum cleaner if you haven't: ruclips.net/video/vU85X9C_cHI/видео.html).
    That means I will start reworking the codes of the line follower, including adding more comments and descriptions. I will also include new codes with new features (for example automatic calibration). So stay tuned!!!! 😀

  • @jahidhasan3310
    @jahidhasan3310 Год назад

    Thank you for such information..

  • @andreiboboccibo1267
    @andreiboboccibo1267 2 года назад +6

    Very bice video!! It helped me a lot!

    • @adda7959
      @adda7959 2 года назад +2

      i also thought it was very bice

    • @diwakar8815
      @diwakar8815 Год назад

      @@adda7959 😂

  • @SANJAYKUMAR-ix5pd
    @SANJAYKUMAR-ix5pd 2 года назад +1

    Bro, DRV8833 2 channel dc motor driver is used in this follower, due to cheapest

  • @fidix6834
    @fidix6834 2 года назад

    Hello nice video and well explained 👍 thanks for the code in thé description

    • @botreboot6352
      @botreboot6352  2 года назад +1

      Thank you! In my projects, I often change my codes, so instead of explaining them, I offer in the description of this video a link to a written tutorial that contains the latest version of the code (with some explaining as well).

    • @fidix6834
      @fidix6834 2 года назад

      Oh yes i didnt see it my bad thank you for your answer 😉

  • @lounes9777
    @lounes9777 Год назад

    A BIG THANKS

  • @RyanJamesConiendo
    @RyanJamesConiendo 16 дней назад

    very informative. Thank you

  • @skullgaming0008
    @skullgaming0008 Год назад +1

    Does it follow white line also

  • @KIXEMITNOG
    @KIXEMITNOG 2 года назад +1

    Nice

  • @brandavornamberstone7729
    @brandavornamberstone7729 2 года назад +1

    How do you pair the ble module with the phone? Every time I try to pair, it says pairing rejected. Any ideas?

    • @botreboot6352
      @botreboot6352  2 года назад

      In my case, to get the Bluetooth module working, I first paired the phone with the module from the Bluetooth panel in Settings. It usually requires a pairing key ('0000' or '1234' should work). When the pairing is done, you can select the module device directly from the Android application for the control of the line follower. Otherwise, make sure the module is connected properly to the microcontroller and the code is correctly uploaded.

  • @firaslaouini3844
    @firaslaouini3844 5 месяцев назад

    after while about 30s in the app when i want to change the constants it show me this message :h-05 bluetooth error 516 unable to write broken pipe can u help how to fix it

  • @cyvnimo1120
    @cyvnimo1120 4 месяца назад

    hi can i use other brand 8 channel ir sensor?

  • @sanketmendke9793
    @sanketmendke9793 2 года назад +1

    In these the digital I/O is use or Analog i/o ??

  • @RighttoInformationAct2005
    @RighttoInformationAct2005 5 месяцев назад +1

    where is the app download link

  • @geluklu
    @geluklu Год назад

    ı wont to ask
    if ı make it even shorter is it be good or bad

  • @pallaputejachakravathi5357
    @pallaputejachakravathi5357 10 месяцев назад

    hello,
    can you share the sketchfab 3d model it is not opening since it shows like this
    You can’t access this page because this Sketchfab 3D model has been deleted.
    thank you

  • @christinemaechiong1747
    @christinemaechiong1747 7 месяцев назад

    hi, can i change hc-05 to hc-06 (4 pins) and have the same code? also can i still use the app for my hc-06 module? thank you

  • @miturajbaishya7137
    @miturajbaishya7137 Год назад +1

    Very informative 👏

  • @pocopoco3468
    @pocopoco3468 Год назад

    Android app I got is different it doesn't have motor speed a and motor speedb

  • @SANJAYKUMAR-ix5pd
    @SANJAYKUMAR-ix5pd 2 года назад

    Please but the vedio about code and uploading code

  • @abubakrjajja
    @abubakrjajja Год назад

    Less than 500 subscribers channel taught me that no one did

  • @geluklu
    @geluklu Год назад

    than dude ı will use this information

  • @sanganibhargavteja6045
    @sanganibhargavteja6045 11 месяцев назад

    Bro what is the password of the zip files please reply me

  • @sabersakin3685
    @sabersakin3685 2 года назад

    DRV8835 Dual Motor Driver Carrier and 5V Step-Up/Step-Down Voltage Regulator S7V7F5 is not available in my country. What can i use then? For example can i use DRV8825 Stepper Motor Driver Module or l298 hbridge dual moto driver and for the voltage regulator can use any other buckboost converter?

    • @botreboot6352
      @botreboot6352  2 года назад

      You can use any other motor driver and voltage regulator as long as they are compatible. You need to make sure that the battery's voltage is between the input interval of the voltage regulator (and of course the output is 5V).
      The same goes for the motor driver - the voltage input and output are compatible (also, you should take into account the current's output - if it is sufficient for the motors - the DRV8835 has an output of 1.2 A). Depending on what you alter, the wiring and the code will change too.
      But yeah, the L298n motor driver can be used as a replacement. From what I've heard and tested, it has some voltage loss at the output.

  • @MrThinLips
    @MrThinLips 11 месяцев назад

    proteus design ?

  • @Helal_Tech
    @Helal_Tech Год назад

    Is this robot can solve a line following maze? If not, how can we make this?

    • @botreboot6352
      @botreboot6352  Год назад

      From what I've heard, it really depends on the type of maze you are talking about. It can be with or without line, and in the contrary case, you have walls. If you only have lines and no walls, it is possible to work, but you need an algorithm to solve that maze optimally. There is already the movement of the car implemented. Now, the next step is to actually give it a brain.

  • @sanketmendke9793
    @sanketmendke9793 2 года назад

    Please can you tell me which code is use only for fastest line following as you put in your description like PID example, QTR-8Rc or advance pid+ Bluetooth from these which code is best for only line following fast
    And
    8833 DRV can be use instead of 8835 but In 8833 DRV eep and ULT pin is there where it connected please reply

    • @botreboot6352
      @botreboot6352  2 года назад

      "PID control example" is the sample example of the raw implementation of the PID control system.
      "QTR-8RC Example" is the sample example of how the sensor array can be set up and used in the Arduino IDE.
      The "Advanced PID control + Bluetooth communication" is the PID control system with some modifications for better control at taking curves. In addition, it offers Bluetooth support to easily tune the robot. Therefore, there is no code that makes the robot "faster". If you want the robot to go faster, increase the variables of the maximum speed and/or base speed.

    • @botreboot6352
      @botreboot6352  2 года назад

      If you would take a look on www.pololu.com/product/2130, you can see how each pin can be wired. And more precisely than that, eep and ult pins, which probably are the "nSLEEP" and "nFAULT" pins, can be left out, as they are not required for the minimal functionality of the motor driver.

    • @sanketmendke9793
      @sanketmendke9793 2 года назад

      @@botreboot6352 thank you for reply !!!
      one more Question is that then we use DRV 8833 instead of 8835 without making changes in code of yours because in 8833 no mode pin is there

  • @hedichabbeh8590
    @hedichabbeh8590 2 года назад

    Hc 05 blutooth module used for what ?

  • @turuu
    @turuu 2 года назад

    im trying to use L298N Motor Driver, but what's "mode" from DRV8835 Dual Motor Driver Carrier

    • @botreboot6352
      @botreboot6352  2 года назад +1

      If you would take a look on the driver schematic (www.pololu.com/product/2135), the MODE pin determines the control interface.

  • @arthurceci8152
    @arthurceci8152 2 года назад

    Plase, why did you use those four resistors?

    • @botreboot6352
      @botreboot6352  2 года назад +1

      You can find the circuit schematic in the link in the description. Each button requires a pull-down resistor, and the Bluetooth HC-05 module requires 2 resistors (which make a voltage divider in order not to burn the module).

    • @arthurceci8152
      @arthurceci8152 2 года назад

      @@botreboot6352 nice! Thanks for answering, pretty cool car!

  • @SANJAYKUMAR-ix5pd
    @SANJAYKUMAR-ix5pd 2 года назад

    Which rpm gear motor is used

    • @botreboot6352
      @botreboot6352  2 года назад

      10:1 Micro Metal Gearmotor HPCB 6V from Pololu (www.pololu.com/product/3061), which has an no-load performance of 3300 RPM.

  • @jocelacl
    @jocelacl 2 года назад

    Good job. Thanks for sharing!

  • @PropellerSteve
    @PropellerSteve 2 года назад

    Thanks for sharing.

  • @sanketmendke9793
    @sanketmendke9793 2 года назад

    In advance pid Bluetooth code you not declared the button which is for calibration And start to run so it will drop out the button connection 🙄

    • @sanketmendke9793
      @sanketmendke9793 2 года назад

      Instead of using qtrtype rc can we use Analog it is beneficial to us

  • @SANJAYKUMAR-ix5pd
    @SANJAYKUMAR-ix5pd 2 года назад

    What is eep and ult pins in DRV8833 driver, explain its function

    • @botreboot6352
      @botreboot6352  2 года назад

      I suggest you take a look at its documentation because it is not a component used in this project, and neither are the EEP and ULT pins.
      Of course, any other replacement of the hardware used in this project might not be compatible with the codes and PCB, so you will have to improvise and adapt them to your needs.

  • @SANJAYKUMAR-ix5pd
    @SANJAYKUMAR-ix5pd 2 года назад

    One last question, which code is uploaded in Arduino pro mini QTR-8RC or pid control,are both

  • @lendoornink6780
    @lendoornink6780 2 года назад

    First of all thanks for the video. Do you have by any change Matlab / Simulink models ?

    • @botreboot6352
      @botreboot6352  2 года назад

      Unfortunately, no. However, I try to share every resource I have used in the link in the description on my Hackster page.

  • @SANJAYKUMAR-ix5pd
    @SANJAYKUMAR-ix5pd 2 года назад

    Bro, why are use Arduino pro mini? In front i use Arduino nano its works or not

    • @botreboot6352
      @botreboot6352  2 года назад

      There is not much of a difference between these two Arduino boards. I went with the Arduino Pro Mini because of the smaller size. As I've stated in these comments, there is an infinite range of other hardware components that can be used instead.

  • @shettyadithcreations1799
    @shettyadithcreations1799 Год назад

    Will this work with black surface and white line

    • @botreboot6352
      @botreboot6352  Год назад

      Yes, the library used here also has support for the white line black base configuration. However, the code needs to be changed, more exactly from "qtr.readLineBlack(sensorValues)" to "qtr.readLineWhite(sensorValues)".

    • @shettyadithcreations1799
      @shettyadithcreations1799 Год назад +1

      @@botreboot6352 thank you so much sir

  • @SANJAYKUMAR-ix5pd
    @SANJAYKUMAR-ix5pd 2 года назад

    What is the dimensions of PCB and dimensions of the lf robot

    • @botreboot6352
      @botreboot6352  2 года назад

      You can find the files of the PCB and STL objects in the link in the description (on my Hackster account). Moreover, there is a picture of the robot there, which contains all the dimensions of the components.

  • @pocopoco3468
    @pocopoco3468 Год назад

    Hey man please help, the app in the link is different, it dosent have base speed option

    • @botreboot6352
      @botreboot6352  Год назад

      The version with the control of the speeds was never pushed to the resources because it was usually breaking the whole application if you would send a lot of data to the Arduino. However, you can manually set in the code your desired min, base max speeds.
      Right now, I am working on a new interface and application for the line follower robot, so stay tuned because it will be released soon! :)

    • @pocopoco3468
      @pocopoco3468 Год назад

      @@botreboot6352 thankyou

  • @vivomovies5417
    @vivomovies5417 2 года назад

    Why code shows error 😭 though I downloaded all libraries

    • @botreboot6352
      @botreboot6352  2 года назад

      Can you tell me which of the codes throws errors and what it says?

    • @vivomovies5417
      @vivomovies5417 2 года назад

      @@botreboot6352 thank you for reply and your help. I can fix the error.

  • @sanketmendke9793
    @sanketmendke9793 2 года назад

    In advance pid Bluetooth code the KP Ki KD value are auto generated while calibrating?????

    • @botreboot6352
      @botreboot6352  2 года назад

      The calibration is for the sensors of the QTR-8RC. It has nothing to do with the PID control terms.

    • @sanketmendke9793
      @sanketmendke9793 2 года назад

      Can you share your value of kp ki KD u use in these

    • @botreboot6352
      @botreboot6352  2 года назад

      @@sanketmendke9793 please look up in the link in the description (of the written documentation). You will find there the specified values I have used, plus more information that would answer most of your questions.

    • @sanketmendke9793
      @sanketmendke9793 2 года назад

      @@botreboot6352 thank you very much 😊

  • @muhammadaleemadil
    @muhammadaleemadil 2 года назад

    can you please tell the andoird ap name ?? or the link to it ... it will help me alot in my future projects

    • @botreboot6352
      @botreboot6352  2 года назад +2

      You can find the whole software, including the Android app in the link in the description. There you can download on your phone the .apk file.

    • @muhammadaleemadil
      @muhammadaleemadil 2 года назад

      @@botreboot6352 found it.. Thank you soooo... I will also post my codes and reserch to help and guide people... Once again thank you 🎊🎉

  • @sanketmendke9793
    @sanketmendke9793 2 года назад

    Please reply
    In code kp ki KD value is changed in your code or keep constant in it

    • @areki150
      @areki150 2 года назад +1

      chill bro he will answer

    • @botreboot6352
      @botreboot6352  2 года назад

      The PID control system is based on finding the perfect values for the control terms / constants. By trial and error, you can find those values. I recommend researching more on the internet about the PID control system so you understand how it works. I also provide a brief explanation in the tutorial in the description of the video.

    • @sanketmendke9793
      @sanketmendke9793 2 года назад

      @@botreboot6352 thank you bro for helping 😊

  • @SANJAYKUMAR-ix5pd
    @SANJAYKUMAR-ix5pd 2 года назад

    You can connect mode pin in 8th pin of Arduino,in front i use DRV8833, eep pin is connected to that 8th pin,as your description code is suitable for that pcb board

  • @fathiafraznaaz-zahra1453
    @fathiafraznaaz-zahra1453 Год назад

    What app did u use for CAD model ?

  • @pocopoco3468
    @pocopoco3468 Год назад

    I have made this, is there any way to make it take acute angles?

    • @botreboot6352
      @botreboot6352  Год назад

      That's a really good question. I never got the chance to test it. However, I am remaking the line follower robot, both the design and the software, so when I test it, I will make sure to also include that.

    • @pocopoco3468
      @pocopoco3468 Год назад

      @@botreboot6352 will you upload the video after its done, if yes then when will it would be?

    • @botreboot6352
      @botreboot6352  Год назад

      Yes, of course I will upload the video. If everything goes smooth and without any bugs and issues, one month would be a realistic estimate.

    • @pocopoco3468
      @pocopoco3468 Год назад

      @@botreboot6352 thanks bro, I was working on this I have an idea to make it take an acute angles, I'm a mechanical engg student so don't know much about programing, if you share your e mail then I will share my idea

    • @botreboot6352
      @botreboot6352  Год назад

      My email is on my about page of my youtube page. If you cannot find it, then here you go: anova9347@gmail.com

  • @brandavornamberstone7729
    @brandavornamberstone7729 2 года назад

    Would it be possible to use a drv8833, or any other motor driver, in place of the drv8835? Also does the code work only for the Arduino pro, or it could work for other arduinos too(the nano or the uno for example)?

    • @botreboot6352
      @botreboot6352  2 года назад +2

      It is possible to use any other hardware existing, as long as you have the same outcome. In the case of the motor drivers, you will need to keep track of the supply voltage, wiring, code to control the motors etc.
      But strictly regarding this project, the PCB used doesn't support any modifications in hardware, so you will need to either use a breadboard or customise your PCB.
      As for the code, it should work on all Arduino boards. But keep in mind that you have enough PWM, I/O and analogue pins required by the other components.

    • @brandavornamberstone7729
      @brandavornamberstone7729 2 года назад

      @@botreboot6352 Thanks.

    • @SANJAYKUMAR-ix5pd
      @SANJAYKUMAR-ix5pd 2 года назад

      Bro you can make line follower

  • @sanketmendke9793
    @sanketmendke9793 2 года назад

    In these robot you use DRv 8835 in that Mode pin is connected to 8 but I am using 8833 there is no mode in that so what I do or no need to connect mode in 8833? please reply

    • @botreboot6352
      @botreboot6352  2 года назад

      If you look at the motor drivers' documentation (letmegooglethat.com/?q=drv8835+pololu), you would observe that the mode pin aims to switch between two modes of operation of the motor driver. The DRV8833 doesn't have the mode functionality, so of course, you don't need to "connect mode".

  • @Gdp_si
    @Gdp_si Год назад

    Hi.. the project is good. Can you show how to to do automatic calibration?
    Also incase of end of line can we make it turn around?

    • @botreboot6352
      @botreboot6352  Год назад +3

      Hi! Yes! I plan releasing soon a video where I redesign the whole app to control and tune the line follower robot. This will also include automatic calibration.

    • @instudio2408
      @instudio2408 Год назад

      @@botreboot6352 I'm waitinggg !!!