Show Posts
Pages: 1 ... 309 310 [311] 312 313 ... 405
4651  Using Arduino / Programming Questions / Re: Using internal pull-up resistors by digitalWrite() on: August 26, 2011, 01:17:13 am
There is no need to digitalWrite() the HIGH or 1 to the Input pins inside of loop().  Generally people will enable the pull-ups right after declaring the pin as INPUT, in setup().

Also remember that if an INPUT is being pulled-up, that the "default" state is HIGH, not LOW.
4652  Using Arduino / Project Guidance / Re: does a c# cross compiler exist? on: August 26, 2011, 01:12:52 am
Quote
arduino/netduino

The only thing in common between the Arduino and Netduino are the letters "duino."
4653  Using Arduino / Project Guidance / Re: Math problem. on: August 26, 2011, 01:11:45 am
Quote
so 0.1 cant be used and 9/4= 2 not 2.25??

float result = 9 /4;
// result will contain 2

float result = 9.0 / 4.0;
// result will contain 2.25

4654  Using Arduino / Programming Questions / Re: Exponential Functions for Fusion Acceleration on: August 26, 2011, 01:05:58 am
Code:
int myTime=10000;
int cycleCount=0;
int ledPin1 = 13;

void setup() {
// whatever
}

void loop() {
   cycleCount++;
   long answer = pow((myTime*0.5),cycleCount);
   digitalWrite(ledPin1, HIGH);
   delay (answer);
   digitalWrite(ledPin1, LOW);
   delay (answer);
}
4655  Community / Bar Sport / Re: ipad you little!! on: August 26, 2011, 12:42:23 am
It isn't a matter of refreshing, it is a matter of RAM.

When iOS gets low on memory, it sends out a signal to dormant applications to release memory.  Safari gives it up pretty quickly (especially on the iPad 1 which only has 256mb.)  Your page didn't refresh, it got trashed and had to be reloaded.

4656  Using Arduino / Programming Questions / Re: Exponential Functions for Fusion Acceleration on: August 25, 2011, 11:33:36 pm
You aren't writing in "Arduino Syntax" you are writing in "C".

" 10000 * 0.5 pow(variable1) == variable2"

In C "==" is an equality operator.  You use it to compare two values.  So this statement doesn't make sense.
4657  Using Arduino / Programming Questions / Re: Arduino reading twitter (yes another one) on: August 25, 2011, 11:29:48 pm
You could DNS the hostname manually to get the ip address.

The bigger issue is going to be, just how you plan to download and parse even the smallest RSS feed in 2K of RAM while running the Ethernet library.
4658  Using Arduino / Installation & Troubleshooting / Re: USB Serial Port? on: August 25, 2011, 07:32:30 pm
You might be interested in this link, which I found by searching Google with "FTDI Lion":

http://geekscape.posterous.com/mac-os-x-17-lion-upgrading-ftdi-usb-serial-dr
4659  Using Arduino / Installation & Troubleshooting / Re: USB Serial Port? on: August 25, 2011, 06:48:19 pm
When connected, do you see anything related to "FTDI" listed in System Profilier?

What version of OSX are you running?
4660  Using Arduino / Installation & Troubleshooting / Re: USB Serial Port? on: August 25, 2011, 05:32:26 pm
What serial ports are listed in the Tools menu when the Fio is connected?  (And are you launching the IDE after connecting the Fio.)
4661  Using Arduino / Installation & Troubleshooting / Re: Arduino UNO chip running hot on: August 25, 2011, 05:30:25 pm
Which chip is getting hot?
4662  Using Arduino / Programming Questions / Re: Is there a way to get the time from computer? on: August 24, 2011, 09:26:28 pm
How did you set the time?  Even though you are using example code, it is always good to post anyway.
4663  Using Arduino / Project Guidance / Re: delay Function Accuracy on: August 24, 2011, 12:09:21 pm
Quote
Will using the timer for longer periods of time make the arduino timer less accurate and/or damage my arduino?
How would damage occur?

Quote
I am not sure as to the accuracy of the Arduino's delay function.
A better question might be what kind of accuracy do you expect?  Minutes, seconds, milliseconds?

If the timing is critical (within a couple of seconds) then you probably want to look at using a RTC.
4664  Using Arduino / Project Guidance / Re: Is it possible to replace a DSP for a Arduino? on: August 24, 2011, 12:04:40 pm
It depends on what the DSP is doing. You can't tell from the schematic what kind of firmware the DSP is running.  You'll have to re-write any code for the DSP to work on the Arduino.  This, of course, assumes the Arduino can do the same tasks as whatever the DSP was doing.
4665  General Category / General Discussion / Re: Dual Core 168 Arduino on: August 24, 2011, 10:06:45 am
Quote
How can  I find that solder bridge/pad thing in Eagle? No idea what it is called.

Look at "SJ" in the "jumper" library.
Pages: 1 ... 309 310 [311] 312 313 ... 405