Show Posts
Pages: 1 2 [3] 4 5 ... 409
31  Using Arduino / Programming Questions / Re: Problem with ethernet sheild please help! on: September 13, 2014, 01:46:12 pm
You cannot use D10 to D13 for anything but the SPI bus on an Uno. You are using D11 here.
Code:
          if(readString.indexOf("?lighton") >0)
          {
            digitalWrite(11, HIGH);   
            Serial.println("Led On");
          }
          else{
          if(readString.indexOf("?lightoff") >0)
          {
            digitalWrite(11, LOW);   
            Serial.println("Led Off");
          }
          }
32  Using Arduino / Programming Questions / Re: Problem with ethernet sheild please help! on: September 13, 2014, 12:23:39 pm
Thanks robtillart.

If we are using this thread, then which Arduino model are you using? If it is an Uno or similar, you can't use D11. That is one of the SPI data lines. You should also change the comments. You are changing D11, but the comment shows D4.
33  Using Arduino / Networking, Protocols, and Devices / Re: EthernetUDP: sending a UDP package blocks a while on: September 12, 2014, 07:18:10 am
I wouldn't lower the retransmission time. I would try reducing the retry count first. I think the retry count is 8 by default.
Code:
#include <utility/w5100.h>

W5100.setRetransmissionCount(1);

edit: BTW, endPacket() returns a value. If the return value is 1, the packet was sent successfully, else send failed. This means "sent to the next device". It indicates delivery to the destination only if the destination device is on the sender's localnet.

And setRetransmissionCount is a misnomer. To be technically correct, it should have been called "setAttemptCount". You can't set that to zero. If you do, it will never try to send the packet.
34  Using Arduino / Storage / Re: Difference between SD Card and Micro SD Card? on: September 11, 2014, 09:51:06 am
That SD card does not use any type of level shifter. Those are pullup resistors, not voltage dividers. That means 5 volts is being applied to the 3.3 volt inputs of the SD card.
35  Using Arduino / Installation & Troubleshooting / Re: UDPSendReceive : finally got it working ! on: September 10, 2014, 07:21:51 am
You should have paid closer attention to the Ethernet.begin() reference. It is very clear about those parameters.
http://arduino.cc/en/Reference/EthernetBegin
36  Using Arduino / Networking, Protocols, and Devices / Re: Arduino Due TCP/IP connecting to a windows OS, nothing visible using Wireshark. on: September 09, 2014, 10:06:52 am
Check the Windows firewall. Insure it allows UDP and the port.
37  Using Arduino / Networking, Protocols, and Devices / Re: Ethernet shield, get NTP server via DHCP? on: September 09, 2014, 07:34:03 am
You can use dns to get a NTP server IP.
Code:
#include <SPI.h>
#include <Ethernet.h>
#include <Dns.h>

byte mac[] = { 0x00, 0xAA, 0xBB, 0xCC, 0xDE, 0x02 };
IPAddress ntpIP;

void setup() {
  Serial.begin(9600);

  pinMode(4,OUTPUT);
  digitalWrite(4,HIGH);

  if (Ethernet.begin(mac) == 0) {
    Serial.println("Failed to configure Ethernet using DHCP");
    for(;;)
      ;
  }
  Serial.print("My IP address: ");
  Serial.println(Ethernet.localIP());

  DNSClient dns;
  dns.begin(Ethernet.dnsServerIP());
  if(dns.getHostByName("pool.ntp.org",ntpIP) == 1) {
    Serial.print("NTP IP from the pool: ");
    Serial.println(ntpIP);
  }
  else Serial.println("DNS lookup failed");
}

void loop() {
}
38  Using Arduino / Networking, Protocols, and Devices / Re: Telnet client connecting to Win7 Telnet server. Help! on: September 07, 2014, 06:57:04 pm
Quote
I initially get some wierd characters, if I then send CR LF and it responds with 'Welcome to Microsoft Telnet Service ' but then, whatever I send, I get nothing.
Those weird characters are usually terminal configuration settings. I don't have a Win7 box to test with, but maybe this telnet wiki and the related RFCs will help.
http://en.wikipedia.org/wiki/Telnet
39  Using Arduino / Networking, Protocols, and Devices / Re: Wifi Web client Example dosnt work even after Firmware upgrade ( 1.1.0 ) on: September 07, 2014, 06:41:01 pm
I just tested the dns part of the wifi shield firmware/library. If you are using a domain and the domain resolution fails, the connection fails. The client.connect(server,80) function returns 0. If it is connecting to the server, then the dns resolution was successful.

There must be another reason the server is not returning anything.

edit: Maybe you should try a different domain. Something besides Google.
40  Using Arduino / Networking, Protocols, and Devices / Re: Making a Public Internet Accessible Web Server With Ethernet Shield on: September 07, 2014, 11:53:13 am
Here are two choices:
1) Connect it to the internet and give it a public IP.
or
2) Connect it to your router and port forward the public ip assigned to the router to the private IP of the Arduino.

41  Using Arduino / Programming Questions / Re: Help with Nick Gammon's spark plug ISR example (modify for 4 spark plugs) on: September 07, 2014, 08:19:46 am
Depending on the current ignition system, I don't see a problem. You have 5 external interrupt lines on a Mega. How is the ignition timing circuit set up now? Can you determine which cylinder is firing, or is there a distributor?

My 6 cylinder Ford Explorer has a transistor ignition with a three input coil (no distributor) that fires two spark plugs at once. The spark plug fires in each cylinder every revolution.

edit: Many new engines use a missing tooth ignition timing system. My Ford does. Do a Google search for "missing tooth ignition" and select images.

4 cylinder engines fire at 180 degrees. (2 input coil)
6 cylinder engines fire at 120 degrees. (3 input coil)
8 cylinder engines fire at 90 degrees. (4 input coil)
42  Using Arduino / Programming Questions / Re: Webclientrepeating on: September 07, 2014, 06:56:37 am
Quote
I am not able to connect to the website. The serial monitor only reads my IP address.
You don't see any of the Serial.print() output on your serial monitor? Or do you get a "connection failed" message?

Do you have a SD card in the shield's slot?
43  Using Arduino / Programming Questions / Re: Sketch compiles on PC but not on Raspberry Pi on: September 06, 2014, 09:04:55 am
I tried running a Linux 32 bit IDE v1.0.5 on the RPi, and it won't even start. If you try to run it from a terminal, it throws errors about the Java version .so files are for a 32 bit processor, not an ARM based processor.

There are two options.
1) get the RPi repository IDE upgraded to v1.5.7
or
2) Get Arduino to offer an ARM based IDE version
44  Using Arduino / Programming Questions / Re: Sketch compiles on PC but not on Raspberry Pi on: September 06, 2014, 08:48:06 am
The Yun and Due require an IDE version v1.5.x. The Arduino website recommends v1.5.7.

IDE v1.0.1 won't work.

You need to get together with developers on the RPi site to get them to upgrade the repository version. I tried downloading the latest IDE from the Arduino site to my RPi, but it won't compile. It throws a bunch of compiler errors.  smiley-sad
45  Using Arduino / Networking, Protocols, and Devices / Re: Wifi Web client Example dosnt work even after Firmware upgrade ( 1.1.0 ) on: September 06, 2014, 07:13:40 am
I tried your code on my Mega 2560/WiFi shield, changing only the ssid and pass to my network settings, and it worked fine.
Pages: 1 2 [3] 4 5 ... 409