Show Posts
Pages: 1 ... 399 400 [401] 402 403 ... 590
6001  Using Arduino / Project Guidance / Re: GameCube Controller + Arduino (My First Project) on: March 11, 2012, 08:04:38 am
Did you provide a pull-up?  The article I found says they used a 1K pull up to 3.43V.  Will probably work with 3.3V.

http://www.int03.co.uk/crema/hardware/gamecube/gc-control.htm

The interface seems to require microsecond timing so you may need to set up a timer interrupt to send out command data and clock in received data.
6002  Using Arduino / General Electronics / Re: IR receiver , unusual remote DVD control on: March 11, 2012, 07:52:52 am
If the IRRemote library doesn't recognize the encoding scheme it will provide only the raw pulse times.  Here is an article about using unknown remotes:

http://www.arcfn.com/2010/01/using-arbitrary-remotes-with-arduino.html
6003  Using Arduino / Sensors / Re: Interfacing with Vernier pH probe on: March 11, 2012, 07:49:32 am
You have chosen the INTERNAL (1.1v) reference.  The pH=7 output of the probe is 1.75v so unless you are measuring a high pH you will always get 1023 counts.

According to the user manual (http://www.vernier.com/files/manuals/ph-bta.pdf): "The pH Sensor will produce a voltage of 1.75 volts in a pH 7 buffer. The voltage will increase by about 0.25 volts for every pH number decrease. The voltage will decrease by about 0.25 volts/pH number as the pH increases.

That means that the range of your probe outputs should be 0V (pH 14) to 3.5V (pH 0).  To cover that range you will want a reference voltage of at least 3.5V.  Try setting analogRefrence() to DEFAULT (5V).
6004  Using Arduino / Motors, Mechanics, and Power / Re: L293D Voltage Supply (Vs) Input Current...... on: March 11, 2012, 07:29:35 am
According to the datasheet, maximum continuous output current of each L293D output is 600 mA.

http://www.ti.com/lit/ds/symlink/l293.pdf
6005  Using Arduino / Project Guidance / Re: Need guidence on high resolution optical rotary encoder... on: March 11, 2012, 07:20:11 am
Software reading of the encoder can handle hundreds or thousands of pulses per seconds.  Using interrupts should allow thousands or possible millions of pulses per second.  At 10 pulses per second your Arduino will have LOTS of time to do other tasks like temperature reading and LCD writing.
6006  Using Arduino / Networking, Protocols, and Devices / Re: SPI communication to the ADXRS450 gyroscope on: March 10, 2012, 09:03:15 pm
First byte: 1111111
Second byte: 0
Third byte: 1111111100000000
4rth byte: 11111111

1111111000000001111111111111111
It's impossible for the third byte to contain 16 bits so perhaps you should try again.

Try replacing this code:
Code:
  digitalWrite(chipSelectPin, LOW);
  // Sending 4 bytes as a command
  SPI.transfer(0x20);
  SPI.transfer(0x00);
  SPI.transfer(0x00);
  SPI.transfer(0x00);
  delay(4);
  result = SPI.transfer(0x00);
  Serial.print("First byte: ");
  Serial.println(result,BIN);
  result = result << 24; // shift the first byte all the way to the left
  byte2=SPI.transfer(0x00)<<16;
  Serial.print("Second byte: ");
  Serial.println(byte2,BIN);
  result |=(byte2);
  byte3=SPI.transfer(0x00)<<8;
  Serial.print("Third byte: ");
  Serial.println(byte3,BIN);
  result |=(byte3);
  byte4=SPI.transfer(0x00);
  Serial.print("4rth byte: ");
  Serial.println(byte4,BIN);
  result |=(byte4);
  digitalWrite(chipSelectPin, HIGH);
  Serial.println(result,BIN);

with this:
Code:
  digitalWrite(chipSelectPin, LOW);
  // Sending 4 bytes as a command
  SPI.transfer(0x20);
  SPI.transfer(0x00);
  SPI.transfer(0x00);
  SPI.transfer(0x00);
  digitalWrite(chipSelectPin, HIGH);  // End of command

  delay(4);

  digitalWrite(chipSelectPin, LOW);   // Start of data retrieval
  result = SPI.transfer(0x00);
  Serial.print("One byte: ");
  Serial.println(result,HEX);

  result = result << 8 | SPI.transfer(0x00);
  Serial.print("Two bytes: ");
  Serial.println(result,HEX);

  result = result << 8 | SPI.transfer(0x00);
  Serial.print("Three bytes: ");
  Serial.println(result,HEX);

  result = result << 8 | SPI.transfer(0x00);
  Serial.print("Four bytes: ");
  Serial.println(result,HEX);

  digitalWrite(chipSelectPin, HIGH);
6007  Using Arduino / Networking, Protocols, and Devices / Re: SPI communication to the ADXRS450 gyroscope on: March 09, 2012, 08:51:46 pm
I always get the same exact value.

By not telling us what value you get you guarantee that nobody can help further.
6008  Using Arduino / Installation & Troubleshooting / Re: Arduino Nano V3.0 as ISP for Arduino Pro Mini on: March 09, 2012, 08:48:16 pm
I connected the Mini and used Nano as ISP and uploaded Blink with other intervall without problem.
...
 So I am back to Blink-example and trying to send it to Mini without any luck.

Every time I send it to Mini it ends up on the Nano.

I think the problem is that the Nano is being reset by the Auto Reset feature.  The sk500v1 protocol used by ArduinoISP is ALSO used by the bootloader.  When the reset happens the Nano bootloader starts looking for a upload and finds one!

To disable reset on an Arduino UNO you can hook a 1-10 mF capacitor from Reset (+) to Ground (-).  This will probably work on a Nano, too.
6009  Community / Products and Services / Re: How do I become an Arduino Developer for WiFi Shield? on: March 09, 2012, 08:43:43 pm
The only mention of an official Arduino WiFi Shield I can find is this blog post from September 17, 2011:

http://arduino.cc/blog/2011/09/17/arduino-launches-new-products-in-maker-faire/
"Arduino Wifi Shield. It adds Wi-Fi communication capabilities to any Arduino. Instead of using any of the classic WiFi modules on the market we wanted to have something that will provide the maximum level of hackability to the user. The shield is based on a wifi micro module made by H&D Wireless coupled with a powerful AVR32 processor that carries the full TCP-IP stack leaving room to add your own protocols and customisations. We’ve also worked hard to make sure that you will be able to migrate your code from the Ethernet Shield with minor changes."

(My guess is that the first step in getting in on Arduino WiFi Shield development is to move to Italy.)
6010  Using Arduino / Networking, Protocols, and Devices / Re: SoftwareSerial Library RX Buffer Size on: March 09, 2012, 08:30:08 pm
It's using RAM.  RAM is a scarce commodity on the ATmega which is why the buffer size was set so low.

Perhaps your protocol needs some kind of flow control.
6011  Using Arduino / Project Guidance / Re: What is PoE in a Arduino? on: March 09, 2012, 07:10:42 pm
PoE means "Power over Ethernet".  It uses some of the spare wires in the Cat-5 UTP cable to provide power to devices.

Using Ethernet on your robot means that you can have your robot connected to a network, with a cable.  WiFi is more applicable to robots.
6012  Using Arduino / Networking, Protocols, and Devices / Re: SPI communication to the ADXRS450 gyroscope on: March 09, 2012, 07:08:16 pm
Commands and responses are all FOUR bytes.  You are only sending three for the command and accepting two for the response.

The fourth byte of the command contains a parity bit.  You will probably have to calculate that.
6013  Using Arduino / Microcontrollers / Re: Is the EThernet a add on or can it be bought built in? on: March 09, 2012, 07:02:01 pm
You can use an Arduino UNO ($30) + Ethernet Shield ($45) or and Arduino Ethernet ($65).
6014  Using Arduino / Installation & Troubleshooting / Re: Replacing Atmega8 with Atmega328 IC on: March 09, 2012, 03:50:13 pm
can you please explain "Auto Reset Enable bumper" ..
Sorry, I meant "jumper". Those two pins near the power jack.
6015  Using Arduino / Installation & Troubleshooting / Re: Replacing Atmega8 with Atmega328 IC on: March 09, 2012, 12:39:40 pm
From the video it doesn't look like you have the Auto Reset Enable bumper installed.  Try holding down the reset button, clicking the Upload button for the sketch, and releasing the reset button when you see the "Binary sketch size:" message appear.

Note: The ancient ATmega8 bootloader would wait around for 10 seconds after a reset looking for an upload.  After they added the Auto Reset feature they reduced the time to less than a second.  That way your sketch can start much faster on subsequent resets.
Pages: 1 ... 399 400 [401] 402 403 ... 590