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:
http://www.ebay.com/itm/20PCS-SOP8-SO8-SOIC8-TO-DIP8-Interposer-board-pcb-Board-Adapter-Plate-/310575279861?pt=LH_DefaultDomain_0&hash=item484fbaaef5

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

Quote
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? http://forum.pjrc.com/forum.php

Pete
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.
Code:
    // WREN command
    digitalWrite(7, LOW);
    SPI.transfer(0x06);
    digitalWrite(7, HIGH);

    // WREN delay - some chips need a delay after a WREN
    delay(10);

    // Write command
    digitalWrite(7, LOW);
    SPI.transfer(0x02);
    SPI.transfer(0x00);
    SPI.transfer(0x00);
    SPI.transfer(0xAA);
    digitalWrite(7, HIGH);

Pete
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.

Pete
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.

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

Pete
472  Community / Bar Sport / Re: Ask your nix questions here instead? on: June 25, 2013, 05:26:11 pm
Quote
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

Pete
473  Community / Bar Sport / Re: Ask your nix questions here instead? on: June 25, 2013, 03:16:34 pm
Quote
".." 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

Pete
474  Using Arduino / Programming Questions / Re: randomseed problem on: June 23, 2013, 07:21:34 pm
You should post your problem in this thread:
http://forum.arduino.cc/index.php?topic=118440.0


Pete
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.

Code:
// 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
  while(!digitalRead(Pin15));
  int a=digitalRead(6);
  int b=digitalRead(5);
  int c=digitalRead(4);
  int d=digitalRead(3);

  Serial.println(a);
  Serial.println(b);
  Serial.println(c);
  Serial.println(d);
  // Wait for pin 15 to go low again.
  while(digitalRead(Pin15));
}

Pete
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 http://forum.pjrc.com/forum.php
and when/if you do, use code tags there too.

Pete
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:
Code:
  /*Wire.beginTransmission(0x68);//DS1307 write the initial time
  Wire.write(0);
  Wire.requestFrom(0x68, 7);
  Wire.write(bin_to_bcd(seconds));
  Wire.write(bin_to_bcd(minutes));
  ...

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.

Pete
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.

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


Code:
mag=sqrt(pow(Q1,2)+pow(Q2,2)-Q1*Q2*coeff);
I don't trust pow(), I would write this as:
Code:
mag=sqrt(Q1*Q1+Q2*Q2-Q1*Q2*coeff);

Pete
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.



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