Show Posts
Pages: [1] 2 3 ... 111
1  Using Arduino / General Electronics / Re: PIR false positives on: August 30, 2014, 09:45:57 am
Now post your code (in code tags).

Pete
2  Using Arduino / Programming Questions / Re: Don't stop believing playing on my arduino. on: August 29, 2014, 10:28:04 am
The for loop plays eight notes and stops. Change it to this:
Code:
  // iterate over the notes of the melody:
  for (int thisNote = 0; thisNote < sizeof(melody)/2; thisNote++) {

Pete
3  Using Arduino / General Electronics / Re: PIR false positives on: August 28, 2014, 09:52:36 pm
Do you have a pullup resistor on the alarm pin?

Pete
4  Using Arduino / Programming Questions / Re: Variables - Convert 16 bit into 2x 8 bit and vice versa on: August 28, 2014, 08:47:21 pm
You don't need to mask the low order byte. This works.
Code:
byte Lo = Data;

Pete
5  Using Arduino / Programming Questions / Re: Cannot convert serial input from int to ASCII using atoi function on: August 27, 2014, 10:49:42 am
The code in message #9 prints:
Code:
byteReceived count 4
Received: 1234
To make the ASCII value an int: 1234
val = 1234

All of which is correct and as expected.
What is wrong with "To make the ASCII value an int: 1234"?

Pete
6  Using Arduino / Networking, Protocols, and Devices / Re: Coordinates on: August 26, 2014, 06:15:40 pm
I don't think the GSM shield has GPS in which case you can't find out where it is.

Pete
7  Using Arduino / Networking, Protocols, and Devices / Re: Stuck with RTC on I2C. on: August 25, 2014, 09:26:14 pm
Quote
I have two different types of RTC units.
What kind are they?

Pete
8  Using Arduino / Networking, Protocols, and Devices / Re: low cost frequency generation, DDS vs GPS ~= 20ppm vs 0.01ppb on: August 25, 2014, 07:29:36 pm
It gives a link to the DDS board but not to the "NS-T precision timing mode receiver". What is that?

Pete
9  Using Arduino / Sensors / Re: How to read DS3231 Internal temperature sensor, example code on: August 25, 2014, 12:28:16 pm
No, declare the temp as I showed in the comment. It must be signed. Either "short temp;" or "int16 temp;" will do.

Pete
10  Community / Website and Forum / Re: Forum no longer reloads automatically on: August 25, 2014, 11:19:36 am
I noticed the same thing last night but this morning it is working again.

Pete
11  Using Arduino / Sensors / Re: How to read DS3231 Internal temperature sensor, example code on: August 25, 2014, 11:14:54 am
You aren't doing the conversion properly. The Arduino uses twos complement arithmetic so there's no need to convert. Also, the fraction is part of the twos complement number but you are treating it separately.
I use this code:
Code:
  /*   short temp; */
  temp = Wire.read() << 8;
  temp |= Wire.read();
  return(temp/256.);

Pete
12  Using Arduino / Networking, Protocols, and Devices / Re: DS3234 No Battery Backup on: August 24, 2014, 06:53:33 pm
The datasheet says that the EOSC bit is set to zero on power up so writing zero to the register will have no effect.
Are you sure the battery is the correct voltage (check it on a multimeter) and is it in the right way round?

Pete
13  Using Arduino / Sensors / Re: Trouble with execution of Adafruit Fingerprint Sensor on: August 24, 2014, 06:45:20 pm
The first thing you need to do is read How to post code properly
Then edit your second post (use the Modify button) and put code tags around your code so that it is more readable.

Pete
14  Using Arduino / Sensors / Re: When IRResiver plugged in Arduino goes crazy, but not immediately. on: August 24, 2014, 02:45:07 pm
You are probably running out of ram because you are using the String class. Get rid of it and use C null-terminated strings instead.

Pete
15  Using Arduino / Displays / Re: Cartesian coordinate system TFT Seeed shield v1 on: August 24, 2014, 02:41:04 pm
You need to check how the library expects the coordinates to provided. Some libraries/drivers use function(x,y) whereas others use function(y,x).

Pete
Pages: [1] 2 3 ... 111