Show Posts
Pages: 1 ... 28 29 [30] 31 32 ... 106
436  Community / Gigs and Collaborations / Re: join our geek community ! on: October 24, 2013, 02:16:37 pm
From the phrase "mind hackers" you assume they are brain surgeons or, at worst, psychologists?
How do you know they are even out of grade school?

Pete
437  Using Arduino / Programming Questions / Re: first time user...using a HAPP button on: October 24, 2013, 02:04:57 pm
If this is for a Teensy you would be better off posting your question in a Teensy forum at http://forum.pjrc.com/forum.php

Pete
438  Community / Gigs and Collaborations / Re: join our geek community ! on: October 24, 2013, 10:19:50 am
Why would you sign up?
Do you know who they are? Where they are? Who is the group of "professionals" who will evaluate whether they actually allow you to join them? What are their professions? What will they do with your email address?  Etc., etc.

Pete
439  Using Arduino / Programming Questions / Re: password checker 'Brute Force' on: October 23, 2013, 10:20:20 am
The stack space required for each level of recursion is going to rapidly use up the limited amount of static ram on an Arduino. Using the String library makes the problem even worse.

Pete
440  Using Arduino / Programming Questions / Re: Multiple Boolean Conditions on: October 19, 2013, 03:12:10 pm
You also have to wonder how the compiler's error message has a different function name than is in the code!
Code:
In function 'boolean simpleThread_loop_THREAD_LEDBlink()'

Pete
441  Using Arduino / Project Guidance / Re: Newbie guidance for dslr timelapse controller (use relay or transistor?) on: October 18, 2013, 03:59:53 pm
You should use an optoisolator. That will completely isolate the camera from the Arduino.

Pete
442  Using Arduino / Sensors / Re: How to use this calibration formula to calibrate a sensor ? on: October 16, 2013, 10:49:13 am
Quote
Pete: would you care to give any hints as to where I went wrong?

My (elementary) mistake. I had raised both sides to the power of ten to get rid of the logs but in one subsequent step I made the mistake of using 10^(a*b) => 10^a * 10^b which isn't correct. It should be 10^(a*b) = (10^a)^b which doesn't help reduce the equation further.

Pete
443  Using Arduino / Sensors / Re: How to use this calibration formula to calibrate a sensor ? on: October 15, 2013, 07:10:28 pm
What constructor?

Pete
444  Using Arduino / Sensors / Re: How to use this calibration formula to calibrate a sensor ? on: October 15, 2013, 06:40:36 pm
Where did you get that calibration formula from? It is unnecessarily complicated.
It is the same as:
Code:
C2 * R = R2 * X
If you are trying to solve for X, this becomes:
Code:
X = C2 * R / R2;

Pete
445  Using Arduino / Programming Questions / Re: Creating columns in a CSV file? on: October 14, 2013, 10:01:08 pm
BTW. If you really want to write one space and then a tab:
Code:
        dataFile.print(' ');
        dataFile.print("\t");
you can do it like this:
Code:
        dataFile.print(" \t");

Pete
446  Using Arduino / Programming Questions / Re: Creating columns in a CSV file? on: October 14, 2013, 09:59:29 pm
Code:
        dataFile.println(temperature);
        dataFile.print(' ');
        dataFile.print("\t");
        dataFile.print(trigger);
        dataFile.print(' ');
        dataFile.print("\t");
The problem is that you are writing the temperature with a linefeed (println) and then following it with the trigger which will be on the next line.
Do this:
Code:
        dataFile.print(temperature);
        dataFile.print(' ');
        dataFile.print("\t");
        dataFile.println(trigger);
Pete
447  Using Arduino / Programming Questions / Re: Creating columns in a CSV file? on: October 14, 2013, 08:39:16 pm
Quote
How do I specifically tell Arduino to put this data in the last column?
You write it last.

Pete
448  Using Arduino / Audio / Re: DTMF decoder library on: October 14, 2013, 07:16:56 pm
The code returns the detected button as a character so you need to use:
Code:
if(thischar == '5') {
  digitalWrite(led, HIGH);
}
This allows it to also return the symbols such as '*', '#' and, if you have the full 16 button pad,  'A', 'B' etc.

Pete
449  Using Arduino / Audio / Re: DTMF decoder library on: October 14, 2013, 10:58:20 am
Post your code (using code tags).

Pete
450  Using Arduino / Interfacing w/ Software on the Computer / Re: Writing to Arduino from Excel Using PLX-DAQ on: October 12, 2013, 11:04:00 am
Code:
          USER1 = Serial.read();
          digitalWrite(led, USER1);

I presume that USER1 will have the ASCII value of whatever is in the cell (assuming that part works).
Whether it is 0 or 1 it will be non-zero and writing either of them as a digital value will turn the LED on.
You need to test for one of them and act accordingly:
Code:
    if(USER1 == '1')digitalWrite(led,1);
    else digitalWrite(led,0);

Pete
Pages: 1 ... 28 29 [30] 31 32 ... 106