Show Posts
Pages: 1 ... 3 4 [5] 6 7 8
61  Using Arduino / Networking, Protocols, and Devices / Re: Ethernet module startup.. on: January 19, 2013, 07:55:53 pm
I  added that message as the begin of the wait period I'm experiencing.
This is my whole setup code.

Code:
#include "Arduino.h"
#include <SPI.h>
#include <Ethernet.h>
#include <Twitter.h>

//define led names
#define ledReady A5
#define ledAlert A4
#define ledError A3
#define ledYell A2
#define ledPost A0

//define led states
#define ON HIGH
#define OFF LOW

#define BoM 1

//  Ethernet Shield Settings.
//
byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED};
//
// If you don't specify the IP address, DHCP is used (Only in Arduino 1.0 or later).
//
byte ip[] = {192, 168, 0, 10};
//

char message[141] = "";

//  Setup begins here.
//
void setup()
{
  pinMode(ledReady,OUTPUT);
  pinMode(ledAlert,OUTPUT);
  digitalWrite(ledAlert,LOW);
  pinMode(ledError,OUTPUT);
  digitalWrite(ledError,LOW);
  pinMode(ledYell,OUTPUT);
  digitalWrite(ledYell,ON);
  pinMode(ledPost,OUTPUT);
  digitalWrite(ledPost, LOW);
  Serial.begin(115200);
   
  Serial.println(F("Starting Ethernet in 1 min"));
  if (!Ethernet.begin(mac))  // Try to connect using DHCP
    Ethernet.begin(mac, ip); // Try to connect using a Static IP address.
   
  Serial.print(F("Connected to IP address: "));  // Print out the IP address.
  for (int i = 0; i < 3; i++)
    {
      Serial.print(Ethernet.localIP()[i], DEC);
      Serial.print(".");
    }
  Serial.println(F(" Ethernet ready"));
  Serial.println();
  digitalWrite(ledYell,OFF);
  digitalWrite(ledReady, HIGH);
}

void loop()
{
     
}

62  Using Arduino / Networking, Protocols, and Devices / Ethernet module startup.. on: January 19, 2013, 07:31:24 pm
Hi
I'm writing and wondering if this is normal that when I run the code to setup the ethernet shield that it takes a minute to execute? I timed it and one minutes pases until the "connected and ip" shows up on serial monitor plus ledYell is on while ethernet is waiting too.

Code:

//  Ethernet Shield Settings.
//
byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED};
//
// If you don't specify the IP address, DHCP is used (Only in Arduino 1.0 or later).
//
byte ip[] = {192, 168, 0, 10};

   void setup()
{
  pinMode(ledReady,OUTPUT);
  pinMode(ledAlert,OUTPUT);
  digitalWrite(ledAlert,LOW);
  pinMode(ledError,OUTPUT);
  digitalWrite(ledError,LOW);
  pinMode(ledYell,OUTPUT);
  digitalWrite(ledYell,ON);
  pinMode(ledPost,OUTPUT);
  digitalWrite(ledPost, LOW);
  Serial.begin(115200);
   
  Serial.println(F("Starting Ethernet in 1 min"));
  if (!Ethernet.begin(mac))  // Try to connect using DHCP
    Ethernet.begin(mac, ip); // Try to connect using a Static IP address.
   
  Serial.print(F("Connected to IP address: "));  // Print out the IP address.
  for (int i = 0; i < 3; i++)
    {
      Serial.print(Ethernet.localIP()[i], DEC);
      Serial.print(".");
    }
  Serial.println(F(" Ethernet ready"));
  Serial.println();
  digitalWrite(ledYell,OFF);


Thanks
Don
63  Using Arduino / Networking, Protocols, and Devices / Re: Arduino Telnet Server on: January 17, 2013, 11:07:14 pm
Thanks for the update
64  Using Arduino / Networking, Protocols, and Devices / Re: Multiple Services running on Ethernet Shield module at same time on: January 17, 2013, 10:58:40 pm
I guess I should have stated that I was using the simple web server sample provided.  This looks interesting ill look at your client server. Im just going to try some code for Twitter posting and the web server together and see what happens







65  Using Arduino / Networking, Protocols, and Devices / Multiple Services running on Ethernet Shield module at same time on: January 15, 2013, 09:21:11 pm
Hi
Is possible to run multiple services with a Ethernet shield module at the same time?
I'm looking to use port 80 for a simple web server and send twitter messages out with the twitter library via http://api.twitter.com. I'm using an AtMega2560 board I'm new to the ethernet shield and thinking about some ideas for uses for it.
Thanks for viewing the topic
Don
66  Using Arduino / Project Guidance / Re: Decode NOAA Weather Radio SAME codes on: January 03, 2013, 07:24:53 pm
I would personally like to have a breakout board rather than a shield so I could use it in a standalone design.
67  Using Arduino / Project Guidance / Re: Decode NOAA Weather Radio SAME codes on: December 27, 2012, 09:39:43 pm
Anything new going on with ? Is there a place to purchase the si4707 weather radio shield?
Happy New Year to everyone
Don
68  Using Arduino / Networking, Protocols, and Devices / Ethernet shield Web Server w/Login Box on: November 13, 2012, 06:39:02 pm
Hi
I'm wondering is it possible and what would I need besides a ethernet shield to make a Web Server w/login user name and password control? I'm looking to turn on/off a few devices. Would I need java or could that be written in html?
Thanks
Don
69  Using Arduino / Networking, Protocols, and Devices / Re: W5100 ethernet shield on: October 02, 2012, 07:36:06 pm
Thank you for your help Don
70  Using Arduino / Networking, Protocols, and Devices / W5100 ethernet shield on: October 02, 2012, 09:21:38 am
Hi
So I make a project and want to make it standalone now. I have ATMega328 microcontrollers but do they make a ethernet W5100 standalone module? I don't really want to tie up my ethernet shield and use it full time. Can someone recommend a standalone module?
Thanks
Don
71  Using Arduino / Project Guidance / Re: Decode NOAA Weather Radio SAME codes on: August 18, 2012, 08:20:25 pm
Ray deserves all the credit! Here is a link to his library http://www.raydees.com/Weather_Radio.html
Let us know how it goes with your design.
Don
72  Using Arduino / Project Guidance / Re: Decode NOAA Weather Radio SAME codes on: August 18, 2012, 08:07:56 pm
We can decode messages just fine. Ive made a simple sketch to control a repeater. I have some components on order to make a bread board to test my design.

I saw the board with the BNC connector on it. I bet I would need a preselector so block out unwanted RF from the 144-148 Mhz transmitter.
Don
73  Using Arduino / Project Guidance / Re: Decode NOAA Weather Radio SAME codes on: August 18, 2012, 07:54:02 pm
I was looking over the docs seem great. I have never used a oven/paste before. It sure would make my life easier. I have a broadcast quality receiver with a noaa radio, am, fm radio in it which was meant for EAS encoder/decoder. I'm using a weather radio with a xr2211 for testing now with Ray's library it work great.
Don
74  Using Arduino / Project Guidance / Re: Decode NOAA Weather Radio SAME codes on: August 18, 2012, 06:50:02 pm
So that is a VHF weather band receiver? That ic is so small next to the smd crystal!
I wonder how much it is?
Don
75  Using Arduino / Project Guidance / Re: Question about using a separte file or making a library on: August 08, 2012, 03:24:28 pm
Hi Paul
I will read that over I never saw that before. 
I was using 6 bytes to store that number.
This is the function to retrieve the number.
The maximum amount of numbers stored is 31.
The numbers are coded for National Weather Service locations.
PSSCCC the size of the number must take up 6 bytes or I can't look it up
correctly.. 

P is part of county   
SS is the state number here in the USA
CCC is the county number for that state in the USA.

 
long getNumber(byte index)
{
   long code = 0;
   byte value = 0;
   byte address = 0;
   if (index < 32)
     { 
       address = 6 * (1 + index);
       value = eeprom.read(address+0);
       code += value * 100000UL;          //P
       value = eeprom.read(address+1);
       code += value * 10000UL;           //S
        value = eeprom.read(address+2);
       code += value * 1000UL;            //S
       value = eeprom.read(address+3);
       code += value * 100UL;              //C
        value = eeprom.read(address+4);
       code += value * 10UL;               //C 
       value = eeprom.read(address+5);
       code += value * 1UL;                 //C
   }
    return code;
}

Don     

   
Pages: 1 ... 3 4 [5] 6 7 8