Show Posts
Pages: 1 ... 285 286 [287] 288 289 ... 592
4291  Using Arduino / Interfacing w/ Software on the Computer / Re: Not Sure What I Need: Streamline Uploading Process on: October 01, 2012, 10:22:55 pm
You can use the STK500 protocol to ask the bootloader to write data into FLASH memory on the Arduino.  You can find documentation for the STK500 protocol on the Atmel website.

As an alternative you can use the same "avrdude" program that the Arduino IDE uses.  It takes a .hex file and copies it to the FLASH memory using the bootloader.
4292  Using Arduino / Programming Questions / Re: how to expand a string on: October 01, 2012, 05:39:33 pm
..until it is completely off of the screen.

When will the initial 'h' leave the screen?
4293  Community / Bar Sport / Re: Home Water Tester Kit on: October 01, 2012, 05:37:18 pm
http://en.wikipedia.org/wiki/Siemens_(unit)

1 ppm TDS = 1.56 microS/cm.
4294  Using Arduino / Microcontrollers / Re: how arduino bootloader work ? on: October 01, 2012, 04:07:56 pm
STK500 protocol.

You have the bootloader sources.  Read them.

You can turn on verbose logging of the upload in the Arduino preferences.  That will log the step-by-step process of uploading.

You can read about the 'avrdude' program that does the uploading.
4295  Using Arduino / Networking, Protocols, and Devices / Re: Importing an IR protocol in IRremote library on: October 01, 2012, 04:03:33 pm
Code:
  int pre_data = 0xE0E0;
  pre_data <<= 16;

If you take a 16-bit integer and shift it left 16 bits the results will be 0.  Probably not what you wanted.
4296  Using Arduino / Sensors / Re: Problems with library HC SR04 installation on: October 01, 2012, 03:47:52 pm
In Arduino 1.0 the file WProgram.h was replaced with Arduino.h.  Make that change in the library and it will probably work.
4297  Using Arduino / Programming Questions / Re: help: error compiling at atmega16 on: October 01, 2012, 08:21:53 am
Looks like the "M2Arduino" core that you installed is not compatible with the Arduino 1.0 libraries.  You need to find an updated core for the ATmega16.
4298  Using Arduino / Motors, Mechanics, and Power / Re: ARDUINO DUAL STEP MOTOR DRIVER SHIELD problems on: September 30, 2012, 08:05:47 pm
If you trust their example code then your hardware must be broken.
4299  Using Arduino / Programming Questions / Re: Serial.read() help on: September 30, 2012, 06:06:35 pm
-1 means "no data available at this time".  Wait for "Serial.available() >= 5" before you read five characters.
4300  Using Arduino / Motors, Mechanics, and Power / Re: ARDUINO DUAL STEP MOTOR DRIVER SHIELD problems on: September 30, 2012, 06:03:15 pm
Have you got it wired up Red Green Yellow Blue?
4301  Using Arduino / Project Guidance / Re: led matrix with max 7219 help on: September 30, 2012, 05:58:25 pm
Are you following this tutorial: http://www.arduino.cc/playground/Main/LEDMatrix
4302  Using Arduino / Programming Questions / Re: Need help with an NES controller code on: September 30, 2012, 05:43:12 pm
Are you sure you want to execute the second loop 15 times? o.0

I'd have guessed you wanted this instead:

Code:
  // Clock Cycles 2-16
  for (int i = 1; i <= 15; i++)
  {
    digitalWrite(clock1,HIGH);
    delayMicroseconds(4);
    digitalWrite(clock1,LOW);
    delayMicroseconds(4);
    controllerData1[i] = digitalRead(data1);
  }

  for (int i = 1; i <= 15; i++)
  {
    digitalWrite(clock2,HIGH);
    delayMicroseconds(4);
    digitalWrite(clock2,LOW);
    delayMicroseconds(4);
    controllerData2[i] = digitalRead(data2);
  }
}
4303  Using Arduino / Motors, Mechanics, and Power / Re: Controlling 4 steppers + 2 servos with an Arduino MEGA on: September 30, 2012, 05:39:36 pm
Sounds correct to me.
4304  Using Arduino / Project Guidance / Re: Where to go now? on: September 30, 2012, 12:00:59 pm
It doesn't much matter which motor control shield you get if you are just experimenting.  Get one and play with the examples and tutorials you can find that use it.
4305  Using Arduino / Programming Questions / Re: Need help with an NES controller code on: September 30, 2012, 11:58:50 am
And heres the error it gave me.

Quote
NES_2_Controllers.cpp: In function 'void controllerRead()':
NES_2_Controllers:92: error: a function-definition is not allowed here before '{' token
NES_2_Controllers:249: error: expected `}' at end of input

The error is at the "{" below the "void loop" code line.  Whats that about?  Thanks again for your guys help.  Later.

You left out a '}' at the end of the first FOR loop in controllerRead().
Pages: 1 ... 285 286 [287] 288 289 ... 592