ADC Pins on BeagleBone Black

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024
  • Learn how to read analog data! ADC. The Beagle Bone Black can read analog data and convert it to digital using the built in ADC. This can be helpful when all you have to work with are analog sensors and many other situation that you find yourself using analog data. Ubuntu.
    We use bone cape manager to activate the device trees. For more information about the bone cape manager check out this page. projectsbb.com/...
    In this project we use an LED to sense light that is being emitted. An LED generates a voltage (hardly usable) and is related to the light being received. Using this property we can tell how much light there is "digitally" by seeing the values returned from the chosen AIN pin.
    As discovered by TH-cam user Mahmoud Al-Ashi, the ADC pins can only read a maximum of 200KHz under optimal conditions(Running over an operating system).
    Website used:
    beaglebone.came...
    www.projectsbb.com
    Camera:
    Make: GOPRO
    Model: Hero 3 White
    Resolution: 1920x1080

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

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

    Hello sir,
    When i used ^^ find-iname "AIN*" ^^ command,i didn't find any files.What is my problem ?

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

    Please, How can I read 0-4096 (12bit), instead 0-1800mv ...?

  • @David-gj2sl
    @David-gj2sl 7 ปีที่แล้ว

    i could not find bone_capemgr when i typed cd /sys/devices
    Also i dont have ocp.3 and helper.15, are they pre-existing files on the beaglebone or do I have to download them?

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

    This is awesome by the way, thanks!

  • @112xh
    @112xh 8 ปีที่แล้ว

    I dont get it , why do we choose the number 9 specifically after capemgr ??

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

      +mahmoud zidane it is different every time. It's arbitrarily assigned.

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

    you can ssh directly as root from the terminal;
    ssh root@192.168.7.2

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

      Thanks for the tip!! What is the password to access root user through ssh?

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

      If there are no previous users then there shouldn't be one. If there is a user with a password already I'm not sure you can directly ssh as root.

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

      Thank you!

  • @mahmoudal-ashi9793
    @mahmoudal-ashi9793 10 ปีที่แล้ว

    Hello sir. Any luck with increasing the sampling rate yet? Thanks

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

      No sir, I've been stuck with school work.

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

      Hello +Mahmoud, have you been able to get a fast sample rate?

    • @mahmoudal-ashi9793
      @mahmoudal-ashi9793 9 ปีที่แล้ว

      Beagle Bone Projects Yes sir. I used a library called BBBIOlib. this is a direct link for the library on github: github.com/VegetableAvenger/BBBIOlib . Please refer to the "Demo/Demo_ADC" folder in the library. Read the "ReadMe" file for more info.

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

      Mahmoud Al-Ashi well the reason I asked was because I was sampling at rate much fast than what you mentioned. I was going to ask what kernel you were on.

    • @mahmoudal-ashi9793
      @mahmoudal-ashi9793 9 ปีที่แล้ว

      Beagle Bone Projects I am using the Debian 4.6.3-14. What about you? And what language did you use?

  • @mahmoudal-ashi9793
    @mahmoudal-ashi9793 10 ปีที่แล้ว

    Hello sir, I wanted to ask you about how to increase the sampling rate. if you type the following command: time cat /sys/devices/ocp.3/helper/15/AIN0 you will get the real time to execute the command. The result will be approximately equal to 50ms! which means that I can only take 20 samples per second. How can I increase the sampling rate to become something near MHz?? Thanks in advance.

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

      You could create a program. The AIN pin is capable of a 125ns sample rate. I'll cite this later. This mean that your capable of 8MHz. I am currently making a program that reads the AIN pins. I'll make a program on the side to test this and let you know. The cat program may take longer to read the pin thereby slowing down the max sample rate. Its okay for just reading the pin at slow rate.

    • @mahmoudal-ashi9793
      @mahmoudal-ashi9793 10 ปีที่แล้ว

      Beagle Bone Projects May you sir please refer to this question on stackoverflow.com stackoverflow.com/questions/25796901/increase-beaglebone-black-adc-sampling-rate? I posted this yesterday. In the question I discuss several codes using terminal, python and javascript. Non of them gave me a sampling rate in the MHZ, only a few kilo sample/ second as a max. Please help me. Thanks in advance.

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

      Thank you for the thread you posted on Stack Overflow! I read the reply and was actually unaware of the OS interfering with the sample time (Probably something I should have known...). I code in C but never had to sample something more the 4 or 5 times per second. I will add this in my video for future reference. Also if you achieve the sample rate you were looking for before I can find the best solution, post a comment here and ill add it to my future video and give you credit.

    • @mahmoudal-ashi9793
      @mahmoudal-ashi9793 10 ปีที่แล้ว

      Beagle Bone Projects Sure sir, If I get any updates I will inform you. So far I'm stuck on a 1KHz!

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

      Mahmoud Al-Ashi If i may ask. What is it that you are trying do with the adc?

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

    Just so you know you can login to the BBB directly as root by doing: ssh root@192.168.7.2 -l root