Show Posts
Pages: 1 ... 30 31 [32] 33 34 ... 97
466  Using Arduino / General Electronics / Re: SOIC breakout board needed on: July 01, 2013, 12:08:51 pm
These aren't as fancy but I've had no problems with them:

467  Using Arduino / Project Guidance / Re: Teensy 3.0 help. on: June 30, 2013, 04:42:14 pm
the pins above and under the board are overlapping each other
Which pins?

How do I access both function on the same pin
Each pin can only have one function at a time.
Which functions do you mean?

Why don't you post this in the PJRC forum?

468  Using Arduino / Programming Questions / Re: Having trouble with a AT25640B EEPROM on: June 29, 2013, 04:24:19 pm
You must do the WREN as a separate command.
    // WREN command
    digitalWrite(7, LOW);
    digitalWrite(7, HIGH);

    // WREN delay - some chips need a delay after a WREN

    // Write command
    digitalWrite(7, LOW);
    digitalWrite(7, HIGH);

469  Using Arduino / Programming Questions / Re: full adder/subtracter with carry on: June 28, 2013, 02:16:42 pm
Just construct a 16-bit integer with the hi and lo bytes, add 1, and you're done.

470  Using Arduino / Sensors / Re: DS18B20 NOT RESPONDING on: June 28, 2013, 12:35:42 pm
Need to see your code. Is it set up to connect to ds18b20 using 5V or parasite power?
You could also try a lower pullup resistor - 3.3k or even 1.5k.

471  Using Arduino / Project Guidance / Re: arduino maths integral calculus on: June 25, 2013, 07:53:44 pm
algebra statements such as a=b+c in c/c++
That's not an algebraic statement. It's an assignment statement.

472  Community / Bar Sport / Re: Ask your nix questions here instead? on: June 25, 2013, 05:26:11 pm
But if it's a directory "tree" then why is the root directory at the top?
A good question.
Whenever I've seen a representation of a hierarchical directory structure drawn (or when I've drawn it myself), the root is always at the top. So ".." is up.
But a tree's root system can "branch" just as much below ground as the branches above ground do. Perhaps the "root" directory ought to be called the "trunk" directory and then you could take your pick whether ".." goes up or down smiley

473  Community / Bar Sport / Re: Ask your nix questions here instead? on: June 25, 2013, 03:16:34 pm
".." is one directory level down
I would call it "up" not down.

If you are in directory /home/whatever/mydir and you refer to ../some_file then you are referring to /home/whatever/some_file

474  Using Arduino / Programming Questions / Re: randomseed problem on: June 23, 2013, 07:21:34 pm
You should post your problem in this thread:

475  Using Arduino / Audio / Re: CM8870 arduino problem on: June 22, 2013, 04:45:46 pm
You aren't checking whether the chip has detected a valid tone. Pin 15 will go high when a valid tone has been detected and the BCD output is valid.
You need to wire pin 15 to a digital input. Then the code can just loop waiting for that pin to go high. When it does, read all four data pins, and then wait for pin 15 to go low.

// The digital pin where the chips pin15 is connected
#define Pin15 7

// In setup Pin15 must be declared an input with pullup
// pinMode(Pin15,INPUT_PULLUP);

void loop(void)
  // wait for pin 15 to go high
  int a=digitalRead(6);
  int b=digitalRead(5);
  int c=digitalRead(4);
  int d=digitalRead(3);

  // Wait for pin 15 to go low again.

476  Using Arduino / Programming Questions / Re: Mouse Code issue with Teensy 2.0 on: June 21, 2013, 04:17:26 pm
You'd be a lot better off posting in a forum at
and when/if you do, use code tags there too.

477  Using Arduino / Networking, Protocols, and Devices / Re: RTC Module Not Updating Time from Computer - Please Help ! on: June 19, 2013, 03:39:51 pm
The code in this comment isn't right:
  /*Wire.beginTransmission(0x68);//DS1307 write the initial time
  Wire.requestFrom(0x68, 7);

The requestFrom initiates a read operation. If you use this to set the initial date/time, it isn't going to work properly. Remove the requestFrom statement.

478  Using Arduino / Programming Questions / Re: SoftwareSerial and float numbers on: June 19, 2013, 11:18:23 am
Arghh. Wotinell was I thinking of? Oh yes. It's sprintf that doesn't do floats.
My bad.

479  Using Arduino / Programming Questions / Re: Some questions about the Goertzel algorithm and ADC conversions on: June 18, 2013, 09:24:31 pm
  byte jH = ADCH;
If ADCH returns a 10-bit result, you're going to have trouble cramming it into 8 bits.

I don't trust pow(), I would write this as:

480  Using Arduino / Project Guidance / Re: Help with multiple DS18S20 sensors and remote data-logging on: June 18, 2013, 09:01:23 pm
I agree that the worst part might be getting a 100m string of ds18s20 to work but I would have thought that a Mega would be massive overkill for just a string of DS18S20 plus perhaps a uSD/EEPROM and an RTC. Apart from power and ground, the string of DS18B20 will all be on one pin. The remaining pins will depend upon which type of devices are used but even if you use both SPI for a uSD (4 pins) and I2C (2pins) for an RTC. It could easily be done on a Nano with spare pins to use if light intensity and humidity sensors are added.

Pages: 1 ... 30 31 [32] 33 34 ... 97