How to Build Your First Robot With a Raspberry Pi and Program it in Python - Step by Step Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 มิ.ย. 2024
  • Hello! I just built my first robot and wanted to share how I did it. Here are the materials I ordered (Sorry! They're Canadian links but they should be available internationally too):
    - Chassis Kit: www.amazon.ca/T%C3%A9l%C3%A9c...
    - Wires: www.amazon.ca/Elegoo-120pcs-M...
    - Raspberry Pi 3B+ Kit: www.amazon.ca/Raspberry-Model...
    - Motor Controller Board: www.amazon.ca/Kuman-Controlle...
    Thanks so much for watching! If you have any questions or suggestions I'd be more than happy to hear them the comments!
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @patreeceeichel2443
    @patreeceeichel2443  4 ปีที่แล้ว +13

    Here's the order of the video so you can skip over parts if you wish!
    Materials: 0:07
    Materials List: 1:12
    Attaching Wires to the Motors: 1:17
    Attaching the Battery Pack 2:32
    Check the Motors: 3:15
    Attach the Motors: 4:25
    Attach the Ball Caster: 5:45
    Make a 'Chair' for the Motor Driver: 6:53
    Attach the Powerbank & Raspberry Pi: 8:47
    Attach the Wheels: 10:31
    Connect the Motors to the Motor Driver: 10:48
    Choose Your GPIO Pins: 13:03
    GPIO Chart: 13:26
    Connect the GPIO Wires to the Motor Driver: 15:07
    Write a GPIO Testing Script: 15:52
    Order Your Wires: 18:22
    Write the 'Good Copy' Code: 19:28
    Hope you enjoy!!

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

      Also can you post a link that is in the U.S

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

      can you copy the final code here

    • @yudish5431
      @yudish5431 2 ปีที่แล้ว +1

      @@sarahalfiqi5664 first code
      import time
      import RPi.GPIO as GPIO
      GPIO.setwarnings(False)
      GPIO.setmode(GPIO.BOARD)
      print("0")
      GPIO.setup(29, GPIO.OUT)
      GPIO.setup(31, GPIO.OUT)
      GPIO.setup(32, GPIO.OUT)
      GPIO.setup(33, GPIO.OUT)
      print("1")
      GPIO.output(29, True)
      time.sleep(3)
      GPIO.output(29, False)
      print("2")
      GPIO.output(31, True)
      time.sleep(3)
      GPIO.output(31, False)
      print("3")
      GPIO.output(32, True)
      time.sleep(3)
      GPIO.output(32, False)
      print("4")
      GPIO.output(33, True)
      time.sleep(3)
      GPIO.output(33, False)
      print("5")
      time.sleep(3)
      exit
      print("6")

  • @ohnonotthevampire7191
    @ohnonotthevampire7191 ปีที่แล้ว +11

    No drown out music. Useful commentary with full demonstration. Very well done video! Please keep it up!

  • @Toaddaddy
    @Toaddaddy 2 ปีที่แล้ว +4

    I have watched a lot of videos on robotics on TH-cam this was outstanding. Your the first person to explain the dot on the front of motor and correlation to rotation of the wheel clockwise and counter clockwise thankyou. Would you consider posting the codes please.

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

    Awesome work! Clean and concise. Very impressive!

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

    Best instructional Video ever...straight forward and easy to understand...Big ups!!💯

  • @CarneSagrado
    @CarneSagrado 2 ปีที่แล้ว +1

    .
    You are VERY THOROUGH! Very easy to follow! I wish you made more videos!
    Am now trying the Raspberry Pi PICO.
    Stay safe, have fun, enjoy life! 😁
    .

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

    ur very underrated!
    u have content which is pure gold!

  • @swaroophegde5831
    @swaroophegde5831 4 ปีที่แล้ว +8

    Nice. My friend and I used the same kit to build an internet controlled bot. It basically had unlimited range, and we used a power bank as the power source. We also used a L293D motor driver. The long one with 16 pins

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

      sounds like an interesting project and something i would possibly like to recreate. can you elaborate on how your robot was internet-controlled? did you use a raspberry pi? also, what were the output voltage and current of your power bank?

    • @swaroophegde5831
      @swaroophegde5831 4 ปีที่แล้ว +3

      @@dxs1667 I'll just link the website which we referred. Just keep in mind that several codes of the python program are wrong, and you will have to tweak the code. The powerbank was of 5V but I don't remember the current.
      circuitdigest.com/microcontroller-projects/web-controlled-raspberry-pi-surveillance-robot

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

      @@swaroophegde5831 perfect, thank you!

    • @swaroophegde5831
      @swaroophegde5831 3 ปีที่แล้ว +2

      @@dxs1667 so did you do it?

    • @swaroophegde5831
      @swaroophegde5831 2 ปีที่แล้ว +1

      @@dxs1667 it's been a year mate, I'm still waiting for a reply :)

  • @raymorganti946
    @raymorganti946 หลายเดือนก่อน

    Awesome tutorial!

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

    Good going Dear. Keep creating and keep growing. All the very best from #E2Esolutions and I Will support you as I can. And I am your 11th subscriber.

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

    AMAZING VIDEO. Very helpful

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

    thanks for this video very easy to teach for 0 experience people like me and simplify things like that

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

    Hello. Great video. I have a small question... when you set up the right and left wheels individually, you gave them each a 1 and 0. Why is that exactly? Is zero(0) to stop moving and one(1) to begin moving? I believe I understand the rest of the code but I wasn't 100% sure for the reason. Thanks

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

    appreciate the help, amazing video

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

    this is awesome can you please make more videos of your creations and break it down for us on how to assemble it

  • @NaomiNorstrand
    @NaomiNorstrand 6 หลายเดือนก่อน +1

    I need it for my school project ty for making it

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

    Hi you can Copy your pinned comment and paste it in description box. Edit very first time stamp to 0:00 and then text for example
    0:00 material
    .this will enable time stamp on video itself. And also this is the second video i have seen where . board is being used in every other tutorial they are using . BCM. Nice and informative tutorial..

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

    Nice video My Son wants the Kit

  • @lordstilton100
    @lordstilton100 4 ปีที่แล้ว +2

    Can you add a link for the script.. I can't read it from the screen

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

    so why do you want to only use the GPIO pins that don't have other uses like (SDA) or (TXD)?

  • @dxs1667
    @dxs1667 4 ปีที่แล้ว +3

    this is a great tutorial--it was just what i was looking for. i'm building my first robot with an RPi 4 and would like to follow what you've done here, though i'd like to add remote control capability to it. do you think that's possible? how would you recommend going about it?

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

      Did you do it mate?

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

      @@swaroophegde5831 I have one built that can launch fireworks, want the code ?
      Do you have code for one ?

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

      @@Cluffmaster1980 Thanks for asking, mate, but I'll have to decline.

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

    molto brava !

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

    Great tutorial, too bad you don't produce more content

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

    How were you able to disconnect the Raspberry Pi from the monitor, keyboard, and mouse but still have it run?

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

      same question

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

      The Pi will power up automatically when it gets power. You can have a python program running on startup. If you want to interact with the Pi (for instance to put the python program on there, or to tweak the program) the most common way, i guess, would be to use SSH (google is your friend on that one). Also use ssh to safely shut down the pi, as not doing so might easily corrupt your SD card. When using a battery powered setup you might also want to research writing a script to automatically safely shut down the Pi in case of low power to prevent data corruption (though this might be a bit more complicated)

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

    wait so when the GP10 becomes true, then the motor works?

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

    How does it work with Xbox 360 controller? Please help and give code for that 🙏🏽

  • @dsafgvhsbv2n4ew2jghquatuyvb
    @dsafgvhsbv2n4ew2jghquatuyvb หลายเดือนก่อน

    This is a bit of a late comment but can you please upload the link for the script/code? Great tutorial by the way!

  • @the_kid777
    @the_kid777 8 หลายเดือนก่อน

    So, soldering is only required here?: 11:42

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

    Hello, where can I get your code?

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

    my left wheel runs only backwards...

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

    Goood ..and great job...👌👍👌👍👌👍👌👍👌..keep creating......since we have the same ...passion and channel contents... Raspberry pi and programming.....
    I will suppourt u as much as I can....and I Subscribed too...yours...Anyways...Best wishes..👍👍

  • @user-fk5eb9ur1o
    @user-fk5eb9ur1o ปีที่แล้ว

    bonjour !
    tu peux me donner ce code s'il te plait parceque ce le meme projet que je le fais dans mon projet de fin d'étude

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

    Sorry if this was mentioned but what coding language are you using?

  • @farhanagrivahutagalung8768
    @farhanagrivahutagalung8768 6 หลายเดือนก่อน

    Please can you give ur final code, i need for my thesis please 🙏

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

    plz can yo help me .to send me the code

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

    Where is the code ?

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

    Please make more videos

  • @sajjadhusssinsajjadhussain9959
    @sajjadhusssinsajjadhussain9959 9 หลายเดือนก่อน

    Please coding Link send me this project

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

    plz can you send me the code

  • @yusufmuhamed7234
    @yusufmuhamed7234 4 หลายเดือนก่อน

  • @hballouz
    @hballouz 8 หลายเดือนก่อน +1

    the code part was so terrible to follow

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

    Samm is my pet

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

    We are working on a similar kind of project. I would appreciate it if I get an email of yours so I can discuss the problems we are facing.