I cannot connect HelloIOIO using my Samsung GT-I1890 but the IOIOHardware Tester seems to work. However HelloIOIO works with my LG Optimus. I am in the process of making a custom app using the HelloIOIO sources :) I am gonna feedback later on how things went with the custom app. (All the connections I am referring are bluetooth connections ).
On Mon, Jan 13, 2014 at 9:11 PM, <[email protected]> wrote: > Today's Topic Summary > > Group: http://groups.google.com/group/ioio-users/topics > > - Adding delay in the loop. <#1438f297f6ce13ca_group_thread_0> [2 > Updates] > - IOIO library v5.00 is released! <#1438f297f6ce13ca_group_thread_1>[2 > Updates] > - Unsuccessful at running > IOIOSimpleApp<#1438f297f6ce13ca_group_thread_2>[2 Updates] > - IOIO-OTG Bluetooth vs ADB Issue <#1438f297f6ce13ca_group_thread_3>[4 > Updates] > - IOIO first try project <#1438f297f6ce13ca_group_thread_4> [6 Updates] > - 2 questions <#1438f297f6ce13ca_group_thread_5> [1 Update] > - New Wiki page on the IOIO Motor Control > API<#1438f297f6ce13ca_group_thread_6>[1 Update] > - helloIOIO , IOIO hardware tester and Samsung Note > N7000<#1438f297f6ce13ca_group_thread_7>[2 Updates] > > Adding delay in the > loop.<http://groups.google.com/group/ioio-users/t/7d597af3c91c2e6c> > > jay albano <[email protected]> Jan 13 04:54PM -0800 > > Hi to all, > > How do I add a delay when reading from a certain input? Say half a > second > before it reads again. Is there a way to set this via code? How about > firmware? > > Thanks, > Jay > > > > > Ytai Ben-Tsvi <[email protected]> Jan 13 06:57PM -0800 > > Thread.sleep()? > > > > > > IOIO library v5.00 is > released!<http://groups.google.com/group/ioio-users/t/c80e8b1abb6ffb0a> > > Markus Kaczmarek <[email protected]> Jan 13 03:22AM -0800 > > I'm sorry Ytai, but I'm afraid I might not have caught the whole > problem at > first. > Seems the IOIOLib has some strange properties I cannot understand. > When I > import everything in Eclipse the normal way and just select the whole > package, for some reason the IOIOLib folder is imported as > IOIOLibAndroid > and doesn't contain the sub folders ioio.lib.api and ioio.lib.util. > This causes a whole lot of red exclamations and chaos. > Took me a while to figure out what to do, seems to suffice to just > copy the > sub folders manually after importing and refreshing. ^^ > > Den söndagen den 12:e januari 2014 kl. 23:13:15 UTC+1 skrev Ytai: > > > > > Ytai Ben-Tsvi <[email protected]> Jan 13 08:59AM -0800 > > I think what you call the "normal way" is the wrong way. > Please look at: > https://github.com/ytai/ioio/wiki/Eclipse-Troubleshooting > It specifically mentions *not* to import directly from the zip and > *not* to > automatically copy the project to the workspace. Is that what you're > seeing > or is there another problem? > > > On Mon, Jan 13, 2014 at 3:22 AM, Markus Kaczmarek < > > > > Unsuccessful at running > IOIOSimpleApp<http://groups.google.com/group/ioio-users/t/edd138b0f338c126> > > Jacky Wong <[email protected]> Jan 13 02:55AM -0800 > > Hi all, > > I want make IOIO-otg working as Android device, and I running > IOIOSimpleApp > in my phone, when I plug in the IOIO board, a dialog is shown "Open > IOIOSimpleApp when connecting this USB device". But after clicking the > dialog, the Led OFF button and the bar are always disable. > Thanks in advance for your help and let me know if you need any other > information from my side. > > Thanks, > Jacky > > > > > Ytai Ben-Tsvi <[email protected]> Jan 13 08:56AM -0800 > > Look at logcat. My bet is that you have incompatible versions of > IOIOLib > and the firmware. If that's the case, you'll need to either upgrade the > firmware or downgrade the software. > > > > > > IOIO-OTG Bluetooth vs ADB > Issue<http://groups.google.com/group/ioio-users/t/6690a05e75fbd979> > > dakman05 <[email protected]> Jan 12 09:18PM -0800 > > Hey Ytai and IOIO Community! > > Hope all is well. Having a problem with my IOIO-OTG ( Hardware ID: > SPRK0020 > Bootloader ID: IOIO0400 Firmware ID: IOIO0330) ... > > So I have a WS2801 LED strip and I am using SPI to creating a unique > green > animation lighting effect... > > Essentially I played around with HolidayIOIO and was able to figure > out how > to control the LED strip .. > > It works like a charm via bluetooth but the following functions are > flickering when directly connected via ADB... Same set of code is > working > completely different on BT vs ADB... In bluetooth it works great no > flickering.. with ADB its as if the clock / timing is off... I tried > adjusting the SPI Rate and still no cigar... > See below > > Any help / suggestions is much appreciated! > > -Dave > > In setup: > > > * spi_ = ioio_.openSpiMaster(4, 4, 5, 6, SpiMaster.Rate.RATE_50K);* > > > > } > > }).start(); > > } > > > > *private void setLed(int num, RGB rgb) {* > > // Find the right buffer to write to (first or second half). > > byte[] buffer; > > if (num >= 16) { > > buffer = buffer2_; > > num -= 16; > > } else { > > buffer = buffer1_; > > } > > num *= 3; > > if (rgb.r == 0 && rgb.g == 0 && rgb.b == 0) { > > fadeOut(buffer, num++); > > fadeOut(buffer, num++); > > fadeOut(buffer, num++); > > } else { > > // Poor-man's white balanace :) > > buffer[num++] = rgb.r; > > buffer[num++] = rgb.g; > > buffer[num++] = rgb.b; > > } > > } > > > *public void green(int start, int end)* > > throws ConnectionLostException { > > try { > > for (int i = start; i < end; i++) { > > color.clear(); > > color.r = (byte) 0; > > color.g = (byte) 255; > > color.b = (byte) 0; > > setLed(i, color); > > } > > spi_.writeReadAsync(0, buffer1_, buffer1_.length, > > buffer1_.length, null, 0); > > spi_.writeRead(buffer2_, buffer2_.length, buffer2_.length, > > null, 0); > > Thread.sleep(50); > > } catch (InterruptedException e1) { > > } > } > > > > > Ytai Ben-Tsvi <[email protected]> Jan 12 11:09PM -0800 > > Hi, > A few things to check: > > - How come you can use the same pin for MISO and MOSI? It shouldn't be > valid... Use something else for MISO. > - Try changing the second writeRead to writeReadAsync and wrap both > calls between a ioio_.beginBatch() / ioio_.endBatch() block. > > > > > > > > dakman05 <[email protected]> Jan 13 05:39AM -0800 > > wow dude you rock !! ... worked like a charm... here are the changes > if > anyone wants to know! > > i implemented both suggestions but it seems like the > beginBatch/endBatch > actually did the trick! > > thanks again! > > spi_ = ioio_.openSpiMaster(39, 4, 5, 6, SpiMaster.Rate.RATE_50K); > > > public void green(int start, int end) throws ConnectionLostException { > > try { > for (int i = start; i < end; i++) { > color.clear(); > color.r = (byte) 0; > color.g = (byte) 255; > color.b = (byte) 0; > setLed(i, color); > } > ioio_.beginBatch(); > try { > spi_.writeReadAsync(0, buffer1_, buffer1_.length, > buffer1_.length, null, 0); > spi_.writeReadAsync(0, buffer2_, buffer2_.length, > buffer2_.length, null, 0); > Thread.sleep(50); > } finally { > ioio_.endBatch(); > } > } catch (InterruptedException e1) { > } > > > } > > On Monday, January 13, 2014 12:09:57 AM UTC-7, Ytai wrote: > > > > > Ytai Ben-Tsvi <[email protected]> Jan 13 07:43AM -0800 > > Cool. You probably want the sleep outside the batch though. > > > > IOIO first try > project<http://groups.google.com/group/ioio-users/t/c1394925c1ba2d2f> > > Synn Yong Tan <[email protected]> Jan 13 03:47PM +0800 > > Hi, Ytai.. > I guess i find out where is the problem. I think the conversion of > string(line) to double(value1) caused the display problem. It looks > like > the apps is confuse for displaying the line and conversion from string > to > double. > Is this possible? > > > > > > > Ytai Ben-Tsvi <[email protected]> Jan 13 12:00AM -0800 > > Did you try to run your app with a debugger? > > > > > > > Synn Yong Tan <[email protected]> Jan 13 04:06PM +0800 > > i didn't. I try it with the other way. I tested my app line by line of > code. > > > > > > > Ytai Ben-Tsvi <[email protected]> Jan 13 01:24AM -0800 > > Not sure I understand what you mean. In any case, what did you find? > > > > > > > Synn Yong Tan <[email protected]> Jan 13 06:20PM +0800 > > Here is the code that i tried which can run without any problem. So, my > doubt is " value1 = Double.parseDouble(line); " causing the problem. > Yet, > i still dont know how i should solve this or is there any other way > for me > to convert it into double data type. > > > package ioio.examples.simple; > > import java.io.BufferedReader; > > import java.io.IOException; > import java.io.InputStreamReader; > import ioio.lib.api.Uart; > import ioio.lib.api.exception.ConnectionLostException; > import ioio.lib.util.BaseIOIOLooper; > import ioio.lib.util.IOIOLooper; > import ioio.lib.util.android.IOIOActivity; > import android.os.Bundle; > import android.widget.TextView; > > public class IOIOSimpleApp extends IOIOActivity { > private TextView textView_; > private TextView angle_; > > > @Override > public void onCreate(Bundle savedInstanceState) { > super.onCreate(savedInstanceState); > setContentView(R.layout.main); > > textView_ = (TextView) findViewById(R.id.TextView); > angle_ = (TextView)findViewById(R.id.angle); > > } > > class Looper extends BaseIOIOLooper { > private Uart input_; > private BufferedReader reader_; > > @Override > public void setup() throws ConnectionLostException { > input_ = ioio_.openUart(6, 7, 19200, Uart.Parity.NONE, > Uart.StopBits.ONE); > reader_ = new BufferedReader(new > InputStreamReader(input_.getInputStream())); > } > > @Override > public void loop() throws ConnectionLostException, > InterruptedException { > double value1; > double result; > > String line; > try { > line = reader_.readLine(); > if (line != null) { > setText(line); > > > result = (8191+1) * 360 / 8192 ; > String angle = String.valueOf(result); > setText1(angle); > > } > } catch (IOException e) { > // TODO Auto-generated catch block > e.printStackTrace(); > } > } > @Override > public void disconnected() { > } > } > > @Override > protected IOIOLooper createIOIOLooper() { > return new Looper(); > } > private void setText(final String str) { > runOnUiThread(new Runnable() { > @Override > public void run() { > textView_.setText(str); > } > }); > } > private void setText1(final String str) { > runOnUiThread(new Runnable() { > @Override > public void run() { > angle_.setText(str); > } > }); > } > > > } > > > > > > > Synn Yong Tan <[email protected]> Jan 13 10:55PM +0800 > > Hi, Ytai, I already solved the problem. Thanks for your great help. > > > > > > > 2 questions<http://groups.google.com/group/ioio-users/t/1032c09d2b725a7c> > > Matanel <[email protected]> Jan 13 02:31AM -0800 > > Thank you. > > > > New Wiki page on the IOIO Motor Control > API<http://groups.google.com/group/ioio-users/t/6f7d355a3f8b8c20> > > Ytai Ben-Tsvi <[email protected]> Jan 13 01:34AM -0800 > > Just finished a long write-up on the motor control library. Hope people > will find this work useful: > https://github.com/ytai/ioio/wiki/Motor-control > > While documenting, found a very minor issue with how manual mode works. > I'll push a v5.01 IOIOLib soon with a fix. > > Now I can go to sleep :) > > > > helloIOIO , IOIO hardware tester and Samsung Note > N7000<http://groups.google.com/group/ioio-users/t/18e8882378bac046> > > xelhion <[email protected]> Jan 12 09:19PM -0800 > > I have the same issue with both software v3 and v4. also is the IOIO > hardware tester app open source? Thanks. > > On Wednesday, June 19, 2013 11:20:51 PM UTC-7, Ytai wrote: > > > > > Ytai Ben-Tsvi <[email protected]> Jan 12 11:00PM -0800 > > xelhion, what issue are you having? The original post has been > resolved by > downgrading the software or upgrading the firmware. > > Also the IOIO hardware tester app is not mine, you should contact the > author through his contact details on Google Play. > > > > > > -- > 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/groups/opt_out. > -- 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/groups/opt_out.
