Re: [beagleboard] Reading analog in on the stretch (9.1) images
It sounds like I can either have a Blue that boots as a robot, or boots as an embedded processor, but not both at the same time. I need to see what it would take to remove the ADC from the robots control. --Mark On Tuesday, August 1, 2017 at 4:57:09 PM UTC-4, Hugh Briggs wrote: > > I have lived on BBB + Robotics Cape in James' world for some time. While I > haven't done this with a Blue, I suspect what I did can work there too. I > did do his installation (for a Rev C BBB and a Rev D Robotics Cape). With > Robert's help I put the Capemgr back in the DTs and added the capemgr > partno boot line for BB-ADC. This seems to be a workable combination of > the two worlds. My premise is that I don't try to do both at once. That > is, I don't run any of the rc_* apps or services while trying to read the > ADCs from /sys/bus/iio. So far it seems to work for me. > Hugh > > On Monday, July 31, 2017 at 11:44:09 AM UTC-7, Mark A. Yoder wrote: > >> Yup, this is the Blue. >> In there short term is there an easy way to turn off the robotics stuff >> and get easy access to the analog in? >> >> In the long term, what will it take to convert James' robot stuff to >> libiio? I might take a shot at it if it isn't too hard. >> >> --Mark >> >> On Friday, July 28, 2017 at 5:56:30 PM UTC-4, RobertCNelson wrote: >>> >>> On Fri, Jul 28, 2017 at 4:40 PM, Mark A. Yoder>>> wrote: >>> > How do I read AIN on the latest images? I don't know where to find it >>> in >>> > /sys/ >>> >>> Hi Mark, >>> >>> This is with the Blue right? >>> >>> James' got the ADC tied up in mmap for the Robotic's cape library.. >>> >>> >>> https://github.com/StrawsonDesign/Robotics_Cape_Installer/blob/master/libraries/mmap/rc_mmap_gpio_adc.c >>> >>> >>> We need to convert his library to use libiio, then we can just enable >>> the ADC's as an iio device and share usage with the library.. >>> >>> https://analogdevicesinc.github.io/libiio/ >>> >>> Regards, >>> >>> -- >>> Robert Nelson >>> https://rcn-ee.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. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/21c5fd9a-8961-4c81-a2f9-65e953512ee5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [beagleboard] Reading analog in on the stretch (9.1) images
I have lived on BBB + Robotics Cape in James' world for some time. While I haven't done this with a Blue, I suspect what I did can work there too. I did do his installation (for a Rev C BBB and a Rev D Robotics Cape). With Robert's help I put the Capemgr back in the DTs and added the capemgr partno boot line for BB-ADC. This seems to be a workable combination of the two worlds. My premise is that I don't try to do both at once. That is, I don't run any of the rc_* apps or services while trying to read the ADCs from /sys/bus/iio. So far it seems to work for me. Hugh On Monday, July 31, 2017 at 11:44:09 AM UTC-7, Mark A. Yoder wrote: > Yup, this is the Blue. > In there short term is there an easy way to turn off the robotics stuff > and get easy access to the analog in? > > In the long term, what will it take to convert James' robot stuff to > libiio? I might take a shot at it if it isn't too hard. > > --Mark > > On Friday, July 28, 2017 at 5:56:30 PM UTC-4, RobertCNelson wrote: >> >> On Fri, Jul 28, 2017 at 4:40 PM, Mark A. Yoder>> wrote: >> > How do I read AIN on the latest images? I don't know where to find it >> in >> > /sys/ >> >> Hi Mark, >> >> This is with the Blue right? >> >> James' got the ADC tied up in mmap for the Robotic's cape library.. >> >> >> https://github.com/StrawsonDesign/Robotics_Cape_Installer/blob/master/libraries/mmap/rc_mmap_gpio_adc.c >> >> >> We need to convert his library to use libiio, then we can just enable >> the ADC's as an iio device and share usage with the library.. >> >> https://analogdevicesinc.github.io/libiio/ >> >> Regards, >> >> -- >> Robert Nelson >> https://rcn-ee.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. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/e2d3829f-6af9-4c00-b63d-4ec891db2be7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [beagleboard] Reading analog in on the stretch (9.1) images
Yup, this is the Blue. In there short term is there an easy way to turn off the robotics stuff and get easy access to the analog in? In the long term, what will it take to convert James' robot stuff to libiio? I might take a shot at it if it isn't too hard. --Mark On Friday, July 28, 2017 at 5:56:30 PM UTC-4, RobertCNelson wrote: > > On Fri, Jul 28, 2017 at 4:40 PM, Mark A. Yoder> wrote: > > How do I read AIN on the latest images? I don't know where to find it > in > > /sys/ > > Hi Mark, > > This is with the Blue right? > > James' got the ADC tied up in mmap for the Robotic's cape library.. > > > https://github.com/StrawsonDesign/Robotics_Cape_Installer/blob/master/libraries/mmap/rc_mmap_gpio_adc.c > > > We need to convert his library to use libiio, then we can just enable > the ADC's as an iio device and share usage with the library.. > > https://analogdevicesinc.github.io/libiio/ > > Regards, > > -- > Robert Nelson > https://rcn-ee.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. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/c9f28bd5-8cb7-40ff-9873-539ee8da3b3a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [beagleboard] Reading analog in on the stretch (9.1) images
On Fri, Jul 28, 2017 at 3:18 PM, evilwulfiewrote: > Shame on him. > Just for the record,I did not write that. Ethon Hayon did back in 2012, I'm thinking probably for the white. Same hardware though . . . I know this, because I have a duplicate of his repo on my git, but it was an excellent learning tool. However, no one in their right mind, is going to map the whole hardware address space into memory, UNLESS they were doing exactly what Ethon was doing in his project. Which was making a general purpose "library" to access any GPIO pin, and ADC's. SO when you see something like this: map[(ADCSTEPCONFIG1-MMAP_OFFSET)/4] = 0x00<<19 | ADC_AVG8 | ADC_SW_ONESHOT; Versus map[(ADCSTEPCONFIG1-MMAP_OFFSET)/4] = 0x00<<19 | ADC_AVG16; Obvious copy paste ripoff. Anyway I'm not saying no one can use Ethon's code, I'm saying if you're obviously copy pasting code from his repo, you need to give him credit for it. No matter how much you butcher / move stuff around. -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CALHSORq0qqAKn%3DXvzCD9GhbxKygjgcY0aRGgV-oT8w9LUypgGw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [beagleboard] Reading analog in on the stretch (9.1) images
On Fri, Jul 28, 2017 at 2:55 PM, Robert Nelsonwrote: > On Fri, Jul 28, 2017 at 4:40 PM, Mark A. Yoder > wrote: > > How do I read AIN on the latest images? I don't know where to find it in > > /sys/ > > Hi Mark, > > This is with the Blue right? > > James' got the ADC tied up in mmap for the Robotic's cape library.. > > https://github.com/StrawsonDesign/Robotics_Cape_Installer/blob/master/ > libraries/mmap/rc_mmap_gpio_adc.c > > We need to convert his library to use libiio, then we can just enable > the ADC's as an iio device and share usage with the library.. > > https://analogdevicesinc.github.io/libiio/ > > Regards, > That's just swell, as Strawson didn't write that code either, and gave no attribution to whom did. https://github.com/wphermans/BeagleBone-GPIO/blob/master/src/gpio.c -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CALHSORrWDmBgzu8a3h_6g9w0jo4GO_LPezBV1hvk8Cy3g-oEeA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [beagleboard] Reading analog in on the stretch (9.1) images
On Fri, Jul 28, 2017 at 4:40 PM, Mark A. Yoderwrote: > How do I read AIN on the latest images? I don't know where to find it in > /sys/ Hi Mark, This is with the Blue right? James' got the ADC tied up in mmap for the Robotic's cape library.. https://github.com/StrawsonDesign/Robotics_Cape_Installer/blob/master/libraries/mmap/rc_mmap_gpio_adc.c We need to convert his library to use libiio, then we can just enable the ADC's as an iio device and share usage with the library.. https://analogdevicesinc.github.io/libiio/ Regards, -- Robert Nelson https://rcn-ee.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. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYgNvooGqWxe3Ya2J%3Dm8GF4-dpitJBGWR%2BYemmCWHGHtmw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[beagleboard] Reading analog in on the stretch (9.1) images
How do I read AIN on the latest images? I don't know where to find it in /sys/ --Mark -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/1c80195e-a89e-4b6d-88f6-cd81ea3d67b8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.