Show Posts
Pages: 1 2 [3] 4 5 ... 3234
31  Using Arduino / Project Guidance / Re: Servo Stop Watch on: July 09, 2014, 10:18:09 am
      if (angle = 180)
Assigning a value to a variable in an if statement rarely proves useful. ==!

32  Community / Website and Forum / Re: Logout link on: July 09, 2014, 08:04:42 am
Are you aware that the userpicture dropdown list includes "Sign out"?
33  Using Arduino / Programming Questions / Re: Outputting a String with Serial.println() doesn’t work. Why? on: July 09, 2014, 07:59:01 am
Is there a way I can use PROGMEM or the like for #define statements?
No. You need to do some research to learn what a #define statement does. Then, quit misusing them that way.
34  Using Arduino / Project Guidance / Re: question re' controlling stepper with potentiometer (easy driver) on: July 09, 2014, 07:41:04 am
Basically my project is to run a stepper forwards or backwards continuously via turning a potentiometer either way about a central point on the pot, and to include both speed & direction control from one potentiometer ideally. 
The potentiometer will be connected to an analog pin. The pin will be read using analogRead(). Suppose that the reading is 723.

How is that value supposed to be used to make a stepper motor step?
35  Using Arduino / Programming Questions / Re: Smoothing a float value on: July 09, 2014, 07:32:26 am
If I want to "smooth" an analog value, but still keep 1 decimal point.
What does this mean? An analog value is an integer. That's what analogRead() returns.

If you want the average as a float, instead of an int, that is a different issue.
36  Using Arduino / Storage / Re: store to eeprom on: July 09, 2014, 06:52:43 am
How can I store this modbus code to eeprom?
You can't usefully store code in EEPROM.

Actually I don't know how eeprom works .
No kidding?

  Mb.R[0] = (analogRead(A0));
  Mb.R[1] = (analogRead(A1));
  Mb.R[2] = (analogRead(A2));
  Mb.R[3] = (analogRead(A3));
  Mb.R[4] = (analogRead(A4));
  Mb.R[5] = (analogRead(A5));
(What's) (with) (all) (the) (useless) (parentheses) (?)

37  Using Arduino / Networking, Protocols, and Devices / Re: To get continuous data from a rocket going ~mach 1.5 can I use an Xbee Pro? on: July 09, 2014, 06:48:54 am
but can the XBee Pro 900 transmit while going that fast
Of course it can. The speed it is moving is irrelevant. It will be able to transmit.

What is the supposed range of the XBee Pro 900? Have you tested that you get reliable communication at the 10,000 foot distance you need?

does the speed/altitude have any affect on the wireless signal of the 900?
Speed and altitude don't affect radio waves. Whether the distance is excessive, or not, remains to be seen.

38  Using Arduino / Interfacing w/ Software on the Computer / Re: Control thermal printer through openframeworks. on: July 09, 2014, 06:43:02 am
tempOutputFile << "\n  ";
On the receiver, where are you accounting for having sent this crap?
39  Using Arduino / Interfacing w/ Software on the Computer / Re: Multiple Serial Communication On Arduino UNO on: July 09, 2014, 06:38:34 am
Is there anything wrong with my configuration?
Plenty. Your layout looks like shit, for starters. Use Tools + Auto Format to layout your code so that it is readable.

Get rid of the useless comments. If the comment is important enough to include, it goes on a line by itself.

Where do you actually read from portOne? Why is the one instance called portOne while the other is called myserial? The names should reflect what is attached to the SoftwareSerial instances. I'm 99.999% certain that you have not attached a myserial to pins 2 and 3.
40  Using Arduino / Programming Questions / Re: Gesture Control Car Using MPU6050+nRF24l01 (Help me, quickly!) on: July 09, 2014, 06:30:56 am
Specifically, what is the problem?
41  Using Arduino / Programming Questions / Re: Problem making a third part library: works on Micro but not on Due on: July 09, 2014, 05:29:53 am
Does the IDE include AltSoftSerial even if in mainLoop.ino I use
Yes, it odes. When the IDE scans the code it is looking for #include statements. It does NOT care that they will not actually be part of the cpp file that the compiler will see.

Do you think there is anyway to handle this problem instead of changing most of the AltSoftSerial library?
Don't use the IDE. If you do, you must make AltSoftSerial compile when the board is the Due. It really isn't that hard.

In the header file, inside the inclusion guard, add:
#if !defined (whatever makes it a due)

At the bottom, before the #endif, add another #endif.

Do the same in the source file. When the compiler sees the AltSoftSerial.cpp file, it will appear to be empty, and the class definition in the header file won't exist. Empty files compile easily.
42  Using Arduino / Programming Questions / Re: How To Get MAC Address of Arduino or GSM Shield? on: July 09, 2014, 05:09:51 am
Is it possible to extract the MAC address of the Arduino
The Arduino doesn't have a MAC address.

and/or the MAC address of the GSM shield?
43  Using Arduino / Programming Questions / Re: Neopixel Fading on: July 09, 2014, 05:03:47 am
What am i doing wrong?
You are not making any attempt to debug your own code. Where are your Serial.print() statements that would tell you what is happening?

Why are you mixing types? Either use nothing but the _t types or don't use them at all.

The { on the same line as the statement, and the inconsistent indenting makes your code hard to read. Put EVERY { on a new line. Use Tools + Auto Format.
44  Using Arduino / Programming Questions / Re: Errors making a library on: July 09, 2014, 04:59:33 am
No one has ever been able to make one library include another one, and hide that fact from the sketch. You will NOT be the first to accomplish this.
45  Using Arduino / Programming Questions / Re: RPM measurement without attachInterrupt? on: July 09, 2014, 04:56:17 am
Is there a way to avoid using attachInterrupt() without making my code longer?
Pages: 1 2 [3] 4 5 ... 3234