Show Posts
Pages: 1 2 [3] 4 5 ... 106
31  Using Arduino / Programming Questions / Re: Equation giving different results on: July 16, 2014, 10:10:29 am
The problem is that a newbie might interpret "the compiler guessed wrong" literally. I would have had no problem if the statement had been "the programmer guessed wrong".

Pete
32  Community / Website and Forum / Re: Forum Font on: July 15, 2014, 05:14:11 pm
Agreed. The text looks like it was written with a leaking fountain pen. I've had to increase the size of the font (Control +) so that letters such as 'e' and 'a' aren't almost illegible blobs.

Pete
33  Using Arduino / Audio / Re: Arduino midi drums, midi issue...... on: July 15, 2014, 05:02:54 pm
There should be a special place in hell reserved for people who post yellow text.

Pete
34  Using Arduino / Programming Questions / Re: Equation giving different results on: July 15, 2014, 04:06:18 pm
The language specification defines how a compiler must handle things like precedence of operators (e.g. a*b + c) and mixed mode operations (e.g. the result of an int * float) and all the other aspects of the language.
There would hardly be any point trying to write a program if the first time you compiled the statement "a = b/5;" the compiler guessed that the 5 was an integer and the next time it guessed that it was a float.

Pete
35  Using Arduino / Programming Questions / Re: Programme stuck in setup on: July 15, 2014, 11:27:23 am
There's only one String object in the code. Change this:
Code:
String hdrstr =
to this:
Code:
char * hdrstr =

Pete
36  Using Arduino / Programming Questions / Re: Programme stuck in setup on: July 15, 2014, 10:55:28 am
What does your debugging output tell you? It also might be worth telling us what it prints.

Pete
37  Using Arduino / Programming Questions / Re: Equation giving different results on: July 15, 2014, 10:42:11 am
Quote
the compiler sometimes make a bad guess on how to handle the overall calculation.

The compiler doesn't guess.

Pete
38  Using Arduino / Programming Questions / Re: Program can't open file on SD card on: July 13, 2014, 09:32:51 pm
It is also best to avoid use of the String class. It will eventually cause you grief. Use C null_terminated strings instead.

Pete
39  Using Arduino / Programming Questions / Re: Program can't open file on SD card on: July 13, 2014, 09:29:49 pm
I think this:
Code:
if (myFile!=false) {

should be this:
Code:
if (myFile != NULL) {

Pete
40  Using Arduino / Storage / Re: SD Filenames on: July 12, 2014, 10:15:38 pm
You need to store a null at the end of the string. Try this:
Code:
        int i;
        for(i = 0; i < serialCommand.length(); i++) {
          sen[i] = serialCommand.charAt(i);
        }
        sen[i] = 0;

You should also make sure that the names you use are valid.
Pete
41  Using Arduino / Displays / Re: 16x2 HD44780 lcd screen displays garbage characters after some minutes of use on: July 12, 2014, 05:00:03 pm
I don't think it has anything to do with noise.
The problem is almost certainly because you are using the String object.
Change all occurrences of String to C null-terminated strings.

Pete
42  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, 03:35:47 pm
At an altitude of 10,000ft, the horizon is about 120 miles so the range isn't going to be a problem especially in a desert. I don't know what the Tx power is on an XBee Pro but if it is on the order of 100mW or more it should be plenty.

Pete
43  Using Arduino / Project Guidance / Re: Icom CI-V Arduino Control on: July 08, 2014, 08:41:05 pm
http://arduino.cc/en/Products.Compare

But I use a Teensy2. It has one serial port but Teensy doesn't use the serial port for upload so it can be used exclusively for the CI-V bus.

Pete
44  Using Arduino / Project Guidance / Re: Icom CI-V Arduino Control on: July 08, 2014, 05:48:29 pm
The CI-V protocol requires that you be able to read and write a serial character at the same time because CI-V requires that when you write a byte, you also read it back to make sure it is what you sent (the CI-V hardware "reflects" the Tx back into the Rx). When you use softwareserial you can't read a character while you are writing one.
You could use the Arduino's hardware Serial port on pins 0 and 1 but that makes development/debugging difficult.
It's much easier if you have an Arduino which has at least two hardware serial ports. You can then have program uploading done on the Serial port as usual, and have the CI-V bus connected to Serial1.
If you have a Teensy, it is even easier because Teensys use native USB to upload code (i.e. they don't use the Serial port to upload) so you can get away with, for example a Teensy2 which has one Serial port and use that for the CI-V bus.

Quote
how do you turn on civ transcieve mode
Quote
what baud rate does it work on?
See pages 46 and 47 in the manual. You can choose whatever baud rate you like. Start with 9600 and if that seems to be too slow, bump it up to 19200 or even higher - if the rig can go higher.

Pete
45  Using Arduino / Project Guidance / Re: Icom CI-V Arduino Control on: July 08, 2014, 12:45:03 pm
One quick data point. Hooking up an ICOM, or other RS232 device, can be done with software Serial but is a lot easier if you get an Arduino (or a Teensy) which has an extra hardware serial port.

Pete
Pages: 1 2 [3] 4 5 ... 106