Show Posts
Pages: 1 ... 2250 2251 [2252] 2253 2254 ... 3354
33766  Using Arduino / Networking, Protocols, and Devices / Re: Problems receiving more than 1 Art-Net universe on: December 02, 2011, 04:32:27 pm
Code:
const int MAX_BUFFER_UDP=1024;
char packetBuffer[MAX_BUFFER_UDP]; //buffer de stockage de la trame entrante
There went half your memory, unless you are using a Mega.

Code:
char pollReply[] = {
  'A', 'r', 't', '-', 'N', 'e', 't', 0x00,
  0x00, 0x21,
  10, 0, 0, 1,
  0x36, 0x19,
  0, 0,
  0, 1,  // subnet address
  0x4, 0x31,  // oem
  0,
  0xd2,
  0x70, 0x7a,  // esta
  'L', 'E', 'D', '-', 'T', 'u', 'b', 'e', 's',
  0,0, 0, 0, 0, 0, 0, 0, 0,  // short name
  'L', 'E', 'D', '-', 'T', 'u', 'b', 'e', 's', ' ',
  'A', 'R','T', '-', 'N', 'e', 't', ' ', '2', ' ', 'D', 'M','1', '3', '4',
  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,  // long name
  '#', '0', '0', '0', '1', ' ', '[', '0', ']', ' ', 'O', 'L', 'A',
  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  0,  // node report
  0, 3,  // num ports
  0xc0, 0xc0, 0xc0, 0xc0,
  8, 8, 8, 8,
  0x80, 0, 0, 0,
  0x20, 0x20, 0x20, 0x20,  // swin
  0x23, 0x20, 0x20, 0x20,  // swout
  0, 0, 0, 0, 0, 0, 0,  // video, macro, remote, spare, style
  0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED,  // mac address 
  0xa, 0x0, 0x0, 0x1,
  0,
  8,
  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  0  // filler
};
There's a whole lot more bytes gone.

Quote
i try to receive more than 1 art-net universe exactly i want to receive 3 universes.
It would be useful to know what a art-net universe is, and what you are trying to do with three of them.

It would be interesting to know how much free memory you have.

It would be interesting to know what Arduino you have.

Finally, it would be interesting to know what actually happens when that code runs.

Quote
but when i send more than 1 universe nothing happens.
Send from where?
33767  Using Arduino / Programming Questions / Re: I2C lcd on: December 02, 2011, 04:17:07 pm
Quote
the backlight is flashing on and off at a very fast rate of knots
A knot is a nautical mile per hour. How does that relate to the backlight frequency?

I don't think the backlight should be doing that.
33768  Using Arduino / Interfacing w/ Software on the Computer / Re: LCD Problem on: December 02, 2011, 04:14:06 pm
What is interfacing with software on the computer?
33769  Using Arduino / Interfacing w/ Software on the Computer / Re: Processing-Arduino Xbee Communication problem on: December 02, 2011, 04:12:50 pm
Why are you using those particular XBees? For point-to-point use Series 1 radios are far easier to set up.

Anyway, post a link to the radios you have, not a bunch of words.
33770  Using Arduino / Interfacing w/ Software on the Computer / Re: Send Integers From Ardunio to Java Program Using Serial Port on: December 02, 2011, 04:07:55 pm
The Serial.print() function on the Arduino is converting the value to a string, and sending the string to the serial port.

int val = 199;
Serial.print(val, DEC);

results in the characters '1', '9', and '9' being sent to the serial port.

You need to collect the values on the other end, as a string, and convert the string to an int (atoi() works great for that).

The bit shifting stuff you are doing now is completely wrong.
33771  Using Arduino / Programming Questions / Re: type conversion and concatenation on: December 02, 2011, 04:04:14 pm
What does the value represent? Does dividing 80090 by 100000 make sense?

Jumping in asking how to do something, and then not answering all the questions asked is a bit rude.

The reason for the questions is to help determine if there is a better way to accomplish your goal.
33772  Using Arduino / Programming Questions / Re: I2C lcd on: December 02, 2011, 03:47:44 pm
Quote
It's hardly a document, so My Documents isn't really the place for it. And nowadays you get some snaky warning from Windows if you try to just access C:\ and make folders there.
I've never liked that name. My Stuff would have been a better choice, in my opinion.

I'm an administrator on my machine, so I don't have to put up with a lot of that crap that Windows does to "help" me.

I'd suggest creating a folder in C:\Users\<user id> or C:\Documents and Settings\<userid> named My Software, to go along with My Documents, My Videos, My Music, and My Pictures, and installing the software there.
33773  Using Arduino / Programming Questions / Re: I2C lcd on: December 02, 2011, 03:41:56 pm
Quote
Ok, I see your point, but No I am not one of those
I really didn't mean to ruffle any feathers. For that, I apologize.

What did you end up needing to do to fix your problem?
33774  Using Arduino / Programming Questions / Re: Draw and Erase on: December 02, 2011, 03:36:59 pm
You are the only one that can see the debug output. Does it show proper values.

Some comments would be useful.

Quote
All other values of i seem to ignore the IF condition.
Not likely. You need to explain what is actually happening.

As a test, try changing the start value of the for loop to something other than 0. Try 37, for instance. Does that change the behavior of the program? That is, is the first arrow drawn and then erased correctly, regardless of the starting angle?
33775  Using Arduino / Programming Questions / Re: Can someone explain data type "byte" on: December 02, 2011, 10:24:31 am
Look at each part of that statement.

const tells the compiler that the variable is read-only. Any attempts, therefore to write to the variable will result in a compiler error.

byte defines the type of the variable. You already know what a byte is.

RED is the name of the variable.

[] means that the variable is actually an array - a collection of values of the same type.

= means that values are being assigned.

{255, 0, 0} are the values being assigned to the elements of the array.

Because there was no value in the [], the compiler counts the number of values to determine how much space to allocate for the array.

; is the required ending for all statements.
33776  Using Arduino / Programming Questions / Re: I2C lcd on: December 02, 2011, 09:47:32 am
I do a lot of tech support stuff. I'm amazed at the number of icons people have on their desktop sometimes. I've seen screens using the small icons that had room for only one or two more.

If you're comfortable with that, fine. I just don't think that the desktop is the place for everything.

Quote
So I dragged the arduino-0022 folder onto the desktop.
Why? Why not open an explorer window and drag it to some other folder?

Quote
perhaps approach the Arduino team and ask them to make a proper installer.
Yeah, we've seen how well that works.
33777  Using Arduino / Project Guidance / Re: serial BT + Display on: December 02, 2011, 02:03:38 am
Quote
That said, since the display and BT will have common Tx and Rx, the bluetooth shouldn't backfeed to the display
You think the electrons will obey the one way sign you imagine posting?
33778  Using Arduino / Project Guidance / Re: Dog Personality Extender (GPS + Wave Shield Questions) on: December 02, 2011, 02:02:04 am
There is a library, TinyGPS that parses the most common GPS output formats, extracting time, lat, long, speed, etc. Comparing a given lat/lon pair with another lat/lon pair is not too difficult (though not exactly trivial, since the distance is not a straight line between two point, unless the distance is relatively small).

Comparing to all values stores on a card is a simple matter of looping, reading a pair from the card, and computing the distance between the current point and the saved point. Break out of the loop if a small enough distance is found. Don't forget to close the file in either case.

The wave shield instructions suggest using specific pins, but they also say that any 5 (or 6?) pins can be used. If there really is a pin conflict, change the pins around. The GPS shouldn't be hardwired to any pins. The wave shield isn't.
33779  Using Arduino / Project Guidance / Re: Renbotics Servo Shield on: December 02, 2011, 01:52:34 am
Did you follow that link? Does that picture look photo-shopped? Do you have reason to doubt this:
Quote
The Renbotics Servo Shield is an Arduino-compatible shield that

There is a manual, a library, and sample code. Hardly gets easier than that.
33780  Using Arduino / Networking, Protocols, and Devices / Re: radio shack motor shield docs on: December 02, 2011, 01:47:06 am
Maybe you should ask Radio Shack for the documentation. They took your money. They should provide documentation.
Pages: 1 ... 2250 2251 [2252] 2253 2254 ... 3354