Raspberry Pi Line Following Robot Car programmed in Python

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

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

  • @bilbyjohnson4721
    @bilbyjohnson4721 3 месяца назад

    excellent explanation

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

    how is the gpio looking like when you gpio readall command it? WHich pins are IN and which are OUT?

  • @foxynight1688
    @foxynight1688 3 года назад

    Thank you so much, you have explained every detail so clearly and this video make me understand well....

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

    We've followed your tutorial, but we're having a problem with getting the motors to run once we put it down on the floor. The floor is light coloured, but not white. Our tape line is black. The sensors we used are the Obsidian 5V HW-006 V1 3. If we put the chassis up on a block to test the program, it performs as expected. If we block the sensor with anything (black, white, or even a light coloured object) the appropriate wheel stops spinning. Is there a way to turn down the sensitivity, or adjust it from proximity to colour value?

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

      It’s difficult for me to comment without seeing the problem firsthand. However it sounds like it’s working in reverse. With your car up on the blocks your wheels should not be turning until you move something like a white sheet of paper closer to the sensors. You will know when the sensor is working because LED indicator will switch on. Try checking the wiring and code it’ possible that’s where the problem is.

  • @yoavshalev2255
    @yoavshalev2255 4 года назад +1

    Thank you so much this video was very helpful

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

    Once you create the program how do you run it? You do it from Putty? VNC ? or what can you help ?

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

      You can run the program from either VNC or via the terminal window using putty. VNC is the easier option just run the program from within the Geany IDE. If you want to use the terminal window make sure you’re in the right directory and got forget to invoke python3 in the command line. For example sudo python3 programname.py

  • @Thevol40k
    @Thevol40k 4 года назад +1

    Did it with mine, but it goes wayy to fast, what would be the code to lower the speed of left and right motor ?

    • @yoavshalev2255
      @yoavshalev2255 4 года назад

      Did you figure it out?
      How did you do it?

  • @williamvestergaard4136
    @williamvestergaard4136 3 года назад

    if:
    elif:
    elif:
    elif:
    else: