Hi William, Finally I got times to try out your post and have to admit, very precise instructions!! :-) coming to technical point, I have following queries.
1) This program samples only 1 ADC correct? involtage0_raw To extend it for all 7 channels woudl I have to create 7 such pointers, correct? 2) this is Ti rt kernel, is it same as TI-RTOS? and if not, where can I find it's APIs? 3) This kernel has completely new structure, so now my PRUs are completely unusable :-) any suggestions? initially it was accessible by "/sys/devices/bone_capemgr.*/slots" which now doesn't exist!! 4) Is your existing code able to reach 3K sample speed? if not can you suggest changes for that? Sorry for such a long list of queries.. Sincerely, Rathin :-) On Friday, October 2, 2015 at 1:31:34 AM UTC+5:30, William Hermans wrote: > > *So yeah, I will try out your steps and let you know, but I have one >> assignment hence bit stuck with it.. please give me a day to try out...* > > > No big hurry. I was just putting that out there in case you wanted to > experiment with it. I think for your end goal, needing 20Khz, what I > propose is a dead end. However I still think it is a good learning > experience, and perhaps useful for other things. 2.5k-3k samples a second > is still pretty good. Just not for your end goal. > > On Thu, Oct 1, 2015 at 12:36 PM, William Hermans <yyr...@gmail.com > <javascript:>> wrote: > >> Well, using the ADC from userspace as I've shown in that post should be >> able achieve ~3k samples a second. Using Continuous mode, I've read up to >> around 10k. >> >> Also, I happened upon DR Molloy's companion site for the "exploring the >> Beaglebone" book >> , and noticed he demonstrates using a couple of different external ADC's >> through the PRU's. One @100k, the other at ( I think he said ) just above >> 1msps. Where then the PRU's were approaching their max speed I guess. >> Anyway, it's neat to read about, but for me, I think userspace one-shot >> mode will be plenty. Even when experimenting with MPPT charge controlling >> on our solar system here. >> >> On Thu, Oct 1, 2015 at 12:08 PM, Rathin Dholakia <rathind...@gmail.com >> <javascript:>> wrote: >> >>> Cool, Thanks a lot, William..!! >>> >>> >>> And one good news, first of all for me (of course) but for you and TJF >>> as well. Its that I talked with my professor and we have agreed that its ok >>> *for now* if our sampling rate is low around 1.2 KHz or so no hassle of >>> external ICs and stuff at least for now... later on I can refine + Update >>> my implementation as I gain momentum.. :-) >>> >>> So yeah, I will try out your steps and let you know, but I have one >>> assignment hence bit stuck with it.. please give me a day to try out... >>> >>> Sincerely, >>> Rathin >>> >>> On Friday, October 2, 2015 at 12:27:40 AM UTC+5:30, William Hermans >>> wrote: >>>> >>>> Here you go Rathin, something to experiment with in the future. >>>> http://www.embeddedhobbyist.com/2015/10/beaglebone-black-adc-getting-started/ >>>> >>>> I need to edit the post and add the packages needed in order to compile >>>> the demonstration executable with gcc, but that is not too much of a >>>> hurdle. *sudo apt-get install build-essential* should take care of >>>> that. >>>> >>>> On Thu, Oct 1, 2015 at 9:54 AM, William Hermans <yyr...@gmail.com> >>>> wrote: >>>> >>>>> Agreed. >>>>> >>>>> On Thu, Oct 1, 2015 at 9:33 AM, Rathin Dholakia <rathind...@gmail.com> >>>>> wrote: >>>>> >>>>>> Gentleman, >>>>>> I know I am in no capacity to say anything to both of you coz you >>>>>> both are great in own field. So I just want to request you that, *please >>>>>> calm down*. >>>>>> >>>>>> and >>>>>> >>>>>> Sorry I was busy whole day so couldn't experiment what you suggested, >>>>>> TJF . But I will do it now and will post my response or queries. >>>>>> >>>>>> but please Calm down.. >>>>>> >>>>>> On Wednesday, September 30, 2015 at 1:46:06 AM UTC+5:30, Rathin >>>>>> Dholakia wrote: >>>>>>> >>>>>>> Dear Community Members, >>>>>>> >>>>>>> I am trying to implement a fast 8 channel Analog capture using on >>>>>>> board ADC on BBB. I know there are only 7 available on pin header, but >>>>>>> as I >>>>>>> am starting off & learning I am ok with count of 7. :) >>>>>>> >>>>>>> I just wanted to have an opinion about the approach to opt for, What >>>>>>> would be the most optimum (& preferably faster to implement) option to >>>>>>> achieve it? >>>>>>> >>>>>>> I have read quite a few articles and thread (& more confused ) and >>>>>>> currently I am using libpruio >>>>>>> <http://beagleboard.org/project/libpruio/> for implementing it but >>>>>>> as of now even after configuring libpruio I am only getting 900 - 1000 >>>>>>> samples per seconds. >>>>>>> >>>>>>> So, is it my configuration wrong or for such high speed I should opt >>>>>>> for external ADC? or something else? >>>>>>> >>>>>>> I am completely NEW to EMBEDDED domain. So please pardon me. >>>>>>> >>>>>>> It would be great if someone could guide me, precisely towards some >>>>>>> direction. >>>>>>> >>>>>>> Sincerely, >>>>>>> Rathin >>>>>>> >>>>>> -- >>>>>> 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...@googlegroups.com. >>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>> >>>>> >>>>> >>>> -- >>> 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...@googlegroups.com <javascript:>. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> > -- 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.