Show Posts
Pages: 1 2 [3] 4 5
31  Using Arduino / Programming Questions / Re: Ethernet and SD in the same sketch on: May 26, 2013, 07:40:26 am
Hi,

I've just came across the same issue. After wondering if the problem was with the ethernet library I found through Zoomkat reply that I needed to remove the SD card (left in from previous test).

Have you found a solution for this problem?
32  Using Arduino / Networking, Protocols, and Devices / Re: Ethernet Board, client.connect(URL, port) only works with IP? on: May 26, 2013, 07:35:48 am
Ok, that's weird and I don't think I saw any mention of this on the documentation of the Ethernet Lib.

I saw in your comments that the SD card needed to be removed. Which I did, and now it works.

I don't really understand it. Any idea?
33  Using Arduino / Networking, Protocols, and Devices / Re: Ethernet Board, client.connect(URL, port) only works with IP? on: May 26, 2013, 07:28:38 am
Hi ZoomKat,

I've you tested your code recently? This code doesn't work on my side.
I don't see any differences with the Webclient client example I posted (in terms of using the client.connect()).

Cheers


34  Using Arduino / Networking, Protocols, and Devices / Re: Ethernet Board, client.connect(URL, port) only works with IP? on: May 26, 2013, 07:20:54 am
Thanks Guys for the quick reply.


@ zoomkat: Trying it now and I will report back.

@ JohnHoward: I'm testing with google, bbc, etc... so that shouldn't be an issue.
35  Using Arduino / Networking, Protocols, and Devices / [Resolved] Ethernet Board, client.connect(URL, port) only works with IP? on: May 25, 2013, 01:13:21 pm
Hi,

I've looked everywhere but I can't find someone with the same issue. Some people had this problem but it was because they didn't specified a host in their header. Is it something that I'm missing?

Basically, the ethernet library with the ethernet board doesn't seem to accept a URL (char array) in the method connect(); It works fine with an IP.

Here's a piece of code (the webclient example):

Code:
#include <SPI.h>

#include <Dhcp.h>
#include <Dns.h>
#include <Ethernet.h>
#include <EthernetClient.h>
#include <EthernetServer.h>
#include <EthernetUdp.h>
#include <util.h>

/*
  Web client
 
 This sketch connects to a website (http://www.google.com)
 using an Arduino Wiznet Ethernet shield.
 
 Circuit:
 * Ethernet shield attached to pins 10, 11, 12, 13
 
 created 18 Dec 2009
 modified 9 Apr 2012
 by David A. Mellis
 
 */

// Enter a MAC address for your controller below.
// Newer Ethernet shields have a MAC address printed on a sticker on the shield
byte mac[] = {  0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
IPAddress server(173,194,41,184); // google.co.uk
IPAddress serverMM(69,89,31,106);
char serverName[] = "www.google.co.uk";  // google URL

// Initialize the Ethernet client library
// with the IP address and port of the server
// that you want to connect to (port 80 is default for HTTP):
EthernetClient client;

void setup() {
 // Open serial communications and wait for port to open:
  Serial.begin(9600);
   while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
  }
  
  // start the Ethernet connection:
  if (Ethernet.begin(mac) == 0) {
    Serial.println("Failed to configure Ethernet using DHCP");
    // no point in carrying on, so do nothing forevermore:
    for(;;)
      ;
  }
  // give the Ethernet shield a second to initialize:
  delay(1000);
  Serial.println("connecting...");
 
  // if you get a connection, report back via serial:
  if (client.connect(serverName, 80)) {
    Serial.println("connected");
    // Make a HTTP request:
     client.println("GET /search?q=arduino HTTP/1.1");
  
    //client.println("GET /search?q=arduino HTTP/1.1");
    client.println("Host: www.google.com");
    //client.println("Connection: close");
    client.println();
  }
  else {
    // kf you didn't get a connection to the server:
    Serial.println("connection failed");
  }
}

void loop()
{
    
  // if there are incoming bytes available
  // from the server, read them and print them:
  if (client.available()) {
    char c = client.read();
    Serial.print(c);
  }

  // if the server's disconnected, stop the client:
  if (!client.connected()) {
    Serial.println();
    Serial.println("disconnecting.");
    client.stop();

    // do nothing forevermore:
    for(;;)
      ;
  }

  
}

When using a URL instead of an IP, the program just hang a the client.connect().

I've tried so many combination, even thought that maybe the example was missing libraries to enable URLs. If any one the answer that would be great, otherwise could that will be a bug I will report.

Cheers!
36  Forum 2005-2010 (read only) / Troubleshooting / Re: Download code from a Arduino Board to Arduino Soft on: October 19, 2008, 12:38:36 pm
Great!, I've got Ubuntu 8.4 installed so that you should pretty straight forward then.
37  Forum 2005-2010 (read only) / Troubleshooting / Re: Download code from a Arduino Board to Arduino Soft on: October 19, 2008, 12:22:32 pm
I looked for a "how to install avrdude" on mac and that looks complicate. I've put the avrDude folder in my home directory and tried your command line but that didn't work. I added sudo but it gave me a warning, so I am not really sure if I should do this.

I am going to try it on linux tomorrow as it might be simpler and I don't mind messing around the linux computer as I have nothing on it.

Thank you for helping me.
38  Forum 2005-2010 (read only) / Troubleshooting / Download code from a Arduino Board to Arduino Soft on: October 16, 2008, 01:26:18 pm
Hi every one.
It might be a stupid quetsion but you know what people say. There is no stupid questions.

Anyway I can't remember which of my boards have which code on it.
I don't want to look at all my programs and guess which one is the right one and then overwrite the precious code on the board.
So is it possible to download ( decompile? ) the code from the board to the arduino software. Maybe there is a anti-Arduino that transform machine code to Human code.

Thanksssssssssssssssssssssssssssssssss smiley
39  Forum 2005-2010 (read only) / Troubleshooting / Re: pir sensor on: November 30, 2009, 03:12:15 pm
Hi all,

I just bought a PIR sensor from Maplin, would it be possible to have your view of it?

The sensor is a MQ1510 from IFSAC. Here want I have:

12+ -   N/C   TT   LED-
  | |       | |    | |    |
  | |       | |    | |    |

and the some pins I can switch to set the pulse and enable the led ( I think ).

I'm not sure if I have to use the N/C or TT. I believe that the sensor output 1 for movement and 0 for none.

I just don't want to damage my arduino board by doing something foolish. I think I can calibrate and test it without the arduino as a I presume the LED turn on for movement.  

ant advices?

cheers
40  Forum 2005-2010 (read only) / Interfacing / Re: multiplexing and max/msp … a survey on: September 25, 2007, 04:32:44 pm
Oh I wasn't trying to show of. I am also learning as I am doing it. I think I am so happy to have this working that I had to say it.
It's really a pain when you are a newbee like me and you don't have any pictures to look at in a tutorial. I think I will take the time to do a small one with picts.

Making it talk to Max is also my next step after the capacitive thing. I hope I will be as lucky. Your midi idea might be a good one actually.
Are you going to try with this tutorial ?
http://itp.nyu.edu/physcomp/Labs/MIDIOutput
41  Forum 2005-2010 (read only) / Interfacing / Re: multiplexing and max/msp … a survey on: September 25, 2007, 04:07:45 pm
Hi, got mine from maplin ( HEF 4051 BP ).
At first I tried to follow your pictures and the tutorial but I was confused.
Your pictures relate to the right hand diagram from the tutorial ( logic symbol ). That's what confused me.
I followed the left hand diagram ( pin configuration ) and only the tutorial and now it works like a charm.
Obviously I had to had a analogueRead to read the thing. I think all your trouble scared me  smiley-razz

Daniel:
I don't understand why the tutorial as a beginSerial instead of the Serial.begin. Is it because of a old version, or the code is for wiring?
And I didn't use any capacitor.

Tomorrow I will try to adapt the capacitive thing to the multiplex.

Do you think that one of us should do a simple tutorial with pictures on how to wire a multiplex and rewrite the code so it actually do something when the arduino is wired properly. I am happy to do it, but I won't do it directly as I have lot of work. I still don't know what pin 6 and 7 (E and Vee) are for, ground access ?
42  Forum 2005-2010 (read only) / Interfacing / Re: multiplexing and max/msp … a survey on: September 20, 2007, 03:13:42 am
cheeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeerrrrrs  :-*
43  Forum 2005-2010 (read only) / Interfacing / Re: multiplexing and max/msp … a survey on: September 19, 2007, 06:55:25 am
Thanks Nick.
I knew the 2 first links but I could find the 4051, I am sure it's because I really don't know much about electronics.
I only used Rapid once for buying vibration tilt sensors.
It's true that maplin don't give the data sheet online ,you have to ask by mail for it !!!!  :o
44  Forum 2005-2010 (read only) / Interfacing / Re: multiplexing and max/msp … a survey on: September 18, 2007, 03:25:23 am
Thanks for replying. Jameco looks good but it's the US and I live in the UK.
They will receive two 4051 next monday at my local maplin. If they are the right ones ( hope so ) that will mean that UK people will know that they can find them there.
good luck for with yours  smiley
45  Forum 2005-2010 (read only) / Interfacing / Re: multiplexing and max/msp … a survey on: September 17, 2007, 07:24:31 am
Not sure but I think I found it at maplin ( uk ), the 4051:
http://www.maplin.co.uk/module.aspx?ModuleNo=31820&doy=17m9#overview

So I could try to buy two directly from my local Maplin and try the thing before I order more online. smiley
Please could anyone could confirm that I am looking in the right direction   :-/

If it works I am also going to try to use it with the "arduino as a capacitive sensor" ( http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1171076259 ). This technique is really great, the guy who done that is really good.
I imagine I would need two 4051, one for demultiplex and one for multiplex as the technique need two pin ( 1 input 1 output ) for each sensor.

Anyway if it works I will put the code and picts as a tutorials for people like me who doesn't know much about electronic.
Pages: 1 2 [3] 4 5