Show Posts
Pages: 1 ... 1888 1889 [1890] 1891 1892 ... 3355
28336  Using Arduino / Programming Questions / Re: Moving array variables on: April 26, 2012, 06:51:06 pm
Quote
I thought the most efficient way to do this was to use an array of 3 chars (char c[2]smiley-wink and look for my byte based on the bytes either side...
An array of 2 characters, one of which will be the NULL, you mean. The value in the brackets is the count, not the upper index. You need to allow room for the trailing NULL, too.
28337  Using Arduino / Project Guidance / Re: Could this CNC machine design probably work? on: April 26, 2012, 06:29:56 pm
Nice drawings. How did you produce them?

The only potential issues I see are from manufacturing tolerances and misalignment and undersized parts. Only you can control the manufacturing process(es). You have given no real details on the bearings, rods, stepper motors,  etc.

Could it work? Yes. Will it work? Can't answer that. If you take your time, cut all parts accurately, and align everything correctly, then the chances are good that it will.
28338  Using Arduino / Networking, Protocols, and Devices / Re: How to send data to 2nd Arduino? on: April 26, 2012, 06:23:07 pm
There are several ways to get two Arduinos to talk to each other - Serial, I2C, and SPI. Exactly how to do each one has been documented, if you'd bothered to search.
28339  Using Arduino / Project Guidance / Re: Help with arduino Interrupts (for IR receiver) on: April 26, 2012, 04:57:09 pm
Quote
Here is the code, tell me what you think:
I think that Ken Shirriff has already written an IR library that does what you are attempting to do.
http://www.arcfn.com/2010/11/testing-arduino-ir-remote-library.html
28340  Using Arduino / Project Guidance / Re: Displaying output on a computer monitor? on: April 26, 2012, 04:45:13 pm
Quote
What I don't have is the knowledge after this point.  What is this Processing languauge, how do I use it, and how do I translate it to graphics on a screen?
http://www.processing.org
28341  Using Arduino / Project Guidance / Re: New audio/Light project on: April 26, 2012, 04:26:51 pm
The first thing that you'll discover is that the Arduino isn't all that good at processing audio data. It is too slow, for the most part. There are external hardware solutions that can perform most of the work of measuring the audio data and determining frequency bands. With one of those chips, half your work is done for you. Spend some time in the Audio section of the forum.
28342  Using Arduino / Project Guidance / Re: Arduino beginner on: April 26, 2012, 04:22:48 pm
Quote
basically i want the robot to avoid obstacles as something to start with so im not worried abt navigation now ,
That's simple, then. Don't move. Nothing will be in the way, then.

Your robot needs a purpose - even if that purpose is to wander around aimlessly. You haven't defined a purpose, so it is impossible to tell you what to do.

You should start, though, by learning to connect, and read, the sensors that you have. Then, learn to connect, and control, the motor shield and motors and batteries.  When you have some idea how each piece works, you'll have a better idea what the robot can do, and how the software pieces fit together.
28343  Using Arduino / Programming Questions / Re: what does baud stand for? on: April 26, 2012, 04:17:57 pm
http://www.pccompci.com/Baud_Rate.html

Quote
Named after J. M. Emile Baudot (1845-1903), who was a French telegraph operator, who worked out a five-level code (five bits per character) for telegraphs? It was standardized as International Telegraph Alphabet Number 2, and is commonly called Baudot (and is a predecessor to ASCII). Since 2^5 is only 32 and the uppercase letters, numbers, and a few punctuation characters add to more than that, Baudot uses Shift In and Shift Out characters (analogous to how the Caps Lock key on a PC keyboard reduces the number of keys needed by enabling each letter key to represent two characters).
28344  Using Arduino / Project Guidance / Re: Help with a project on: April 26, 2012, 02:35:36 pm
As a hint, you'll need to keep track of the previous value, to compare to the current value. Perform the action only when the new and old values are not on the same side of 500.
28345  Using Arduino / Project Guidance / Re: Build a Simple Robot! on: April 26, 2012, 02:29:34 pm
Quote
In fact, I found how to do this but it doesn't work properly and I don't understand the code.
The code does indeed work. What it does, and what you expect it to do are most likely not the same thing. What either one of those things is is a mystery, though.
28346  Using Arduino / Project Guidance / Re: Strange LCD behavior on: April 26, 2012, 02:27:37 pm
It would be better to keep the strings NULL terminated. Every time you add a character, add a NULL. As it is, you only append a NULL to Tmessage when an F is received. No F, no NULL.

Remember, serial data arrives ssslllooowwwlllyyy. Loop may be called several million times between the first character arriving and the F arriving. Well, it would if those silly delay()s weren't there.

Your indenting makes it unclear exactly when Hmessage is NULL terminated.

Now, please try again to explain what the problem is, including where the serial data comes from.
28347  Using Arduino / Project Guidance / Re: Arduino beginner on: April 26, 2012, 02:19:30 pm
Quote
can you give me a kick start then or guide me on how to start this,,
Oh, sure. Here's a start

Code:
// Global variables go here

void setup()
{
  // Do whatever you need to do here
}

void loop()
{
   // stuff done all the time goes here
}

You'll get less smart-ass answers if you define what the robot is supposed to do. Sit there and look pretty can be done with the above sketch.
28348  Using Arduino / Networking, Protocols, and Devices / Re: two arduinos communicating together?? on: April 26, 2012, 02:15:59 pm
Quote
I uploade botch sketches into my main arduino and gives me errors?
Does it or doesn't it? Only you can answer that.

Learning when to use a ?, and when not to, would serve you well.

If you are seeing errors, it would be good of you to share them. Otherwise, we can only assume that it is operator error.
28349  Using Arduino / Project Guidance / Re: Precise (in time) event logging. ~100ns required. on: April 26, 2012, 02:10:08 pm
Quote
Well, of course, there's the problem - most instructions take at least one cycle.
I was under the impression that the ALL take at least one cycle. Are there some that take less than one cycle?






Yeah, yeah, I know. I'm a smart ass sometimes.
28350  Using Arduino / Project Guidance / Re: Arduino beginner on: April 26, 2012, 01:50:56 pm
Quote
I have a 4 wheeled moblie robot and i need to program it
With those requirements, you should be done in no time.
Pages: 1 ... 1888 1889 [1890] 1891 1892 ... 3355