Show Posts
Pages: 1 ... 70 71 [72] 73 74 ... 118
1066  Community / Bar Sport / Re: RANT ALERT: All the college / uni project questions on: January 22, 2013, 03:08:53 pm
I'm cynical enough to know that a competition for token cynic would be rigged against me. Thus, the preemptive strike.

Pete
1067  Using Arduino / Programming Questions / Re: Is it possible to reduce a sketch size be modifying libraries? on: January 22, 2013, 03:05:57 pm
The SD library code is large but its RAM requirement is also large and I presume that that is what you are really running into. As Jimmy60 has pointed out, one way to get around it is to put just the SD part in another Arduino.
Another way would be to replace the SD in the original sketch with an I2C EEPROM and store the data in a raw form. Then write a separate sketch which extracts that data in its verbose form as and when required. You'd just have to figure out what size of EEPROM you would need to hold sufficient data so that the data extraction doesn't have to be performed too often.

Pete
1068  Community / Bar Sport / Re: RANT ALERT: All the college / uni project questions on: January 22, 2013, 01:56:20 pm
Quote
One token 'Grumpy' is enough for any one site.
I'll be the token cynic :-)

Pete
1069  Community / Bar Sport / Re: RANT ALERT: All the college / uni project questions on: January 22, 2013, 11:24:22 am
I'm getting old and cynical but I do not believe for one nanosecond that the vast majority of these people are at "uni". There is simply no way that someone could get to their "final year project at uni" and be so clueless about electronics and/or programming unless they are majoring in stupidity and sloth.
Most of these so-called "final projects" (some even have the gall to call it a thesis) are also so fundamentally trivial that I cannot believe, for that same nanosecond, that any self-respecting "uni" would accept the project as worthwhile and worthy of what are presented as being degree granting institutions.
Occams' Razor strongly suggests to me that these threads are initiated by spotty 14-year olds who are just trolling and having "fun".

Pete
1070  Using Arduino / Project Guidance / Re: Geocache only open when sun is up on: January 21, 2013, 07:08:20 pm
Search for Reverse Geocache in the forum and on Google. That should get you started.

Pete
1071  Using Arduino / Programming Questions / Re: Counting seconds on: January 20, 2013, 10:15:20 pm
You have declared to be local to the loop function so every time you enter loop() the count variable is created anew and initialized to one. You should declare it to be global (outside loop) so that it won't be regenerated all the time.
Code:
void setup() {
    Serial.begin(9600);
    int count=0;
}

int count = 0;
void loop() {
  count = count + 1;
  Serial.println(count);
  delay(1000);
}

Pete
1072  Using Arduino / Programming Questions / Re: guitar frequencies on: January 19, 2013, 04:51:33 pm
That code claims to start Timer1 interrupting every microsecond and then has an ISR routine that:
- can't possibly execute in less than a microsecond
- calls Serial.print (as PaulS has pointed out)
- calls delayMicroseconds(15) inside a loop that is executed a minimum of 36000 times and (if that's not enough silliness) it also calls delayMicroseconds(2) in a loop that executes a minimum of 270000 times.
It therefore can't possibly be sampling the audio at a consistent rate which would permit it to detect an audio tone (even if the code's detection method could actually work in the first place).

Pete

1073  Using Arduino / Interfacing w/ Software on the Computer / Re: Reading serial data coming from arduino in c++? on: January 19, 2013, 10:38:37 am
Quote
ard.ReadData( buf, 256 );
You've told it that it can read up to 256 characters into buf, BUT
Quote
char *buf = "0";
buf points to a string containing only one character and the null on the end.

Pete
1074  Using Arduino / Project Guidance / Re: Project with Arduino & DSP kit on: January 17, 2013, 11:05:36 am
What is the DSP kit?

Pete
1075  Development / Other Software Development / Re: String Encryption for Uno (ATMega328) on: January 16, 2013, 04:56:51 pm
Quote
I have tried existing libraries without success
You haven't said what failed. Why not post some code which demonstrates the problem?

Pete
1076  Topics / Science and Measurement / Re: Floating Point Co-Processor on: January 16, 2013, 10:29:49 am
Yep, or even just a faster computer without floating point hardware. The fpu emulation might be fast enough that some apps will work without fpu hardware.

Pete
1077  Using Arduino / Networking, Protocols, and Devices / Re: Wierd problem using Strings() ???? on: January 16, 2013, 10:22:07 am
Don't use the String library. The Arduino does not have enough ram (only 2kB) to do anything other than trivial things with Strings.
You will have to convert your code to use character string arrays (C-style null-terminated strings).

Pete
1078  Topics / Science and Measurement / Re: Floating Point Co-Processor on: January 15, 2013, 06:12:50 pm
I have the 32-bit one. IMHO it isn't really useful for a 16MHz Arduino. IIRC the FPU is based on a processor whose clock is only twice as fast as the Arduino and it doesn't have floating point hardware. The thing that kills it is the amount of time required to send your data to the FPU and then get the results back. If you want to offload some computations while the Arduino does something else it might be useful.
Before you buy one read the instruction timings in the data sheet, figure out how much data you have to shovel in and out and decided whether it will save you any time.
[addendum]
I should mention that it has several features that I haven't used. For example the NMEA sentence parser and 2 12-bit A/D converters
Pete
1079  Using Arduino / Project Guidance / Re: Excel sheet With arduino UNO on: January 15, 2013, 12:32:15 pm
You have to print a comma between each pair of values.
Code:
    myFile.print(variable1);
    myFile.print(",");
    myFile.println(variable2);

Pete
1080  Using Arduino / Audio / Re: DTMF decoder library on: January 15, 2013, 11:03:41 am
The code could be modified to handle six inputs but it would slow down the sampling rate quite substantially which would change the characteristics of the detection.
A better way to handle the audio sampling is to use a timer interrupt and do the detection on-the-fly but in either case you would probably need a faster processor to handle six channels.

Pete
Pages: 1 ... 70 71 [72] 73 74 ... 118