I got you. my IOIO is connected over BT and I have also potentiomter GND and pin31 analog.I implemented it as a service and can control the board (LED is on\off and I see value in analog input) but now I am struggling with transferring data (one value for now) from the service to my activity via BroadcastReceiver. I am sending an intent from the loop function in the service but my reciever is null.. Do you have any input about this issue to help me? Thanks!
בתאריך יום ראשון, 5 באפריל 2015 בשעה 00:08:49 UTC+3, מאת Ytai: > > I think you're missing the point of how IOIO applications are written. All > the IOIOConnection classes are completely internal and your app is not > supposed to interact with them. If you write your app along the lines of > how the sample applications are written, it will automagically work over > either USB or Bluetooth without you having to do anything other than making > sure IOIOLibBT, IOIOLibAccessory, etc are being linked into your project. > On Apr 4, 2015 1:31 PM, "lilach azrad" <[email protected] <javascript:>> > wrote: > >> my "instance" of IOIO was created by BluetoothIOIOConnection, but this >> class doesnt contain any openAnalogInput function. >> I think I am missing something here. I see this function in IOIO class. >> How do I connect them to one object??? >> >> in SimpleIOIOApp\HelloIOIO I dont see any BT connection... >> >> >> בתאריך יום שבת, 4 באפריל 2015 בשעה 21:30:42 UTC+3, מאת Ytai: >>> >>> In what way can you not open an analog pin? >>> You shouldn't create another instance of IOIO other than the one that is >>> created for you by the application framework. Have you looked at >>> SimpleIOIOApp and understood how it works? Can you run HelloIOIO >>> (precompiled? self-compiled?)? Have you looked at the logcat output of your >>> app? >>> >>> On Sat, Apr 4, 2015 at 8:52 AM, lilach azrad <[email protected]> wrote: >>> >>>> OK thanks >>>> I managed to connect IOIO by BT, but how do I transfer the analog >>>> samples via BT to my Android device? >>>> I cant even open an analog pin ( openAnalogInput ) after connecting >>>> with BluetoothIOIOConnection class, >>>> should I add another instance of IOIO? >>>> >>>> בתאריך יום רביעי, 1 באפריל 2015 בשעה 00:33:11 UTC+3, מאת Ytai: >>>>> >>>>> You write a piece of software that uses the IOIO API for reading the >>>>> samples, as in: >>>>> https://github.com/ytai/ioio/wiki/Analog-Input >>>>> You probably want the buffered version. >>>>> >>>>> On the hardware side of things, this can be as simple as connecting >>>>> your probes between GND and the analog pin, or could get slightly more >>>>> complicated if your signal is not between 0-3.3V, or you want higher >>>>> input >>>>> impedance or floating GND, etc. >>>>> >>>>> On Tue, Mar 31, 2015 at 1:44 PM, lilach azrad <[email protected]> >>>>> wrote: >>>>> >>>>>> Thanks. >>>>>> Maybe a question of ignorance :\ >>>>>> How do I get the samples from the analog input? what should be >>>>>> connected physically besides the BT and power cable 5V-15V? >>>>>> tried to understand from internet but nothing, hardware is not my >>>>>> strongest side >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> בתאריך יום רביעי, 4 בפברואר 2015 בשעה 22:01:23 UTC+2, מאת Ytai: >>>>>>> >>>>>>> Some links, courtesy of Google Search: >>>>>>> http://www.dash.co.il/index.php?route=product/product&produc >>>>>>> t_id=2511 >>>>>>> https://www.4project.co.il/product/ioio-otg >>>>>>> http://www.or-e.co.il/ioio-otg.html >>>>>>> >>>>>>> Ordering from Seeed might save you some $$$, on expense of some >>>>>>> longer shipping time. >>>>>>> >>>>>>> On Wed, Feb 4, 2015 at 11:44 AM, lilach azrad <[email protected]> >>>>>>> wrote: >>>>>>> >>>>>>>> Thanks! its good enough for my project. >>>>>>>> There is any distributor in Israel of this IOIO component? >>>>>>>> if the answer is no - this link is ok? (I saw a 2 types) >>>>>>>> http://www.seeedstudio.com/depot/IOIO-OTG-for-Android-p-1615.html >>>>>>>> >>>>>>>> בתאריך יום שלישי, 3 בפברואר 2015 בשעה 23:27:53 UTC+2, מאת Ytai: >>>>>>>>> >>>>>>>>> Do you have any specifications about the desired sample rate? >>>>>>>>> number of channels? voltage range? precision? >>>>>>>>> >>>>>>>>> The (stock) IOIO can do up to 16 concurrent channels at 1kHz each, >>>>>>>>> 10-bit resolution, where each channel is 0-3.3V. With some firmware >>>>>>>>> tweaks >>>>>>>>> you can increase the sampling rate, and even more so if you're >>>>>>>>> willing to >>>>>>>>> trade-off the number of channels. If you want different voltage >>>>>>>>> levels, >>>>>>>>> you'd need some analog front-end. If you need higher resolution, you >>>>>>>>> can >>>>>>>>> use an external ADC. >>>>>>>>> >>>>>>>>> In terms of software, you'd need to write a piece of Android >>>>>>>>> software that reads the (buffered) samples and draws them to the >>>>>>>>> screen. >>>>>>>>> >>>>>>>>> What's you're describing has been done several times in the past. >>>>>>>>> Some of it might be open source. Google it. >>>>>>>>> >>>>>>>>> On Tue, Feb 3, 2015 at 11:17 AM, lilach azrad <[email protected]> >>>>>>>>> wrote: >>>>>>>>> >>>>>>>>>> My final project in my first degree of Software engineering is >>>>>>>>>> focused on making my Android smartphone to oscilloscope and I need >>>>>>>>>> DAQ >>>>>>>>>> component to achieve signals and show them on the Android >>>>>>>>>> smartphone. >>>>>>>>>> The minimal requirements are at least 2 analog input, ADC and a >>>>>>>>>> way to "transfer" the signals (via Bluetooh\usb) >>>>>>>>>> Does the IOIO help me? if yes what should I implement on my >>>>>>>>>> software side. >>>>>>>>>> Thanks, >>>>>>>>>> Lilach >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> You received this message because you are subscribed to the >>>>>>>>>> Google Groups "ioio-users" group. >>>>>>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>>>>>> send an email to [email protected]. >>>>>>>>>> To post to this group, send email to [email protected]. >>>>>>>>>> Visit this group at http://groups.google.com/group/ioio-users. >>>>>>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>> You received this message because you are subscribed to the Google >>>>>>>> Groups "ioio-users" group. >>>>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>>>> send an email to [email protected]. >>>>>>>> To post to this group, send email to [email protected]. >>>>>>>> Visit this group at http://groups.google.com/group/ioio-users. >>>>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>>>> >>>>>>> >>>>>>> -- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "ioio-users" group. >>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>> send an email to [email protected]. >>>>>> To post to this group, send email to [email protected]. >>>>>> Visit this group at http://groups.google.com/group/ioio-users. >>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>> >>>>> >>>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "ioio-users" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> To post to this group, send email to [email protected]. >>>> Visit this group at http://groups.google.com/group/ioio-users. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "ioio-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> Visit this group at http://groups.google.com/group/ioio-users. >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "ioio-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/ioio-users. For more options, visit https://groups.google.com/d/optout.
