Show Posts
Pages: [1] 2 3 ... 3060
1  Using Arduino / Interfacing w/ Software on the Computer / Re: PROCESSING + ARDUINO on: April 15, 2014, 02:29:15 pm
Code:
float stringKalmanX, stringKalmanY,stringKalmanZ;
This was as far as I read. If the variable IS a float, get rid of string from the name. These names look stupid, which reflects on you!

Code:
   println(Serial.list()); // Use this to print connected serial devices
What did this show? Is your Arduino really connected to the second port in the list?
2  Using Arduino / Interfacing w/ Software on the Computer / Re: First processing sketch on: April 15, 2014, 02:25:37 pm
Quote
would this work as a way to send data to Processing?
Yes.

Quote
Is there a better way?
Get rid of the delay().

Quote
... but it isn't working as intended.
I'm surprised it works at all, since there is no draw() method.

Quote
I would like the value to be updated each time it changes. Now it is just "printing" of top of the old one...
Perhaps you should clear the screen between calls to text().

Quote
How would it be possible to write the values to a file instead of displaying them on screen?
That would be a Processing question, wouldn't it? There are dozens of examples with Processing. I'm sure some deal with files.

3  Using Arduino / Programming Questions / Re: Encoder driver stepper motor, not work Arduino DUE - HELP! on: April 15, 2014, 02:19:11 pm
Quote
Do you have any solution.
To what?

Quote
You need to determine if the Due even supports external interrupts.
4  Using Arduino / Programming Questions / Re: Having trouble "inserting" new characters to a String object. on: April 15, 2014, 01:33:49 pm
Quote
Numbers printed in BIN are the constructed/decoded newByte and if you do the conversion they correspond to the message I showed in the first post. Serial.println(dMessage)  prints nothing.
And which ones are they? Some are obvious. But, it 0 in binary, hex, decimal? And, what does that number represent?

On can argue, and be perfectly correct, that binary, hex, and decimal output make no difference. But, if you really stuff a 0 into a String, that is a stop sign. Since you appear to put it in the 1st position, it is understandable why printing of the value stops when it sees the stop sign.

Now, this is exactly why anonymous output sucks. If there was text in front of each of those values, we'd know what they represented, and how they are used in the program, and not have to make assumptions.

I suggest that you try again.
5  Using Arduino / Programming Questions / Re: Encoder driver stepper motor, not work Arduino DUE - HELP! on: April 15, 2014, 01:27:19 pm
Quote
These pins are set out in the mini-16MHz 5V 328 version should work on DUO i think.
The should, but a Duo and Due are not the same thing. You need to determine if the Due even supports external interrupts. There are hints in the comments on the Due page that suggest that it does not.
6  Using Arduino / Programming Questions / Re: very very important - help me on: April 15, 2014, 01:22:01 pm
Quote
I seriously doubt in the activation of the library because this
#include <PS2X_lib.h>       don't Does not specify the color red
If the library wasn't installed properly, compilation would have failed. That it didn't means the library is in the correct place.

This thread my be very, very important to you, but the title is useless.

7  Using Arduino / Programming Questions / Re: error: expected primary-expression before '[' token on: April 15, 2014, 09:47:33 am
Code:
Serial.readBytes( byte[], 50 );
Nonsense. You can't allocate an array on the fly like this.
8  Using Arduino / Programming Questions / Re: Parsing a part of a string of unknown length on: April 15, 2014, 09:46:43 am
Code:
com.indexOf("AVRCP_MEDIA TITLE:") + 2
This will move the pointer to extract from to the R. Is that really what you want? Or, are you trying to move the pointer two places past the end of the string?
9  Using Arduino / Programming Questions / Re: Encoder driver stepper motor, not work Arduino DUE - HELP! on: April 15, 2014, 09:17:30 am
Code:
  if (digitalRead(encoder_a)==digitalRead(encoder_b)) {
digitalRead() is not all that fast. Direct port manipulation (that's a search term for you) would be faster.

But, on the DUE, it should be fast enough.

On the other hand, the product page does not say anything about which pins support external interrupts on the Due, so I wonder why you assumed you knew which pins to use.
10  Using Arduino / Programming Questions / Re: Parsing a part of a string of unknown length on: April 15, 2014, 09:10:25 am
Code:
 title = com.substring(com.indexOf('AVRCP_MEDIA TITLE:') + 2, com.indexOf("\n")); // extract the title part of the string
Single quotes are for single characters. Please take a photo of your keyboard. Import it into Paint, and draw a circle around the ONE key you pressed to get that one character you are looking for in the first call to indexOf(). Post that picture.
11  Using Arduino / Programming Questions / Re: Digital Pulse/Signal Counter using digitalRead ? on: April 15, 2014, 09:07:54 am
Quote
reply:
1. read the HIGH signal
But ignore the LOW?

Quote
2. yes, calculate the signal (RPM=(signal during 1 second) * 60
The signal is either HIGH or LOW. There is nothing to calculate. You want COUNT the number of times that the signal has BECOME HIGH in some period of time. The state change detection example might be useful.

Quote
3. can you help me?
I'm trying. But, this implies that you are willing to do some work. I haven't seen any evidence of that, yet.

Quote
4. yes, because my friend just suggest not help me anymore
I wonder why.

Quote
5. maybe free ? please
Clues are free. Help fixing your code is free. Writing code for you is not.
12  Using Arduino / Programming Questions / Re: Having trouble "inserting" new characters to a String object. on: April 15, 2014, 09:00:26 am
Quote
Any ideas what I'm missing?
All of your serial output.

Code:
delay(100);
WTF?
13  Using Arduino / Programming Questions / Re: Strange error message on: April 15, 2014, 07:57:38 am
Quote
For instance, what is this (.vectors+0x3c): relocation truncated to fit: R_AVR_13_PCREL against symbol `__vector_15' defined in .text section all about? Relocation... Huh?
The compiler generates .o files from the source files. The .o files use relative addresses. The linker combines the .o files, and converts the relative addresses to absolute addresses. This involves relocating data, from where a .o file thinks it is (the relative address) to where it really is, at run time (the absolute address).

The linker for the Arduino can only relocate blocks of data that are smaller than some (relatively large) size. When there is some issue with the data, that makes the linker think it is larger than it really is, the linker can not relocate that much data, so, it relocates when it can, and ignores (truncates) the rest of the data.
14  Using Arduino / Programming Questions / Re: Digital Pulse/Signal Counter using digitalRead ? on: April 15, 2014, 07:34:03 am
Quote
I want to read the signal
Which will either be HIGH or LOW.

Quote
and calculate it
it?

Quote
but i cant program this Arduino to read the signal
Well, you have our permission, so the problem is on your end.

Quote
my friend suggest me to use the digitalRead function and millis
So, did you?

Quote
Maybe you can give me a skecth to count the RPM described above.
I could SELL you one.
15  Using Arduino / Programming Questions / Re: I'm getting some sort of empty charactere in my serial port display??? on: April 15, 2014, 07:30:42 am
Code:
    if (Compte_retour=2){
The result of this assignment will always be 2. Is an assignment what you really want?
Pages: [1] 2 3 ... 3060