Show Posts
Pages: 1 ... 24 25 [26] 27 28 ... 113
376  Using Arduino / Storage / Re: SD.exists(myFile) ie variable file name...how? on: January 01, 2014, 04:21:48 pm
Quote
Would it have worked with a char array?
Yes. Give it a shot and avoid using String.

Pete
377  Community / Bar Sport / Re: What do you call a citizen of the United Kingdom? on: January 01, 2014, 03:34:01 pm
My Chambers 20th Century Dictionary (yeah, it's getting old), defines Briton as:
a native or citizen of Great Britain or of any of the associated states.

I've seen the BBC website use it.

Pete
378  Community / Bar Sport / Re: What do you call a citizen of the United Kingdom? on: January 01, 2014, 02:22:14 pm
Briton


Pete
379  Using Arduino / Project Guidance / Re: Sending data from an arduino to another arduino using modulation and antennas on: December 31, 2013, 05:55:16 pm
You are going to need a radio receiver of one sort or another to detect the signal. There's no way that an Arduino can receive and demodulate a 10MHz radio signal on its own.

Pete
380  Using Arduino / Project Guidance / Re: Sending data from an arduino to another arduino using modulation and antennas on: December 31, 2013, 03:34:39 pm
Which FSK modulation chip are you using? Datasheet?

Pete
381  Using Arduino / Storage / Re: Cannot Read/Write to an 24LC256 EEPROM chip on: December 31, 2013, 11:15:49 am
In the first sketch, try adding
Code:
  while(!Serial);
after Serial.begin

Pete
382  Using Arduino / Storage / Re: Cannot Read/Write to an 24LC256 EEPROM chip on: December 31, 2013, 11:12:37 am
Your first sketch works for me.

The second one won't work because it is only writing one address byte in the read and write functions.

Pete
383  Using Arduino / Interfacing w/ Software on the Computer / Re: Serial Port Not Reading Correctly on: December 30, 2013, 09:19:14 pm
Why did you do this? It was right before.
Code:
if (Serial.read() > 0) {

Pete
384  Using Arduino / Interfacing w/ Software on the Computer / Re: Serial Port Not Reading Correctly on: December 30, 2013, 08:42:06 pm
You are printing each character as a decimal number. Each character is represented using ASCII code. Look up an ASCII table on Google. You'll find that the character for 1 is represented by the decimal number 49.
Changing "int input" to "byte input" will cause the variable to be printed as a character instead of as a decimal number.

Pete
385  Using Arduino / Interfacing w/ Software on the Computer / Re: Serial Port Not Reading Correctly on: December 30, 2013, 08:23:36 pm
That output is correct (of course).
If Serial.available() is non-zero, which is what you test for, you are only guaranteed that there is at least one character in the queue. You are reading two.

Pete
386  Using Arduino / Programming Questions / Re: use of timer and to check code please on: December 30, 2013, 07:56:06 pm
Code:
    if(seconds == 55){ //every 55 seconds
That won't be every 55 seconds. It will occur every 60 seconds. Every minute your code will call one() and then five seconds later it will call two().
But, as MarkT has pointed out, you must not use Serial in an interrupt routine.

Pete
387  Using Arduino / Displays / Re: Hello World Not Working on: December 30, 2013, 07:46:29 pm
Are you using a flux pen when you solder? If not, I recommend that you get one. It makes a huge difference.

Pete
388  Using Arduino / Programming Questions / Re: Is 'volatile' keyword required in this ISR? on: December 30, 2013, 07:31:09 pm
The runtime environment doesn't need to know. Declaring a variable as static within a function makes it act as if it was declared global (i.e. initialized at bootup) but it is only accessible from within the function.

Pete
389  Using Arduino / Storage / Re: SDfat methods to handle card removal and reinsertion without cycling power? on: December 30, 2013, 04:38:07 pm
Have you jumpered the PJRC adapter to connect the SWitch pin which indicates whether a card is present?
I haven't tried tried closing and then opening the uSD card on-the-fly, but when a card insertion is detected I force the processor (Teensy++2) to reboot.

Pete
390  Using Arduino / Programming Questions / Re: Opening serial monitor crashes arduino!!! on: December 30, 2013, 02:11:07 pm
Which firmware are you talking about?
The current Arduino IDE version is 1.0.5

Can a Mac user help out here? I use Windows.

Pete
Pages: 1 ... 24 25 [26] 27 28 ... 113