[beagleboard] Re: Reading analog inputs fast in beaglebone black
Hello! Am Dienstag, 16. September 2014 20:50:47 UTC+2 schrieb mahmou...@hotmail.com: I got the following: /usr/bin/ld: cannot find -lncurses collect2: ld returned 1 exit status make: *** [all] Error 1 Install libncurses sudo apt-get install libncurses5-dev I am setting the libpruio library to read from the all the 7 analog pins with a sampling rate of 40KHz at least for each pin. You're help os appreciated. Thanks. The maximum sampling rate is 160 kHz for one step and about 22 kHz for 7 steps (TSC_ADC_SS hardware limitations for software triggered ADC start). -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups BeagleBoard group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[beagleboard] Re: Reading analog inputs fast in beaglebone black
Hello sir, I was following your steps but I got an error in the last step. I created a file in bbb_fbc-0.0.2/FB_prussdrv-0.0/libpruio-0.0.2/libpruio/src/c_wrapper and named it bbb-io.c and pasted the code you wrote. I then created another file named it Makefile and pasted all: bbb-io.c Makefile gcc -Wall -o bbb-io bbb-io.c /usr/local/lib/freebasic/fbrt0.o -lpruio -L/usr/local/lib/freebasic/ -lfb -lpthread -lprussdrv -ltermcap -lsupc++ -Wno-unused-variable in it. after running make command, I got the following: /usr/bin/ld: cannot find -lncurses collect2: ld returned 1 exit status make: *** [all] Error 1 Any ideas how to solve it? I'm running Linux beaglebone 3.8.13-bone50 #1 SMP Tue May 13 13:24:52 UTC 2014 armv7l GNU/Linux on my beaglebone black. I am setting the libpruio library to read from the all the 7 analog pins with a sampling rate of 40KHz at least for each pin. You're help os appreciated. Thanks. On Sunday, June 22, 2014 1:39:56 AM UTC+3, Rafael Vega wrote: Here's what I did: 1. Install FreeBasic compiler in BBB 1.1. Download package from http://www.freebasic-portal.de/downloads/fb-on-arm/bbb-fbc-fbc-fuer-beaglebone-black-283.html wget http://www.freebasic-portal.de/dlfiles/452/bbb_fbc-0.0.2.tar.xz 1.2. Uncompress and copy files cd bbb_fbc-0.0.2 cp usr/local/bin/fbc /usr/local/bin/ cp -R usr/local/lib/freebasic /usr/local/lib/ 2. Install pruss driver kit for freebasic and BBB. 2.1. Download and uncompress package from http://www.freebasic-portal.de/dlfiles/539/FB_prussdrv-0.0.tar.bz2 2.2. Copy files cd FB_prussdrv-0.0 cp bin/libprussdrv.* /usr/local/lib ldconfig mkdir /usr/local/include/freebasic/BBB cp include/* /usr/local/include/freebasic/BBB cp bin/pasm/usr/local/bin cp bin/PRUSSDRV-00A0.dtbo /lib/firmware 2.3. Install am335x-pru-package apt-get install am335x-pru-package 2.4. Activate the PRUSS by enabling the tree overlay. This must be done everytime, after each boot or before running your programs. echo PRUSSDRV /sys/devices/bone_capemgr.9/slots 3. Install libpruio 3.1. Download and uncompress package from http://www.freebasic-portal.de/dlfiles/554/libpruio-0.0.2.tar.bz2 3.2. Copy files cd libpruio-0.0.2 cd src/c_wrapper/ cp libpruio.so /usr/local/lib cp libpruio.a /usr/local/lib ldconfig cd ../pruio/ cp pruio.bi /usr/local/include/freebasic/BBB cp pruio.hp /usr/local/include/freebasic/BBB cp pruio_pins.bi /usr/local/include/freebasic/BBB 4. Here's a simple example C program that uses the library #include stdio.h #include unistd.h #include pruio_c_wrapper.h #include pruio_pins.h int main(int argc, const char *argv[]) { PruIo *io = pruio_new(0, 0x98, 0, 1); if (io-Errr) { printf(Initialisation failed (%s)\n, io-Errr); return 1; } if(pruio_config(io, 0, 0x1FE, 0, 4, 0)){ printf(Config failed (%s)\n, io-Errr); return 1; } int a = 0; int i; while(1){ printf(\r%12o %12o %12o %12o %4X %4X %4X %4X %4X %4X %4X %4X\n, io-Gpio[0].Stat, io-Gpio[1].Stat, io-Gpio[2].Stat, io-Gpio[3].Stat, io-Value[1], io-Value[2], io-Value[3], io-Value[4], io-Value[5], io-Value[6], io-Value[7], io-Value[8]); fflush(STDIN_FILENO); usleep(1000); } pruio_destroy(io); return 0; } 5. To compile it, here's a makefile: all: bbb-io.c Makefile gcc -Wall -o bbb-io bbb-io.c /usr/local/lib/freebasic/fbrt0.o -lpruio -L/usr/local/lib/freebasic/ -lfb -lpthread -lprussdrv -ltermcap -lsupc++ -Wno-unused-variable -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups BeagleBoard group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[beagleboard] Re: Reading analog inputs fast in beaglebone black
Having trouble compiling because I don't have libsupc++, how do I get that on the beagle? On Saturday, June 21, 2014 5:39:56 PM UTC-5, Rafael Vega wrote: Here's what I did: 1. Install FreeBasic compiler in BBB 1.1. Download package from http://www.freebasic-portal.de/downloads/fb-on-arm/bbb-fbc-fbc-fuer-beaglebone-black-283.html wget http://www.freebasic-portal.de/dlfiles/452/bbb_fbc-0.0.2.tar.xz 1.2. Uncompress and copy files cd bbb_fbc-0.0.2 cp usr/local/bin/fbc /usr/local/bin/ cp -R usr/local/lib/freebasic /usr/local/lib/ 2. Install pruss driver kit for freebasic and BBB. 2.1. Download and uncompress package from http://www.freebasic-portal.de/dlfiles/539/FB_prussdrv-0.0.tar.bz2 2.2. Copy files cd FB_prussdrv-0.0 cp bin/libprussdrv.* /usr/local/lib ldconfig mkdir /usr/local/include/freebasic/BBB cp include/* /usr/local/include/freebasic/BBB cp bin/pasm/usr/local/bin cp bin/PRUSSDRV-00A0.dtbo /lib/firmware 2.3. Install am335x-pru-package apt-get install am335x-pru-package 2.4. Activate the PRUSS by enabling the tree overlay. This must be done everytime, after each boot or before running your programs. echo PRUSSDRV /sys/devices/bone_capemgr.9/slots 3. Install libpruio 3.1. Download and uncompress package from http://www.freebasic-portal.de/dlfiles/554/libpruio-0.0.2.tar.bz2 3.2. Copy files cd libpruio-0.0.2 cd src/c_wrapper/ cp libpruio.so /usr/local/lib cp libpruio.a /usr/local/lib ldconfig cd ../pruio/ cp pruio.bi /usr/local/include/freebasic/BBB cp pruio.hp /usr/local/include/freebasic/BBB cp pruio_pins.bi /usr/local/include/freebasic/BBB 4. Here's a simple example C program that uses the library #include stdio.h #include unistd.h #include pruio_c_wrapper.h #include pruio_pins.h int main(int argc, const char *argv[]) { PruIo *io = pruio_new(0, 0x98, 0, 1); if (io-Errr) { printf(Initialisation failed (%s)\n, io-Errr); return 1; } if(pruio_config(io, 0, 0x1FE, 0, 4, 0)){ printf(Config failed (%s)\n, io-Errr); return 1; } int a = 0; int i; while(1){ printf(\r%12o %12o %12o %12o %4X %4X %4X %4X %4X %4X %4X %4X\n, io-Gpio[0].Stat, io-Gpio[1].Stat, io-Gpio[2].Stat, io-Gpio[3].Stat, io-Value[1], io-Value[2], io-Value[3], io-Value[4], io-Value[5], io-Value[6], io-Value[7], io-Value[8]); fflush(STDIN_FILENO); usleep(1000); } pruio_destroy(io); return 0; } 5. To compile it, here's a makefile: all: bbb-io.c Makefile gcc -Wall -o bbb-io bbb-io.c /usr/local/lib/freebasic/fbrt0.o -lpruio -L/usr/local/lib/freebasic/ -lfb -lpthread -lprussdrv -ltermcap -lsupc++ -Wno-unused-variable -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups BeagleBoard group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[beagleboard] Re: Reading analog inputs fast in beaglebone black
Trying to get the libpru stuff to work but it won't compile because I don't have libsupc++. How do I get that on beaglebone using the angstrom distro? On Saturday, May 24, 2014 3:23:32 AM UTC-5, Rafael Vega wrote: I need to read all 7 analog pins in the BBB every 5 milliseconds. I'm doing so with the following C code: void main(){ char value_str[7]; long int value_int = 0; FILE* f0 = fopen(/sys/bus/iio/devices/iio:device0/in_voltage0_raw, r); while(1){ fread(value_str, 6, 6, f0); value_int = strtol(value_str,NULL,0); printf(0 %li\n, value_int); fflush(stdout); usleep(5000); rewind(f0); } Hoever, the cpu usage goes up really high (20%). Is there any way to read the analog inputs differently so that it doesn't use as much CPU? Someone suggested DMA but I'm completely lost on that regard... Any help will be appreciated. -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups BeagleBoard group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[beagleboard] Re: Reading analog inputs fast in beaglebone black
trying to compile the test I get the message: /usr/bin/ld: cannot find -ltermcap can you tell me how can I solve this issue? On Sunday, June 22, 2014 3:39:56 AM UTC+5, Rafael Vega wrote: Here's what I did: 1. Install FreeBasic compiler in BBB 1.1. Download package from http://www.freebasic-portal.de/downloads/fb-on-arm/bbb-fbc-fbc-fuer-beaglebone-black-283.html wget http://www.freebasic-portal.de/dlfiles/452/bbb_fbc-0.0.2.tar.xz 1.2. Uncompress and copy files cd bbb_fbc-0.0.2 cp usr/local/bin/fbc /usr/local/bin/ cp -R usr/local/lib/freebasic /usr/local/lib/ 2. Install pruss driver kit for freebasic and BBB. 2.1. Download and uncompress package from http://www.freebasic-portal.de/dlfiles/539/FB_prussdrv-0.0.tar.bz2 2.2. Copy files cd FB_prussdrv-0.0 cp bin/libprussdrv.* /usr/local/lib ldconfig mkdir /usr/local/include/freebasic/BBB cp include/* /usr/local/include/freebasic/BBB cp bin/pasm/usr/local/bin cp bin/PRUSSDRV-00A0.dtbo /lib/firmware 2.3. Install am335x-pru-package apt-get install am335x-pru-package 2.4. Activate the PRUSS by enabling the tree overlay. This must be done everytime, after each boot or before running your programs. echo PRUSSDRV /sys/devices/bone_capemgr.9/slots 3. Install libpruio 3.1. Download and uncompress package from http://www.freebasic-portal.de/dlfiles/554/libpruio-0.0.2.tar.bz2 3.2. Copy files cd libpruio-0.0.2 cd src/c_wrapper/ cp libpruio.so /usr/local/lib cp libpruio.a /usr/local/lib ldconfig cd ../pruio/ cp pruio.bi /usr/local/include/freebasic/BBB cp pruio.hp /usr/local/include/freebasic/BBB cp pruio_pins.bi /usr/local/include/freebasic/BBB 4. Here's a simple example C program that uses the library #include stdio.h #include unistd.h #include pruio_c_wrapper.h #include pruio_pins.h int main(int argc, const char *argv[]) { PruIo *io = pruio_new(0, 0x98, 0, 1); if (io-Errr) { printf(Initialisation failed (%s)\n, io-Errr); return 1; } if(pruio_config(io, 0, 0x1FE, 0, 4, 0)){ printf(Config failed (%s)\n, io-Errr); return 1; } int a = 0; int i; while(1){ printf(\r%12o %12o %12o %12o %4X %4X %4X %4X %4X %4X %4X %4X\n, io-Gpio[0].Stat, io-Gpio[1].Stat, io-Gpio[2].Stat, io-Gpio[3].Stat, io-Value[1], io-Value[2], io-Value[3], io-Value[4], io-Value[5], io-Value[6], io-Value[7], io-Value[8]); fflush(STDIN_FILENO); usleep(1000); } pruio_destroy(io); return 0; } 5. To compile it, here's a makefile: all: bbb-io.c Makefile gcc -Wall -o bbb-io bbb-io.c /usr/local/lib/freebasic/fbrt0.o -lpruio -L/usr/local/lib/freebasic/ -lfb -lpthread -lprussdrv -ltermcap -lsupc++ -Wno-unused-variable -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups BeagleBoard group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [beagleboard] Re: Reading analog inputs fast in beaglebone black
Am 07.07.2014 08:09, schrieb BBBx: trying to compile the test I get the message: /usr/bin/ld: cannot find -ltermcap can you tell me how can I solve this issue? install libtermcap, it is handel part of * libtinfo-dev or * libncurses-dev http://packages.ubuntu.com/search?searchon=contentskeywords=libtermcapmode=filenamesuite=precisearch=any On Sunday, June 22, 2014 3:39:56 AM UTC+5, Rafael Vega wrote: Here's what I did: 1. Install FreeBasic compiler in BBB 1.1. Download package from http://www.freebasic-portal.de/downloads/fb-on-arm/bbb-fbc-fbc-fuer-beaglebone-black-283.html wget http://www.freebasic-portal.de/dlfiles/452/bbb_fbc-0.0.2.tar.xz 1.2. Uncompress and copy files cd bbb_fbc-0.0.2 cp usr/local/bin/fbc /usr/local/bin/ cp -R usr/local/lib/freebasic /usr/local/lib/ 2. Install pruss driver kit for freebasic and BBB. 2.1. Download and uncompress package from http://www.freebasic-portal.de/dlfiles/539/FB_prussdrv-0.0.tar.bz2 2.2. Copy files cd FB_prussdrv-0.0 cp bin/libprussdrv.* /usr/local/lib ldconfig mkdir /usr/local/include/freebasic/BBB cp include/* /usr/local/include/freebasic/BBB cp bin/pasm/usr/local/bin cp bin/PRUSSDRV-00A0.dtbo /lib/firmware 2.3. Install am335x-pru-package apt-get install am335x-pru-package 2.4. Activate the PRUSS by enabling the tree overlay. This must be done everytime, after each boot or before running your programs. echo PRUSSDRV /sys/devices/bone_capemgr.9/slots 3. Install libpruio 3.1. Download and uncompress package from http://www.freebasic-portal.de/dlfiles/554/libpruio-0.0.2.tar.bz2 3.2. Copy files cd libpruio-0.0.2 cd src/c_wrapper/ cp libpruio.so /usr/local/lib cp libpruio.a /usr/local/lib ldconfig cd ../pruio/ cp pruio.bi /usr/local/include/freebasic/BBB cp pruio.hp /usr/local/include/freebasic/BBB cp pruio_pins.bi /usr/local/include/freebasic/BBB 4. Here's a simple example C program that uses the library #include stdio.h #include unistd.h #include pruio_c_wrapper.h #include pruio_pins.h int main(int argc, const char *argv[]) { PruIo *io = pruio_new(0, 0x98, 0, 1); if (io-Errr) { printf(Initialisation failed (%s)\n, io-Errr); return 1; } if(pruio_config(io, 0, 0x1FE, 0, 4, 0)){ printf(Config failed (%s)\n, io-Errr); return 1; } int a = 0; int i; while(1){ printf(\r%12o %12o %12o %12o %4X %4X %4X %4X %4X %4X %4X %4X\n, io-Gpio[0].Stat, io-Gpio[1].Stat, io-Gpio[2].Stat, io-Gpio[3].Stat, io-Value[1], io-Value[2], io-Value[3], io-Value[4], io-Value[5], io-Value[6], io-Value[7], io-Value[8]); fflush(STDIN_FILENO); usleep(1000); } pruio_destroy(io); return 0; } 5. To compile it, here's a makefile: all: bbb-io.c Makefile gcc -Wall -o bbb-io bbb-io.c /usr/local/lib/freebasic/fbrt0.o -lpruio -L/usr/local/lib/freebasic/ -lfb -lpthread -lprussdrv -ltermcap -lsupc++ -Wno-unused-variable -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups BeagleBoard group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [beagleboard] Re: Reading analog inputs fast in beaglebone black
Thank you. It works. On Monday, July 7, 2014 2:15:55 PM UTC+5, wharms wrote: Am 07.07.2014 08:09, schrieb BBBx: trying to compile the test I get the message: /usr/bin/ld: cannot find -ltermcap can you tell me how can I solve this issue? install libtermcap, it is handel part of * libtinfo-dev or * libncurses-dev http://packages.ubuntu.com/search?searchon=contentskeywords=libtermcapmode=filenamesuite=precisearch=any On Sunday, June 22, 2014 3:39:56 AM UTC+5, Rafael Vega wrote: Here's what I did: 1. Install FreeBasic compiler in BBB 1.1. Download package from http://www.freebasic-portal.de/downloads/fb-on-arm/bbb-fbc-fbc-fuer-beaglebone-black-283.html wget http://www.freebasic-portal.de/dlfiles/452/bbb_fbc-0.0.2.tar.xz 1.2. Uncompress and copy files cd bbb_fbc-0.0.2 cp usr/local/bin/fbc /usr/local/bin/ cp -R usr/local/lib/freebasic /usr/local/lib/ 2. Install pruss driver kit for freebasic and BBB. 2.1. Download and uncompress package from http://www.freebasic-portal.de/dlfiles/539/FB_prussdrv-0.0.tar.bz2 2.2. Copy files cd FB_prussdrv-0.0 cp bin/libprussdrv.* /usr/local/lib ldconfig mkdir /usr/local/include/freebasic/BBB cp include/* /usr/local/include/freebasic/BBB cp bin/pasm/usr/local/bin cp bin/PRUSSDRV-00A0.dtbo /lib/firmware 2.3. Install am335x-pru-package apt-get install am335x-pru-package 2.4. Activate the PRUSS by enabling the tree overlay. This must be done everytime, after each boot or before running your programs. echo PRUSSDRV /sys/devices/bone_capemgr.9/slots 3. Install libpruio 3.1. Download and uncompress package from http://www.freebasic-portal.de/dlfiles/554/libpruio-0.0.2.tar.bz2 3.2. Copy files cd libpruio-0.0.2 cd src/c_wrapper/ cp libpruio.so /usr/local/lib cp libpruio.a /usr/local/lib ldconfig cd ../pruio/ cp pruio.bi /usr/local/include/freebasic/BBB cp pruio.hp /usr/local/include/freebasic/BBB cp pruio_pins.bi /usr/local/include/freebasic/BBB 4. Here's a simple example C program that uses the library #include stdio.h #include unistd.h #include pruio_c_wrapper.h #include pruio_pins.h int main(int argc, const char *argv[]) { PruIo *io = pruio_new(0, 0x98, 0, 1); if (io-Errr) { printf(Initialisation failed (%s)\n, io-Errr); return 1; } if(pruio_config(io, 0, 0x1FE, 0, 4, 0)){ printf(Config failed (%s)\n, io-Errr); return 1; } int a = 0; int i; while(1){ printf(\r%12o %12o %12o %12o %4X %4X %4X %4X %4X %4X %4X %4X\n, io-Gpio[0].Stat, io-Gpio[1].Stat, io-Gpio[2].Stat, io-Gpio[3].Stat, io-Value[1], io-Value[2], io-Value[3], io-Value[4], io-Value[5], io-Value[6], io-Value[7], io-Value[8]); fflush(STDIN_FILENO); usleep(1000); } pruio_destroy(io); return 0; } 5. To compile it, here's a makefile: all: bbb-io.c Makefile gcc -Wall -o bbb-io bbb-io.c /usr/local/lib/freebasic/fbrt0.o -lpruio -L/usr/local/lib/freebasic/ -lfb -lpthread -lprussdrv -ltermcap -lsupc++ -Wno-unused-variable -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups BeagleBoard group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[beagleboard] Re: Reading analog inputs fast in beaglebone black
Cool, Thanks for the info. When I have some more time i will try it out. Regards, Ben -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups BeagleBoard group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[beagleboard] Re: Reading analog inputs fast in beaglebone black
Hi, a maybee stupid question regarding this howto: What kernel version is needed for this to work? How to build kernel for pruss support? Or is the dtbo file doing all the magic? Reagrds, Ben Am Dienstag, 24. Juni 2014 16:17:16 UTC+2 schrieb Rafael Vega: thanks for your complete installation instructions. I plan to include them in the next version of the documentation, if you don't mind (at least I like to add a link to your post here). Of course I don't mind, go ahead and include it :) -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups BeagleBoard group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[beagleboard] Re: Reading analog inputs fast in beaglebone black
Hi Ben! Am Mittwoch, 25. Juni 2014 14:36:30 UTC+2 schrieb family...@googlemail.com: Or is the dtbo file doing all the magic? The dtbo file is pretty simple. It only powers on the PRUSS. Here's the dts file to compile: /* Minimal device tree overlay to activate PRUSS Licence: GPLv3 (C) 2014 by Thomas{ DoT ]Freiherr[ aT ]gmx[ dOt }net compile with dtc -O dtb -o PRUSSDRV-00A0.dtbo -b 0 -@ PRUSSDRV.dts */ /dts-v1/; / { compatible = ti,beaglebone, ti,beaglebone-black; part-number = PRUSSDRV; version = 00A0; fragment@0{ target = pruss; __overlay__ { status = okay; }; }; }; All that 'magic' comes with the libpruio binary. Am Mittwoch, 25. Juni 2014 14:36:30 UTC+2 schrieb family...@googlemail.com: What kernel version is needed for this to work? How to build kernel for pruss support? libpruio contains - ARM software as user interface (can get compiled on every kernel version) - PRU software to control the hardware (for ARM33xx CPU family) So can use any kernel version. (I build the binary on 3.8.13-bone37.) -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups BeagleBoard group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[beagleboard] Re: Reading analog inputs fast in beaglebone black
thanks for your complete installation instructions. I plan to include them in the next version of the documentation, if you don't mind (at least I like to add a link to your post here). Of course I don't mind, go ahead and include it :) -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups BeagleBoard group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[beagleboard] Re: Reading analog inputs fast in beaglebone black
Hello Rafael, thanks for your complete installation instructions. I plan to include them in the next version of the documentation, if you don't mind (at least I like to add a link to your post here). BTW: In your C code example the destructor pruio_destroy() wont be called in case of an error. This means that the devices wont be restored to their original states. -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups BeagleBoard group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[beagleboard] Re: Reading analog inputs fast in beaglebone black
Rafael, Can you please post detailed instructions on installing libruio. Thanks Srikant On Thursday, June 12, 2014 3:25:49 PM UTC-5, Rafael Vega wrote: I ended up using libpruio, the installation instrucions are kind of scattered but it works really well. Thanks! -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups BeagleBoard group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [beagleboard] Re: Reading analog inputs fast in beaglebone black
I can take the time to do so tomorrow. Stay tuned :) On Wed, Jun 18, 2014 at 12:06 PM, srikch...@gmail.com wrote: Rafael, Can you please post detailed instructions on installing libruio. Thanks Srikant On Thursday, June 12, 2014 3:25:49 PM UTC-5, Rafael Vega wrote: I ended up using libpruio, the installation instrucions are kind of scattered but it works really well. Thanks! -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to a topic in the Google Groups BeagleBoard group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/9NYdGWOT_Mg/unsubscribe. To unsubscribe from this group and all its topics, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Rafael Vega email.r...@gmail.com -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups BeagleBoard group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[beagleboard] Re: Reading analog inputs fast in beaglebone black
Thanks for feedback. Feel free to mail your suggested improvements for the installation instructions. -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups BeagleBoard group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[beagleboard] Re: Reading analog inputs fast in beaglebone black
I ended up using libpruio, the installation instrucions are kind of scattered but it works really well. Thanks! -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups BeagleBoard group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[beagleboard] Re: Reading analog inputs fast in beaglebone black
Thanks everyone for your replies! I will spend friday and saturday experimenting and will report back here with my findings and probably more questions :) -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups BeagleBoard group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[beagleboard] Re: Reading analog inputs fast in beaglebone black
Check out libpruio http://www.beagleboard.org/project/libpruio/. It makes a PRUSS fetching ADC data. Using default ADC settings you get 10 ksamples per channel, so ~1.4 ksamples for 7 channels (0.7 ms). Additionally you can customize the ADC settings (open- and sample delay, as well as averaging) to optimize for your purposes. -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups BeagleBoard group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.