Тёмный

How to use GPIO pins on the Beaglebone Black 

MP Projects
Подписаться 903
Просмотров 41 тыс.
50% 1

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/?page_id=68
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/beaglebone/beag...

Наука

Опубликовано:

 

17 мар 2014

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 42   
@hichemchtara6327
@hichemchtara6327 9 лет назад
thanks to share precious information about how not to overload the BBB and about the Derek Molloy important information (Y)
@Projectsbb
@Projectsbb 9 лет назад
Thanks for watching! He has great resources! I just put it all in a quick/detailed video.
@d74g0n
@d74g0n 9 лет назад
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!
@rajcodes100
@rajcodes100 5 лет назад
Thanks for your 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!
@derkonig1545
@derkonig1545 9 лет назад
Thank you!
@deepikadk7278
@deepikadk7278 4 года назад
It would be good if you explain about calculation (32 x 1 ) + 28
@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.
@harshadj13
@harshadj13 8 лет назад
Will those commands work fyn on Angstrom distribution??
@31prabowo
@31prabowo 10 лет назад
thank you very much..
@Projectsbb
@Projectsbb 10 лет назад
Your welcome! Thanks for watching!
@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 лет назад
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!
@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.
@garryrespuesto1957
@garryrespuesto1957 8 лет назад
can you make a tutorial on rasperry pi 2 about C++ using your library?
@cmacia06
@cmacia06 8 лет назад
maybe once I get time off school. Ill push out some videos.
@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.
@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.
@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
@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 лет назад
Alright, if you do please let me know :)
@itubal
@itubal 8 лет назад
I can't see anything in the console.
@moramora5772
@moramora5772 9 лет назад
Still uploading videos about BBB please!
@Projectsbb
@Projectsbb 9 лет назад
I will keep it going! As soon as i get my winter vacation I will start uploading!
@JarppaGuru
@JarppaGuru 8 лет назад
this was why i dint buy beaglebone it look so complicated, but then i found it can do python same way as raspberry pi
@dako2117
@dako2117 9 лет назад
Its oobuntu
@annaoaulinovna
@annaoaulinovna 6 лет назад
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.
@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 лет назад
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?
Далее
Ouch.. 🤕
00:30
Просмотров 7 млн
BeagleBone Black VS Raspberry Pi!
7:05
Просмотров 367 тыс.
BeagleBone Black specs | Just Board
5:08
Просмотров 11 тыс.
Getting Started with the Beagle Bone Black
14:15
Просмотров 287 тыс.
Breadboarding tips
20:16
Просмотров 425 тыс.
How-To: Get Started with the BeagleBone
6:22
Просмотров 117 тыс.
📱магазин техники в 2014 vs 2024
0:41