Raspberry Pi- Using the GPIO... Part 2

แชร์
ฝัง

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

  • @ipodsandwaffles
    @ipodsandwaffles 11 ปีที่แล้ว

    the only video or tutorial that I could find anywhere to get me started programming the GPIO connectors. Bought a breadboard with tons of accessories and this was an incredibly simple video to teach me the basics. would love other videos with more complex functions that also included buttons/more LED's. Thanks so much

  • @DavidWatts
    @DavidWatts 11 ปีที่แล้ว

    I am an Arduino guy and really struggled with the pin number assignment and the 'official name'. Thanks a lot, I think you saved me destroying my Pi.

  • @pancakesimone
    @pancakesimone 11 ปีที่แล้ว

    Awesome! The first time I tried to run it, I didn't realize I was connecting my dupoint wires to the left side, instead of the right side of the GPIO pins, so I was really sad when it didn't work! But then I realized, and now I have a happy little green LED blinking away, thank you!

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

    I have two questions:
    1. Does3V3 mean 3.3V?
    2. Does each GPIO connector has a certain use (for example "ground") or can I change them?

  • @2100Warzone
    @2100Warzone 12 ปีที่แล้ว

    A Tutorial that works. Never saw the Dev files mentioned on any of the other sites. Thanks.

  • @sjohnson1801
    @sjohnson1801 10 ปีที่แล้ว

    Great archive of videos you have created. They make understanding the basics to the raspberry pi very simple for first time users.

  • @bkay248
    @bkay248 12 ปีที่แล้ว

    This is a really informative video, My Raspberry Pi should arrive tomorrow and I can't wait to get programming, but my question is, you said in the other video that there is a possibility of rendering the Pi useless by plugging into the wrong GPIO pin, it this possible? Or would it just brick it and you would have to reimage the sd card?

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

    i did the sudo python (project name).py and pressed enter an rhen is says that :no module named RPI..GPIO

  • @TheGregcawthorne
    @TheGregcawthorne 12 ปีที่แล้ว

    Hey bit of a noob question. How do you quit the python program once you run it in LXTerminal? I had to just it down to get it to stop blinking the LED :P.

  • @hassansawalmeh3393
    @hassansawalmeh3393 11 ปีที่แล้ว

    than you very much for this great tutorial,but i am having a problem when running the program a warning message appears which is :
    RuntimeWarning: This channel is already in use ,containing as yway. Use GPIO.setwarning(False) to disable warnings.
    gpio.setup(14,gpio.OUT)
    i tried different pins but the same warning keep appearing

  • @express496
    @express496 11 ปีที่แล้ว

    Can you explain why is it saying "this channel is already in use continuing anyway" ?? Did everything as shown here

  • @j4k0bk
    @j4k0bk 11 ปีที่แล้ว

    Great tutorial, thanks! :-) Would like to see more in the future about Python and the GPIO library for a bit more complex operations.

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

    I don't understand why you attached the resister to the negative side of the current.

    • @sjohnson1801
      @sjohnson1801 10 ปีที่แล้ว

      Capacitors and inductors must follow a certain path of voltage (polarity). For example, if you attach the positive end of a 2 volt battery to a capacitor, the positive lead of the capacitor (the longer lead of the capacitor) must connect to the positive end of the 2 volt battery. You must do the same thing for an inductor too. However, a resistor does not follow a certain path of voltage (polarity). Therefore you can simply attach the resistor anyway you would like.

    • @mradaChris
      @mradaChris 10 ปีที่แล้ว

      Thank you!

  • @ValsGym
    @ValsGym 11 ปีที่แล้ว

    These videos are brilliant! Thank you very much please keep it up

  • @viktorbj123
    @viktorbj123 11 ปีที่แล้ว

    Hi, I have a problem with the GPIOs, I have installed the GPIO library like you did. But when I try my blink-led code I get a error message which says "ImportError: No module named RPI.GPIO".

  • @mobytoss
    @mobytoss 12 ปีที่แล้ว

    Good videos RPiGuy, keep it up

  • @8calebdavid
    @8calebdavid 12 ปีที่แล้ว

    Does anyone know the make and modle on the bread board he is using? It looks really inexpensive but useful.

  • @EwStz
    @EwStz 8 ปีที่แล้ว

    Very intuitive video, thanks. But how I increase the blinking frequency of the led?
    Thank you

    • @frostshadow297
      @frostshadow297 7 ปีที่แล้ว

      Just change the amount of time specified in the "sleep" command. A lower number will cause it to blink faster and vice versa.

  • @TLBEoGyOH
    @TLBEoGyOH 12 ปีที่แล้ว

    Could u make a tutorial on how to install openelec OS.

  • @DavidWatts
    @DavidWatts 11 ปีที่แล้ว

    Also, I checked and GPIO14 does appear to be HIGH by default.

  • @Richybomb
    @Richybomb 12 ปีที่แล้ว

    when i enter the change directory command i am given an error message stating there is no such file or directory. Any ideas on what file or directory i should have!!!

  • @alinoble3171
    @alinoble3171 11 ปีที่แล้ว

    once im at the "sudo python gpiotest.py" i put that in and i get this message:
    gpiotest.py:6: Runtimewarning: This channel is already in use, continuing anyway. Use gpio.setwarnings(False) to disable warnings.
    gpio.setup(14, gpio.OUT)
    what do i do?

  • @themaster881998
    @themaster881998 12 ปีที่แล้ว

    You are AWESOME.....
    You helped me a lot thank you man!!!
    Keep on your hard work

  • @TheBbj1997
    @TheBbj1997 11 ปีที่แล้ว

    i have got the same problem but updating and instal again does not work. What do i need to do

  • @TheBbj1997
    @TheBbj1997 11 ปีที่แล้ว

    where do i need to do this command
    ps thanx for helping

  • @TheRedGoldfish
    @TheRedGoldfish 12 ปีที่แล้ว

    I think I have it working now, all I need is a .py file to run - Do you know a code I can use to turn a simple relay on and off (GPIO17, pin 11)

  • @CharlyMachine
    @CharlyMachine 12 ปีที่แล้ว

    Suscribed! awesome videos dude ;)

  • @drewdk3
    @drewdk3 11 ปีที่แล้ว

    Hey I posted a question on part 1 I would love if you could help thanks

  • @RichardTheValiantFoolFox
    @RichardTheValiantFoolFox 11 ปีที่แล้ว

    Kept getting the error channel is in use. For some reason Foreign to me the only way I could get the python script to work was by adding {I used pin 11 instead of 14}
    GPIO.setup (11, GPIO.OUT, initial=GPIO.HIGH)
    I don't know why this enabled the script to work but typing it just as you coded it it would not work for me.
    attempting GPIO.cleanup() in the python shell kept returning an error message to the effect that paraphrasing it could not be completed.

  • @ComputersAreRealCool
    @ComputersAreRealCool 12 ปีที่แล้ว

    why did you use python 2.7 not 3.0? Does it not work?

  • @2011supra
    @2011supra 11 ปีที่แล้ว

    Some code isn't written properly.
    u can try this:
    GPIO.setwarning(False) to disable warnings.

  • @jpalmz1978
    @jpalmz1978 12 ปีที่แล้ว

    really good tutorial PiGuy - just got mine through the post today but the Mrs won't let me have it while Chrimo :-(( ... got to get a keyboard and breadboard ready though

  • @jpalmz1978
    @jpalmz1978 12 ปีที่แล้ว

    Typing this on my new toy ;-) - got a wireless logitech k260 kb & mouse - according to the pi hardware compatiability list. Yeah if you have any links for breadboards etc I was also reading about a breakout board as well that was fairly cheap. Everything seems to be working ok using debian wheezy - browsing is a little slow but to be expected :-)

  • @TheBbj1997
    @TheBbj1997 11 ปีที่แล้ว

    When i type: sudo python LED.py i get: traceback LED.py line 1, in module import RPI.GPIO as gpio ImportError: No module named RPI.GPIO
    and when i update it en install python-rpi.gpio again could someone help me whit this problem?

  • @TheBbj1997
    @TheBbj1997 11 ปีที่แล้ว

    where do i need to type this command???

  • @rickseiden1
    @rickseiden1 12 ปีที่แล้ว

    If you use
    import RPi.GPIO as gpio
    gpio.setmode(gpio.BOARD)
    you can then address the pins by their physical numbers as you counted them out on the screen.

  • @TheRedGoldfish
    @TheRedGoldfish 12 ปีที่แล้ว

    Mine keeps getting a traceback error (gpio not defined)

  • @Arachnalicious
    @Arachnalicious 12 ปีที่แล้ว

    Just one comment, the dark bar along the bottom that says "check out my other videos!" was a little distracting.

  • @zenwarfare70
    @zenwarfare70 12 ปีที่แล้ว

    great stuff for a newbie like me !

  • @8calebdavid
    @8calebdavid 12 ปีที่แล้ว

    Nevermind, I saw what you posted on the first video for your breadboard.

  • @thomasengland6263
    @thomasengland6263 11 ปีที่แล้ว

    What's mcb

  • @2011supra
    @2011supra 11 ปีที่แล้ว +1

    RPi.GPIO as GPIO. Use small lower letter i, not upper letter I

  • @TheBbj1997
    @TheBbj1997 11 ปีที่แล้ว

    awesome it finaly worked thanks for helping guys

  • @2100Warzone
    @2100Warzone 12 ปีที่แล้ว

    The Easy way is to store your files in a folder you can find. I dump mine in the python_games folder.

  • @SP3IILuke
    @SP3IILuke 11 ปีที่แล้ว

    all i get is a runtimewarning

  • @2011supra
    @2011supra 11 ปีที่แล้ว

    HOOORAAAAAAAAAY!
    U'r welcome.

  • @Arachnalicious
    @Arachnalicious 12 ปีที่แล้ว

    No problem, but apology accepted all the same ;)

  • @TheGregcawthorne
    @TheGregcawthorne 12 ปีที่แล้ว

    Never mind. Cntrl C :P. Didn't watch 'till the end :P.

  • @zekromfast6563
    @zekromfast6563 10 ปีที่แล้ว

    thanks..