Show Posts
Pages: [1] 2 3 ... 105
1  Community / Website and Forum / Re: He's back! on: July 23, 2014, 10:19:26 am
Well, duh!

Pete
2  Using Arduino / Programming Questions / Re: Help with boolean query, 'const char*' to 'const unsigned char*' on: July 22, 2014, 07:18:02 pm
P.S. where is the crcverify function? I can't find it in the crc16 library.

Pete
3  Using Arduino / Programming Questions / Re: Help with boolean query, 'const char*' to 'const unsigned char*' on: July 22, 2014, 07:09:10 pm
A CRC can be calculated on arbitrary binary values - not just ASCII strings - so the definition uses unsigned char*.

Pete
4  Using Arduino / Displays / Re: black bars on new esplora tft screen on: July 22, 2014, 12:27:41 pm
The diagram here shows a pin labelled BL. Just wondering if it is BackLight. If not, I'm outta ideas.

Pete
5  Using Arduino / Displays / Re: black bars on new esplora tft screen on: July 22, 2014, 12:16:29 pm
Is there an adjustment for the backlight? It is probably not set properly.

Pete
6  Community / Website and Forum / Re: He's back! on: July 22, 2014, 11:14:17 am
I meant that he's not posting as "just" a user, but as a mod.

Pete
7  Using Arduino / Networking, Protocols, and Devices / Re: Anlog transmission over long distance on: July 22, 2014, 11:06:58 am
Presumably you want your computer to either display the number, or add the value to a graph. Either way, you don't need a DAC - the number itself is sufficient.

Pete
8  Using Arduino / Networking, Protocols, and Devices / Re: Anlog transmission over long distance on: July 22, 2014, 10:05:43 am
Why convert the digital signal back to analog? What sort of analog display would you use to read the analog value?

You could use, for example, a 2x16 LCD display with each column displaying the level of one LDR.

Pete
9  Using Arduino / Programming Questions / Re: A C vs C++ trivia question about integer constants on: July 20, 2014, 09:04:56 pm
In the case of the shift operators, I don't think it matters whether the number of bits being shifted is specified as long or 16-bit int - what matters is the type of the number being shifted.
Code:
// This results in zero
long foo = 1 << 16;
// This also results in zero
foo = 1 << 16L;
// but this gives 65536
foo = 1L << 16;

Pete
10  Community / Website and Forum / He's back! on: July 20, 2014, 05:07:50 pm
Unless my tired old eyes deceive me, Nick Gammon is back and is a global moderator.
http://forum.arduino.cc/index.php?topic=256037.0

Welcome back Nick.

Pete
11  Using Arduino / Programming Questions / Re: A C vs C++ trivia question about integer constants on: July 20, 2014, 04:22:56 pm
Post a sketch which demonstrates the bogus results.

This sketch prints 65536 as expected:
Code:
void setup(void)
{
  Serial.begin(9600);
  while(!Serial);

  long result;
  long r = 1;
  result = (r << 16);
  Serial.println(result);
}

void loop(void)
{
}

Pete
12  Using Arduino / Storage / Re: Unable to work with 1Mbit EEPROM on: July 20, 2014, 12:43:04 pm
Quote
I can't address the upper 64K bytes of the memory
You can't be setting the B0 bit correctly so post an example of your code which tries to address the upper 64k - in [code] [/code] tags please.

Pete
13  Using Arduino / Storage / Re: Teensy 3.1 / Data Logging / SD Card / Latency / Non-Blocking SDFAT Library on: July 20, 2014, 12:34:52 pm
You'd probably be better off asking in the PJRC Teensy forum.
http://forum.pjrc.com/forum.php

Pete
14  Using Arduino / Sensors / Re: O2 sensor to Arduino Uno on: July 20, 2014, 11:02:22 am
Quote
no O2, right?
Wrong. Complete combustion will just leave excess O2. But if the smokestack is working properly, it doesn't matter what goes up the chimney. The problem occurs if the chimney is blocked somehow and combustion products are emitted into the garage. IMO you need a carbon monoxide (CO - not CO2) detector in the garage. You must also ensure that there is sufficient air flow in the garage to provide sufficient O2 to the stove to minimize the possibility of CO production.
You must also check to find out what local building codes apply to the installation of a stove.

Pete


15  Using Arduino / Programming Questions / Re: Help concatenating *chars on: July 19, 2014, 10:10:20 pm
str needs to be declared as a character array with enough room to hold all the characters that you are storing, plus the null on the end. Try:
Code:
char str[24];

Also, this statement:
Code:
  strcpy (str,lineId);
is going to give you problems because lineId is not a string. Either change it to a string or use sprintf to convert it to a string.

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