Show Posts
Pages: 1 ... 309 310 [311] 312 313 ... 410
4651  Using Arduino / Programming Questions / Re: Arduino code examples for newbies on: September 10, 2011, 07:00:08 am
Quote
Is that 404 as in File Not Found?
The original topic for this thread was a web link which now returns a 404.  Not sure why you are thinking there is a joke here?

Quote
which I assumed meant LCD, as in LCD-shield.
There is no standard (or official) LCD-Shield, so referring to "the LCD shield" is meaningless.  It would be better to link directly to the product you were using.

The LCD example is "example code" for using a generic LCD.  It was intended for the user to replace the pin numbers with whatever they wired their LCD with.  In your case, you are using some one else's shield (I gather) which should have been documented.  No example code can account for every random piece of hardware out there.
4652  Using Arduino / Programming Questions / Re: Arduino code examples for newbies on: September 09, 2011, 01:08:31 pm
I'm curious as well.  Between all of the IDE's built-in examples and related information on Playground, what does this new github repository offer that is different?  Why not just fold your examples in the already existing infrastructure?
4653  Using Arduino / Programming Questions / Re: Best way to seed random that doesn't pig space on: September 09, 2011, 01:06:52 pm
Quote
I need a lightweight reliable way to seed random. Ideas?

That is a lot of unqualified information.  What do you consider to be "reliable" and "lightweight"?
4654  Using Arduino / Installation & Troubleshooting / Re: ProMini 3.3V and 5V - which one is which? on: September 09, 2011, 01:04:15 pm
Since there is an on-board regulator, apply a voltage to the RAW pin and measure VCC.

Ideally you should apply >6V.  Even if you only have 5V source available you can probably still tell the difference between the 3.3 and 5 boards.  (The 3.3V board will be 3.3V with 5V on RAW while a 5V board will be something less, probably around 4).
4655  Using Arduino / Project Guidance / Re: MAC to Arduino? on: September 07, 2011, 09:53:56 pm
I'm not sure what a "MAC" is, but I'm pretty familier with the Mac.

Since the Arduino basically emulates a serial port, you can just setup macros in RemoteBuddy to send terminals commands like "echo 'whatever' > /dev/tty.usbserialXXXX".
4656  Using Arduino / Microcontrollers / Re: Timeline / History of Atmel microcontrollers? on: September 07, 2011, 08:26:21 pm
He is looking for historical information such as the evolution of the Atmel line. He's not looking for good, better, best.

Oh?  I guess I misread the original statement:   I often wonder to myself "Is X a newer/better version of Y?"
4657  Using Arduino / General Electronics / Re: chronodot on: September 07, 2011, 04:13:08 pm
Double check you are using the analog pins and not digital 4 and 5.
4658  Using Arduino / Installation & Troubleshooting / Re: Arduino UNO problem - Not Uploading on: September 07, 2011, 01:38:42 pm
If your ATmega is removable, remove it.  See if the board powers up.

Quote
take your board and check the black circle-marked fuse on it
What Arduino boards have anything marked Fuse on them?  Your advice doesn't really make sense.  Unless you are talking about the poly fuse, but that isn't marked as you have indicated.  And it is only used when connected via USB.
4659  Using Arduino / Microcontrollers / Re: Fried Pins- Output to Output short on: September 07, 2011, 01:23:22 pm
While you CAN keep using that chip, it would probably be a good practice to replace it (and throw that one away.)  At the very least, if you need to use it, put a sticker on the chip that says "bad 13."

Down the road, you will forget about this problem and end up troubleshooting something you already knew about.
4660  Using Arduino / Microcontrollers / Re: Timeline / History of Atmel microcontrollers? on: September 07, 2011, 01:18:22 pm
Newer isn't always "better."  It is just newer.

Identify what you need to complete a project and then determine what best fits.  If the "newer" version supports features you don't need, then is it really "better"?
4661  Using Arduino / Programming Questions / Re: Simple code so hard on: September 07, 2011, 09:40:32 am
Quote
I want outPin13 to go high when i push the button
At the same time
I want outPin12 to go high (only for say 2 seconds) and then go low
Stop trying to control the LEDs directly in code.  Instead, create state variables for each (such buttonLEDState and delayLEDState or whatever makes sense to you.)

in the beginning of loop() always set the LEDs to those state variables:
Code:
loop() {
   digitalWrite(13, buttonLEDState);
   digitalWrite(12, delayLEDState);
   ....

Now using if-statements and millis() determine the conditions for what those state variables should be.  For example, when you detect a button press, then invert the value of buttonLEDState (which is what I think you are trying to do.)  At the same time, turn on delayLEDState, record the number of millis(), and wait two seconds to turn the LED off.

4662  Using Arduino / Installation & Troubleshooting / Re: Mac OS X usbmodem ports missing? on: September 06, 2011, 06:50:34 pm
I don't think so. But, I am not sure where to look?
Apple Menu -> About This Mac -> "More Info..." -> USB

(now modified to use a toggle switch to change the blink frequency via my wife's Vista laptop).
Was this toggle switch wired before you started having problems?  How is it wired?  Are you using pull-up or pull-down resistors?

I do see some stuff in system.log when I launch the Arduino program:
If the OS is not reporting the device when attached, it doesn't really matter what the Arduino IDE sees.  The IDE just asks the OS for what serial ports are available.

Also, none of the usbmodem files are in the /dev/ listing (no usb or modem either):
Just to clarify, the Arduino will only appear in /dev/ when it is attached.  Are you looking when it is attached?

Not sure what you mean by no other hardware attached. The Mega is 'empty'. Other than the push/pull switch I just added to pin 12/gnd/5v, it has nothing else attached.
The Mega doesn't come with a push/pull switch, so that would be considered "hardware that is attached."  How is this switch connected?

It is common for OSX to disable power to a USB port (or a port a known offending device is attached) when a short is present from that device.  So depending on these switches you've mentioned are setup, you might be causing the port to shut down.  (Though, OSX is usually very good about giving a warning before doing so.)  In some cases, I've had to do a power-cycle before I could use the device again.  Keeping in mind, if you power cycle and the device is still drawing too much current, you are just repeating the same mistake.
4663  Using Arduino / Programming Questions / Re: Read Serial Port with PHP, HELP on: September 06, 2011, 06:42:56 pm
Quote
run a Zentyal Server with LAMP
What is this?

Quote
i dont know i to read a single "Serial.println(" GB large.");"
What does this mean?  Serial.println() will send a string across the serial port.  Are you trying to read that string with your PHP script?  Or are you trying to send a string to the Arduino?

Quote
Help Please i have to give this Work until Friday.
This statement will not have any impact on when you receive answers. (It does however, make me wonder if this is a homework assignment.)
4664  Using Arduino / Programming Questions / Re: how to extract two int from string on: September 06, 2011, 06:39:59 pm
Code:
serialReading = Serial.read();    // ex: G11D454E
    String SpeedG = serialReading.substring(0,1);
    String SpeedD = serialReading.substring(1,2);

Serial.read() will only the first byte that is available.
4665  Using Arduino / Installation & Troubleshooting / Re: Mac OS X usbmodem ports missing? on: September 06, 2011, 03:44:22 pm
Does the board show up in System Profilier when the board is attached (and no other hardware was attached)?
Pages: 1 ... 309 310 [311] 312 313 ... 410