Show Posts
Pages: 1 ... 182 183 [184] 185 186 ... 360
2746  Using Arduino / Networking, Protocols, and Devices / Re: Connect ethernet shield and SD card module? on: January 12, 2013, 02:30:39 pm
Are you sure zoomkat's code above did not work? Those are the correct pins.

The w5100 uses pins D2, D10, D11, D12, and D13.
The SD uses D4, D11, D12, and D13.

Looks good to me.
2747  Using Arduino / Networking, Protocols, and Devices / Re: Connect ethernet shield and SD card module? on: January 12, 2013, 02:06:14 pm
If you got that far, you are almost there. What digital pin are you using for the slave select on the SD module? Digital 10 is the SS for the w5100.

2748  Using Arduino / Networking, Protocols, and Devices / Re: Arduino Ethernet Web Server Receiving Client Requests But Not Doing Anything on: January 12, 2013, 01:22:46 pm
It may be your ISP blocks port 80 requests to residential ip addresses. Mine does.

Using a different port may help, like 8080.
2749  Using Arduino / General Electronics / Re: Why i am killing my tip120 ? on: January 12, 2013, 08:03:02 am
That is the problem. It is being lit by the collector-emitter diode. That is why you are seeing 0,5v collector-emitter.

2750  Using Arduino / General Electronics / Re: Why i am killing my tip120 ? on: January 12, 2013, 07:57:50 am
Are you certain that is a TIP120 (NPN), and not a TIP125 (PNP)? Under these conditions, the TIP125 would keep the LED lit no matter the voltage on the base. Look at the polarity of the collector-emitter diode in the product schematic. Left is NPN, right is PNP.

Just checking...

2751  Using Arduino / General Electronics / Re: Why i am killing my tip120 ? on: January 12, 2013, 07:26:02 am
Pin 1 is the base. Did you try the test?

2752  Using Arduino / General Electronics / Re: Why i am killing my tip120 ? on: January 12, 2013, 07:14:13 am
Try connecting the wire connected to the Arduino D3 pin to ground instead of the Arduino pin. Does the LED still light?

@cjdelphi: That is not what the datasheet shows. Pin 1 is the base.

2753  Using Arduino / General Electronics / Re: Why i am killing my tip220 ? on: January 12, 2013, 07:04:22 am
I cannot find a datasheet on that TIP220 transistor. Can you post a link to it? Are you sure it is a TIP220 and not a TIPXXX in a TO-220 case?
 
2754  Using Arduino / Networking, Protocols, and Devices / Re: Connect ethernet shield and SD card module? on: January 12, 2013, 06:17:50 am
Have you tried to get them to work separately?

edit: They are going to share three lines on the SPI bus.
Line    Uno    Mega
MOSI   D11    D51
MISO   D12    D50
SCK     D13    D52

Leonardo SPI is not on any digital pins. They are on the ICSP connector only.

Your ethernet shield appears to use the SPI lines on the ICSP connector if it has a 6 pin connector connecting to the ICSP pins on the Arduino.
2755  Using Arduino / Networking, Protocols, and Devices / Re: 4 bit SPI on: January 11, 2013, 04:06:58 pm
That should be fairly easy. It is only 4 bits to the PLL internally. It can be sent as 3 8-bit values. You can use a shift left 4 bits to move the high nibble into place in each byte. I would use something like this.
Code:
// 3 is the HIGH nibble
byte firstByte = 3;
// shift into place
firstByte = firstByte << 4;
// OR with the LOW nibble
firstByte = firstByte | 5;
// do the same for the rest of the three bytes, then
digitalWrite(SS,LOW);
delayMicroseconds(1);
// send the first two nibbles
SPI.transfer(firstByte);
// send the second two nibbles
SPI.transfer(secondByte);
// send the third two nibbles
SPI.transfer(thirdByte);
// done
digitalWrite(SS,HIGH);
2756  Using Arduino / Networking, Protocols, and Devices / Re: TinkerIT Ethernet shield compatibility with 1.0.3 library ??? static == 0.0.0.0 on: January 11, 2013, 03:45:03 pm
Good deal. I think those pins will be set by the SPI library, but just in case you want to do that without it, the MISO pin should be INPUT on the Arduino (OUTPUT on the shield).
2757  Using Arduino / Networking, Protocols, and Devices / Re: Ethernet Shield Not Being Consistent on: January 11, 2013, 03:35:52 pm
You may be running out of SRAM. Try using the F() function to keep most of your static strings in program memory. For examples:
Code:
    Serial.print(F("The server is at: "));
    // and
    Serial.println(F("GET caught, skipping request and printing HTML"));
This should free up some memory. Staying away from the String data types can also help.
2758  Using Arduino / Networking, Protocols, and Devices / Re: TinkerIT Ethernet shield compatibility with 1.0.3 library ??? static == 0.0.0.0 on: January 11, 2013, 12:34:11 pm
I'd like to see the ethernet shield. Do you have a link to that?

If the ethernet shield has an ICSP connector on the bottom that connects to the ICSP pins on the Mega, then it is Mega compatible and needs no jumpers. If not, you will probably need to jumper the SPI data pins before it will function.
MOSI = D11 -> D51
MISO = D12 -> D50
SCK = D13 -> D52

D10 stays where it is. That is the standard ethernet slave select.
2759  Using Arduino / Networking, Protocols, and Devices / Re: Sudden unreliability with my network-enabled Arduino project on: January 10, 2013, 04:14:44 pm
What is this doing? What are the red and black wires in the screw connectors? What do they do? What is the blue cube in the upper right corner? What does it do? It isn't a relay or anything inductive like that, right?
2760  Using Arduino / Networking, Protocols, and Devices / Re: Arduino + Ethernet. A page long loading on: January 10, 2013, 11:36:51 am
I have a thought. My Mega 2560 and ethernet shield are working really good together!  smiley
I use my own code tho.
http://playground.arduino.cc/Code/WebClient
Pages: 1 ... 182 183 [184] 185 186 ... 360