Show Posts
Pages: [1] 2 3 ... 409
1  Using Arduino / Networking, Protocols, and Devices / Re: Arduino WiFi shield with HDG204 chip. on: Today at 12:14:26 pm
You can downgrade to IDE v1.0.3 or upgrade the wifi shield firmware.
2  Using Arduino / Networking, Protocols, and Devices / Re: [Solved]WiFi shield not present - Help please on: Today at 08:06:14 am
But, don't lose that little puppy.
That is why that little puppy is inserted over just one of the two pins when not being used. However, it is a common jumper block, and I have a ton of spares.
3  Using Arduino / Networking, Protocols, and Devices / Re: [Solved]WiFi shield not present - Help please on: Today at 07:54:55 am
That jumper is used to install new firmware on the wifi shield. When you do the firmware upgrade, you must jumper those two pins, install the firmware, then insure you remove the jumper block when the upgrade is complete.

4  Using Arduino / Networking, Protocols, and Devices / Re: WiFi shield not present - Help please on: Today at 07:37:33 am
Is the little jumper block connecting the two pins next to the SD slot? I can't tell by the picture. Remove the jumper block.
http://ohmyfarads.files.wordpress.com/2013/11/jumpers.png?w=300&h=153
5  Topics / Home Automation and Networked Objects / Re: Arduino Uno webserver switches output off when.. on: Today at 07:26:33 am
I evaluate the request string (character array) for more than just those characters. I insure the page requested is correct among other parameters.
http://playground.arduino.cc/Code/WebServerST

For your other question, I would try this.
Code:
        //////Check for button press and switch outputs on or off/////
          
         if(readString.indexOf("on2") >0)  //see if ON button was clicked and switch relay on if 2 found          
            {
              digitalWrite(HW_relay, HIGH);
              client.println("&nbsp;&nbsp;<font color='green'>ON</font");  //show status on
            }
         else if(readString.indexOf("off3") >0)
            {
              digitalWrite(HW_relay, LOW);
              client.println("&nbsp;&nbsp;<font color='red'>OFF</font");  //show status off
            }
         else if(digitalRead(HW_relay) == LOW)  // check the pin for LOW state
            {
              client.println("&nbsp;&nbsp;<font color='red'>OFF</font");  //show status off
            }
         else
            {
              client.println("&nbsp;&nbsp;<font color='green'>ON</font");  //show status on
            }
6  Using Arduino / Networking, Protocols, and Devices / Re: WiFi shield not present - Help please on: Today at 07:16:40 am
Is the jumper removed from (or just on one pin on) the two pins next to the SD card slot? It will fail if the jumper connects the pins.

Do you have a SD card in the shield's slot?
7  Topics / Home Automation and Networked Objects / Re: Arduino Uno webserver switches output off when.. on: September 17, 2014, 05:29:14 am
If there is not a '2' in the GET string, the LED is turned off. If you uncomment the second readString.indexOf, it probably won't turn off. It is common for the web browser to request a file called favicon.ico after it loads the webpage. That would cause the LED to turn on (webpage request) and then off (favicon request).
Code:
         if(readString.indexOf('2') >0)  //see if ON button was clicked and switch relay if 2 found         
            {
              digitalWrite(3, HIGH);
              client.println("&nbsp;&nbsp;<font color='green'>ON</font");  //show status on
            }
              else
          //if(readString.indexOf('3') >0)  //see if OFF button was clicked and switch relay if 3 found
            {
              digitalWrite(3, LOW);
              client.println("&nbsp;&nbsp;<font color='red'>OFF</font");  //show status off
            }
 
8  Using Arduino / Networking, Protocols, and Devices / Re: ethernet sheild not setting mac correctly on: September 16, 2014, 07:33:33 am
No other SPI devices connected? No card in the SD slot?

edit: If that isn't it, try this test code. Does it display the correct MAC? Insure your serial monitor is set to 115200 baud or set a new baud rate in Serial.begin().
Code:
#include <SPI.h>
#include <Ethernet.h>
#include <utility/w5100.h>

// 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 };
byte storedMac[6];

// 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;

int freeRam() {
  extern int __heap_start,*__brkval;
  int v;
  return (int)&v - (__brkval == 0 ? (int)&__heap_start : (int) __brkval);  
}

void setup() {
  // start the serial library:
  Serial.begin(115200);

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

  Serial.print(F("SRAM left: "));
  Serial.println(freeRam());

  // start the Ethernet connection:
  Serial.println("Starting ethernet");
  while (Ethernet.begin(mac) == 0) {
    Serial.println("Failed to configure Ethernet using DHCP");
    delay(5000);

  Serial.print(F("SRAM left: "));
  Serial.println(freeRam());


    Serial.println("trying DHCP again");
  }
  // print your local IP address:
  Serial.print("My IP address: ");
  Serial.println(Ethernet.localIP());

  W5100.readSHAR(storedMac);

  for (byte thisByte = 0; thisByte < 6; thisByte++) {
    // print the value of each byte of the MAC address:
    Serial.print(storedMac[thisByte], HEX);
    if(thisByte < 5) Serial.print(":");
  }
  Serial.println();
}

void loop() {
  byte updateVal = Ethernet.maintain();

  if(updateVal) {
      
    Serial.print(F("DHCP maintain..."));
  
    switch(updateVal) {
      case 0:  Serial.println(F("no action"));
              break;

      case 1:  Serial.println(F("renew failed"));    
              break;
              
      case 2:  Serial.println(F("renew success"));          
              break;

      case 3:  Serial.println(F("rebind failed"));          
              break;

      case 4:  Serial.println(F("rebind success"));          
              break;

      default:  Serial.println(F("unknown"));
    }      
  }

  delay(1000);
}
9  Using Arduino / Storage / Re: mega2560 Arduino connection with micro sd on: September 15, 2014, 08:26:20 pm
These pins are wrong. This is the correct assignment:
Pin 50 = MISO
Pin 51 = MOSI
10  Using Arduino / Networking, Protocols, and Devices / Re: Help with port forwarding on: September 15, 2014, 03:03:31 pm
The way it works is if the destination IP address is not localnet, then the packets are passed to the gateway, which is your dsl router. Since 192.168.100.x net is not a network on the gateway dsl router, it doesn't know where to send the packets. You would have to route the 192.168.100.0/24 net to the 192.168.1.47 IP in the dsl router.

11  Using Arduino / Networking, Protocols, and Devices / Re: GET function not working as expected. PHP setting issue. on: September 15, 2014, 11:12:20 am
Then how do you expect that to work?

Does your ISP allow you to host a website with your current plan? If so, set up your own LAMP server. Do you have an old computer you can set up with some flavor of Linux? Your friend that does your php programming should be able to help you with that.
12  Using Arduino / Networking, Protocols, and Devices / Re: GET function not working as expected. PHP setting issue. on: September 15, 2014, 11:00:27 am
Finally thats what I have decided to do.  And believe me GET request is  working with full link! smiley
So can we conclude that there is no problem with arduino but some problem with php setting on server side?
If that is your domain (suyogtechnologies.com), it is not working. Your site is down.
13  Using Arduino / Networking, Protocols, and Devices / Re: Help with port forwarding on: September 15, 2014, 10:08:12 am
If you expect to access the Arduino from the internet, that won't happen. The dsl modem must port forward the public IP to your pivate IP.

If you are trying to access it from the 192.168.1.x network, that would probably require a port forward in the dsl modem also.
14  Using Arduino / Networking, Protocols, and Devices / Re: Issue with serial communication on: September 15, 2014, 08:54:46 am
Is the machine power supply using TTL or RS232 for the serial interface? If it is RS232, you must use a TTL to RS232 converter, like a MAX232.

15  Using Arduino / Installation & Troubleshooting / Re: MEGA 2560 No Longer Seen on USB but is not completely bricked on: September 14, 2014, 05:13:53 pm
How are you powering the Mega when the USB is not plugged in?
Pages: [1] 2 3 ... 409