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.
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!
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.
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.
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.
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.
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
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!
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 )
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.
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.
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 :)
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?
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!
thanks to share precious information
about how not to overload the BBB
and about the Derek Molloy important information (Y)
Thanks for watching! He has great resources! I just put it all in a quick/detailed video.
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.
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!
It would be good if you explain about calculation (32 x 1 ) + 28
Will those commands work fyn on Angstrom distribution??
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.
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.
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.
Do you know how I can connect a LMT1 directly to the beaglebone black?
No, unfortunately I do not.
Do you know how to make a Pololu servo controller communicate with the beaglebone?
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.
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
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!
Can you tell me what is the lowest frequency you can set for PWM ?
Unfortunately I cannot. That is however, my next tutorial. Once I do my research, ill be able to tell you and edit this comment.
thank you, please post a comment so I can get the notification.
I'm not going to be able to get to this video soon. so I haven't been able to find out for you.
Alright, if you do please let me know :)
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 )
g gnaneswar You need to running a kernel that supports this. What kernel are you running? Check with uname -r
can you make a tutorial on rasperry pi 2 about C++ using your library?
maybe once I get time off school. Ill push out some videos.
Thanks for your Video
this was why i dint buy beaglebone it look so complicated, but then i found it can do python same way as raspberry pi
Still uploading videos about BBB please!
I will keep it going! As soon as i get my winter vacation I will start uploading!
thank you very much..
Your welcome! Thanks for watching!
Thank you!
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.
I can't see anything in the console.
Its oobuntu
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.
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 :)
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?