Show Posts
Pages: 1 [2] 3 4 ... 402
16  Using Arduino / Installation & Troubleshooting / Re: Arduino UNO + Ethernet Shield + Ultrasonic Sensor = Fail on: August 24, 2014, 11:24:37 am
I don't mind bending pins. I do it all the time. I bend them just enough so they do not insert into the Arduino. But that is just me.  smiley

BTW, you should mention any other devices connected to the Arduino/shield. That could affect the device that is failing.
17  Using Arduino / Installation & Troubleshooting / Re: Arduino UNO + Ethernet Shield + Ultrasonic Sensor = Fail on: August 24, 2014, 11:11:35 am
If you are ok with experimenting, you can try bending the ethernet shield pins you are using for the sensor (D6 and D7) a little so they do not connect to the Uno, then connect the sensor to those pins (D6 and D7) on the Uno. Does it work then?

It could be a power problem. Do you have a SD card in the shield's slot?
18  Using Arduino / Project Guidance / Re: Read values from webpage to control relay (Ethernet Shield) on: August 24, 2014, 10:55:27 am
This part is easy. That is not an Arduino WiFi shield. It does not use the same library as the official Wifi shield, so I can't help you with it. Maybe you can get some help from the users in the other thread you posted a link to.

19  Using Arduino / Installation & Troubleshooting / Re: Arduino UNO + Ethernet Shield + Ultrasonic Sensor = Fail on: August 24, 2014, 10:36:20 am
Then the ethernet shield should not affect the sensor, but I have an Arduino ethernet shield, not your model. Nothing on my shield that would affect that code.
20  Using Arduino / Installation & Troubleshooting / Re: Arduino UNO + Ethernet Shield + Ultrasonic Sensor = Fail on: August 24, 2014, 10:15:47 am
Post a link to the ethernet shield you are using.

edit: This code has a problem. The variables distance and duration are both integers. No fractions on integers.
Code:
  distance = duration / 29.1;
21  Using Arduino / Programming Questions / Re: Ethernet Module Program on: August 24, 2014, 10:08:37 am
Does the module have a W5100 or ENC28J60 IC?
22  Using Arduino / Installation & Troubleshooting / Re: Arduino UNO + Ethernet Shield + Ultrasonic Sensor = Fail on: August 24, 2014, 10:04:29 am
Post your code.
23  Using Arduino / Project Guidance / Re: Read values from webpage to control relay (Ethernet Shield) on: August 24, 2014, 09:45:18 am
Then you didn't change the includes to the wifi shield.
Code:
#include <SPI.h>
#include <WiFi.h>

edit: You keep referring to this device as a module instead of a shield. You should post a link to the wifi hardware you are using.
24  Using Arduino / Project Guidance / Re: Read values from webpage to control relay (Ethernet Shield) on: August 24, 2014, 08:26:48 am
The wifi and ethernet hardware are just transports, not protocols, so the code is interchangeable. Start the wifi shield in the setup function instead of the ethernet shield, then...
Code:
// change this
EthernetClient client;
// to this
WiFiClient client;

edit: Take a look at zoomkat's code earlier in this thread for the rest of the code. You can take a look at mine in the playground.
http://playground.arduino.cc/Code/WebClient

25  Using Arduino / Networking, Protocols, and Devices / Re: Dynamically define communication channel for I2C on: August 23, 2014, 12:56:17 pm
Have you decided how to determine which I2C device is which? Or doesn't it matter which is responding?
26  Using Arduino / Networking, Protocols, and Devices / Re: Dynamically define communication channel for I2C on: August 23, 2014, 08:01:58 am
You should probably look at the DHCP protocol for the ethernet interface. It is initiated by the client device when it needs an IP, and sends a unique serial number (mac address) to the DHCP server on a common address. This identifies each client device as unique. If you just "shotgun" a request from the master, more than likely all slaves will think that transmission is for it.
27  Using Arduino / Networking, Protocols, and Devices / Re: ASTM / HL7 communication via Ethernet shield on: August 23, 2014, 01:25:36 am
You can connect the ethernet shield directly to a computer with a CAT5 cable, but you must use static ip assignments on both the Arduino and the computer unless you can set up the computer's ethernet port with a dhcp server.

28  Using Arduino / Programming Questions / Re: Arduino Ethernet Shield connection to socket server on: August 22, 2014, 04:51:58 pm
PaulS is right. You need something like this:
Code:
  Serial.println("connecting...");

  while (client.connect(server, 1400) != 1) {
     Serial.print("connection failed...");
     delay(1000);
     Serial.println("trying again");     
  }

  Serial.println("connected");
29  Using Arduino / Networking, Protocols, and Devices / Re: Ethernet client connect can return negative number on: August 22, 2014, 09:06:21 am
I added the code from dns.cpp as a comment to your report to show the possible return values.
30  Using Arduino / Networking, Protocols, and Devices / Re: trouble using GET to retrieve public API XML data on: August 22, 2014, 07:16:22 am
The reason your client.connect() didn't work (returned connected when in fact it wasn't) is explained in this thread:
http://forum.arduino.cc/index.php?topic=262417.0
Pages: 1 [2] 3 4 ... 402