How to use GPIO pins on the Beaglebone Black

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024
  • Learn how to connect inputs and outputs to your beagle bone black using GPIOs. You can use this to control simple objects such as an LED, or motor (using a transistor), or even your cars headlights (using a relay)!
    More information about the bone cape manager. projectsbb.com/...
    If you only plan on using GPIO pins for your project then this video demostration is perfect for you! If you want to use i2c or other systems, then stay tuned for my future videos!
    From original source: derekmolloy.ie/...

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

  • @d74g0n
    @d74g0n 9 ปีที่แล้ว +1

    Thanks for the help, now to figure out how to use Cloud9 or something to automate my 'echo 0 > value' between 1 and 0. Woop Woop!

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

    A most interesting echo GPIO video. I am trying to get the new Orange Pi-5 GPIO and PWM pins to work using the OPi.GPIO Debian-Bullseye-Python3 Thonny program to control the Pan/Tilt servo motors. The GPIO pins error out not found. I will use the echo commands. Next will be to run a Python code project. Orange Pi5 has no GPIO PWM examples. Thank you.

  • @dako2117
    @dako2117 9 ปีที่แล้ว +2

    Its oobuntu

  • @hichemchtara6327
    @hichemchtara6327 10 ปีที่แล้ว +1

    thanks to share precious information
    about how not to overload the BBB
    and about the Derek Molloy important information (Y)

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

      Thanks for watching! He has great resources! I just put it all in a quick/detailed video.

  • @94ds94
    @94ds94 9 ปีที่แล้ว

    Good tutorial,
    In /sys/class/gpio/gpio*/ there are also:
    "uevent" and "edge" files,
    "power" directory
    "subsystem" an L type file.
    Could you tell me how "edge" and "uevent" should be used and if the "power" directory or "subsystem" file are of any use?
    Thanks!

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

    these devices dont have gpios enough. their gpio header is for measuring and testing. beaglebone black has 10 free gpio pins only. other pins are used by other devices on board.

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

    Will those commands work fyn on Angstrom distribution??

  • @deepikadk7278
    @deepikadk7278 5 ปีที่แล้ว

    It would be good if you explain about calculation (32 x 1 ) + 28

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

    What is the point of installing eclipse if you are not going to use it for development (compiling)?. In your case you could have just edited the file directly in the BBB using Vi, VIM or nano

    • @Projectsbb
      @Projectsbb  8 ปีที่แล้ว +1

      For this specific video, you are correct. There is no point to using an IDE like eclipse. If you are using eclipse though, you can create a program which will probably run better than a script. For example, in my old library (which is no longer available), i used memset to edit and configure the gpio registers which was extremely fast. This eventually pushed me to try and make a boot loader and that required the use of an IDE because of the TI & open source libraries. I hope to use eclipse soon for a project I have been trying to do and make a video on it. Thanks for commenting!

  • @31prabowo
    @31prabowo 10 ปีที่แล้ว +1

    thank you very much..

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

      Your welcome! Thanks for watching!

  • @vasiq44
    @vasiq44 9 ปีที่แล้ว

    Do you know how to make a Pololu servo controller communicate with the beaglebone?

    • @Projectsbb
      @Projectsbb  9 ปีที่แล้ว

      vasiq shair You can use the uarts that come with the beaglebone to talk to the Pololu servo controller. Keep in mind that the beagle bone uses 3.3v as its input and output, so you might need a logic level converter depending on what the controller works on.

  • @rajcodes100
    @rajcodes100 6 ปีที่แล้ว

    Thanks for your Video

  • @siddharthrawat7205
    @siddharthrawat7205 9 ปีที่แล้ว

    hey BBP,
    i want to log analog data from 4 photodiodes which happens to be OPT 101 (Texas instruments, bandwidth= 14 KHz), i tried to log data from Arduino uno be got a low sampling rate of 300 samples/ sec for my 4 analog sensors, and 1kHz if only one sensor is attached to the analog pin (clearly the sampling rate divides if i use more sensors) . I want to at least log the data for my four sensors simultaneously at nearly more than 10 KHz, i just want to know if this is achievable with the BBB.

    • @cmacia06
      @cmacia06 9 ปีที่แล้ว

      Not with the Linux kernel. The sample rate isn't that great. There are real time operating systems that might help you achieve this. Or you can use the programable real time unit the comes built into the CPU. This requires knowing assembly and there are a few tutorials out there to use it but I haven't really gotten there yet.

    • @siddharthrawat7205
      @siddharthrawat7205 9 ปีที่แล้ว

      Christian Macias thanks, but do u have any idea about the maximum sampling rate achievable with BBB, the analog output is a floating no. (upto 4 decimals) if i only want to log for 1 sensor only.

  • @Aemilindore
    @Aemilindore 9 ปีที่แล้ว

    Beaglebone doesn't use its GPU in the AM335X SOC. Its just sitting there doing nothing. All graphics related tasks are processed through the CPU. Which makes the BBB useless as whole mini PC.

    • @Projectsbb
      @Projectsbb  9 ปีที่แล้ว +2

      Elusive Sanity Well, i'm sure that there is a way to make use of it. This hardware needs more developers behind it that are willing to really push it to its limits. This isn't like the raspberry pi, or arduino where everything is baby fed... This is why i love this hardware... because you have almost no limits to its potentials. Not to mention TI is finally helping out.... They are bring the PRU to life :)

    • @Aemilindore
      @Aemilindore 9 ปีที่แล้ว

      Beagle Bone Projects why I am sad is because the fact that GPU is not used anywhere is not mentioned anywhere by any guy who does any tutorial nor in any book. It is not even mentioned in the Beaglebone website. That sounds like cheating.
      People compare the BBBs performance to Raspberry PI without knowing the BBBs GPU has never been used.
      Could you please tell us a method we could put the GPU in the beaglebone to use?

  • @garryrespuesto1957
    @garryrespuesto1957 9 ปีที่แล้ว

    can you make a tutorial on rasperry pi 2 about C++ using your library?

    • @cmacia06
      @cmacia06 9 ปีที่แล้ว

      maybe once I get time off school. Ill push out some videos.

  • @ggnaneswar9714
    @ggnaneswar9714 9 ปีที่แล้ว

    hi sir,
    this is gnaneswar .
    am unable to interfacing and communicating the BBB .
    i'm using linux Mint os without any extra disply,mose n keyboard.
    i used to run the commands on terminal by following u r procedure.
    cd sys/class/gpio/........... here it is showing in the ls (long listing) only export un export . it doesnt have ant gpio 0,gpio1, gpio 2, gpio3 as shown in vedio .
    what shoud i follow for communicating i/o ins.
    thanks in advance.( looking for fast reply .if anybody knows please comment the procedure )

    • @Projectsbb
      @Projectsbb  9 ปีที่แล้ว

      g gnaneswar You need to running a kernel that supports this. What kernel are you running? Check with uname -r

  • @JarppaGuru
    @JarppaGuru 8 ปีที่แล้ว +1

    this was why i dint buy beaglebone it look so complicated, but then i found it can do python same way as raspberry pi

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

    I can't see anything in the console.

  • @ViryARueda
    @ViryARueda 9 ปีที่แล้ว

    Do you know how I can connect a LMT1 directly to the beaglebone black?

    • @Projectsbb
      @Projectsbb  9 ปีที่แล้ว

      No, unfortunately I do not.

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

    Thank you!

  • @moramora5772
    @moramora5772 9 ปีที่แล้ว

    Still uploading videos about BBB please!

    • @Projectsbb
      @Projectsbb  9 ปีที่แล้ว +1

      I will keep it going! As soon as i get my winter vacation I will start uploading!

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

    Can you tell me what is the lowest frequency you can set for PWM ?

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

      Unfortunately I cannot. That is however, my next tutorial. Once I do my research, ill be able to tell you and edit this comment.

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

      thank you, please post a comment so I can get the notification.

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

      I'm not going to be able to get to this video soon. so I haven't been able to find out for you.

    • @xmenxwk
      @xmenxwk 10 ปีที่แล้ว +1

      Alright, if you do please let me know :)