Show Posts
Pages: [1] 2 3 ... 5
1  Using Arduino / Programming Questions / Re: Skip a slow function on: October 18, 2013, 09:03:49 am
I think you'd need multithreading with a timed interrupt which, afaik , arduino does not support
2  Using Arduino / Programming Questions / Re: Help getting these ultrasonic sensors to work? on: October 18, 2013, 06:29:35 am
I had huge problems with these sensors too, the issue turned out to be a combination of voltage dips and bad wiring. I would suggest running a decoupling capacitor across each sensor, feeding them from an external 5v power source and taking ten readings at a time and taking removing outliers.

Additionally you should stop moving (if it's a robot) for the scan
3  Products / Arduino Yún / Re: Problem accessing board folder /www/sd Arduino YUN on: October 18, 2013, 06:25:08 am
Could be permissions, in arduino/www please run "ls -al" and paste the output here

Also try "touch test.txt" to see if you can create a file in the directory and try to read one of your files - "cat <myfilename>"
4  Using Arduino / Programming Questions / Re: Decrements Time on: October 14, 2013, 12:00:36 pm
Variable mismatch

segundos --
if (seconds == ...
5  Using Arduino / Programming Questions / Re: Gui advice on: October 10, 2013, 09:39:41 am
I believe that in order to create a GUI you first need to be controlling the Arduino without it, this seems to be a cart before the horse approach to me.

Create your commands, make sure they work (I assume parsing chars over serial is what you have in mind). THEN look at the GUI, the way you code the commands will probably influence your choice in tools.

If you want something quick and easy give Griffon a try -
6  Using Arduino / Programming Questions / Re: Gui advice on: October 09, 2013, 11:16:45 am
Using the yun it would be simple to set up a web driven interface using REST, there's one set up out of the box for you to play with.

If not yun how are you interfacing with the arduino?

My preference would be java for simplicity and portability. Netbeans will give you a GUI builder but it throws code all over the place, a much cleaner and more elegant solution is Groovy swingbuilder -
7  Using Arduino / Programming Questions / Re: [SoftSerial] Strange char when receiving ASCII on: October 04, 2013, 10:10:59 am
The mu symbol is ascii 230
ETB is 23 (end of transmission block)
0 is null

Just a guess but it's probably <character> <ETB> <null>
8  Using Arduino / Programming Questions / Re: Setting values of array of arrays on: October 03, 2013, 04:36:18 am
I believe he needs dynamically sized arrays added. It is possible to use my example to run through arrays, however you need to know the size of the initial array of pointers to other arrays. (There may be some flaws in my code I only compiled didn't run)

I think, based on what the OP describes, that he needs a form of vector or collection of arrays. Therefore the following should help -  (taken from,175326.0.html)
9  Using Arduino / Programming Questions / Re: Setting values of array of arrays on: October 02, 2013, 07:03:45 pm
You're getting confused with arrays of pointers and arrays, try this

  int rows[] = {1, 2, 3, 4, 5};  //a normal array of ints
  int* collectionOfArrays[3]; // an array of pointers to int, size 3
  collectionOfArrays[0] = rows; //set the first pointer to point to our rows array
10  Using Arduino / Programming Questions / Re: Arduino Serial help? on: October 01, 2013, 01:03:41 pm
Exactly, just round out the number when sending or parsing - (not on a compiler so you may need to tweak this, mybitstring is an example just make a function that takes a string argument. )

string mybitstring = 110;
while(bitstring.length < 8)
 mybitstring = 0+mybitstring;
return mybitstring;

There are more efficient ways to accomplish this btw, this is just an example
11  Using Arduino / Programming Questions / Re: Arduino Serial help? on: October 01, 2013, 12:28:32 pm
Ah I think I know what's happening.

Print the DEC, I bet it's converting the ascii character code for the number, which is not the same as the number of bits in the byte
12  Using Arduino / Programming Questions / Re: Arduino Serial help? on: October 01, 2013, 12:22:44 pm
I understand what you're trying to achieve, I'm just wondering if extra data is getting in the way. For debugging purposes change your loop to -

  for(int i = 0; i < 8; i++)
      char b =;
      Serial.print(b, BIN); //drop the \n
      Serial.println("");     //newline
      Serial.print(b);        //ascii character
      Serial.println("");     //newline
      Serial.println(b, BIN);

And see what the output is like
13  Using Arduino / Programming Questions / Re: Arduino Serial help? on: October 01, 2013, 12:16:30 pm
At first glance it seems you aren't taking into account delimiters - are you sending "1 2 3 4 5 6 7 8" or "12345678"? How exactly are you sending the characters?
14  Products / Arduino Yún / Re: PHP5 on the Arduino YUN on: October 01, 2013, 12:01:26 pm
I haven't worked with the linino distro yet but I would assume that vi, nano or emacs are available. Try -

vi <filename>

move the cursor to where you want to edit
i to start editing
when done press esc then :wq then enter(: goes to command mode, wq stands for write and quit)
If you need to move the cursor around press esc first then i to insert

nano is much simpler if it is available, try opkg install nano if not

vi cheatsheet -
15  Products / Arduino Yún / Re: Creating end-product from Yun on: September 25, 2013, 09:26:12 am
While this is true for a single board what I'm looking for is a way to mass-produce something once it has been prototyped on the Yun. The best part about Arduino is if you can prototype something, you can mass-produce it since the hardware is simple and open source.

This company provides exactly what I need for mass producing a Yun design, albeit at prices higher than I would like. I will be looking for alternatives but this is good advice, thank you for your input anyway
Pages: [1] 2 3 ... 5