Go to Post There is beauty in pure simplicity. - artdutra04 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rating: Thread Rating: 8 votes, 5.00 average. Display Modes
  #31   Spotlight this post!  
Unread 06-08-2013, 15:06
jwallace15's Avatar
jwallace15 jwallace15 is offline
What am I going to do with my life?
AKA: Wally
FRC #0068 (Truck Town Thunder)
Team Role: College Student
 
Join Date: Aug 2012
Rookie Year: 2013
Location: Michigan
Posts: 435
jwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud of
Re: Arduino + Ethernet Shield Help

Quote:
Originally Posted by techhelpbb View Post
Look up at my last post.
It shows what my FireFox browser sends to the board.
Then look at the code you have.

Specifically look at the inner conditionals that mention POST.
Look before and look after that.

There are several things wrong there.
I'm not exactly sure what I'm looking for... Does it have to do with the way I used a " in the line
Code:
if(client.find("/"))
And in the next I used ' ?
Or how I added a space after POST in
Code:
if(strcmp(buffer,"POST ") == 0)
In that line should I change the 0 to a 1?
__________________
J Wallace IV
Truck Town Thunder
Just a college student now.
  #32   Spotlight this post!  
Unread 06-08-2013, 15:10
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,624
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: Arduino + Ethernet Shield Help

Nope it's not a single versus double quotation issue.

The first thing a browser will send you after you click the button is the following text:
POST / HTTP/1.1

So remember the original code is trying to read what the browser sends and then act on that information. Plus the original code is obsolete.

So if you look for "/" first what will you find?
Now look at what it looks for next...

Remember each time the Atmel AVR MCU takes a character from the ethernet chip's buffer that character is no longer available in the ethernet chip to read again. So if you look for the "/" first. Will you ever find "POST"?

Last edited by techhelpbb : 06-08-2013 at 15:12.
  #33   Spotlight this post!  
Unread 06-08-2013, 15:19
jwallace15's Avatar
jwallace15 jwallace15 is offline
What am I going to do with my life?
AKA: Wally
FRC #0068 (Truck Town Thunder)
Team Role: College Student
 
Join Date: Aug 2012
Rookie Year: 2013
Location: Michigan
Posts: 435
jwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud of
Re: Arduino + Ethernet Shield Help

Wait, I think I'm understanding now. Are you saying change the order of the if statements? Take this one
Code:
if(client.find("/"))
And put it in the spot of this (and vice versa)?

Code:
if(strcmp(buffer,"POST ") == 0)
?
That way it looks for POST instead of the "/"?
Or add a new if statement for if(client.find"POST")?
__________________
J Wallace IV
Truck Town Thunder
Just a college student now.
  #34   Spotlight this post!  
Unread 06-08-2013, 15:26
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,624
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: Arduino + Ethernet Shield Help

Do you really need to look for: /
Does your *non existent* file system have any subfolders or other pages?

Considering you know this is not going to be a full standards compliant webserver I submit to you that you do not need to look for anything other than POST.

The first time you load the page the browser will use GET anyway.

Now if you plan on actually parsing browser requests for several pages and returning error messages then yes at that point you should mind the: /

For now how about you just look for the "POST". It's handy the code example already shows you how.
Just get rid of the first conditional looking for the: /
Use the client.find as demonstrated in the example to look for: POST

Keep in mind that you'll loose that original serial debug when you do this because you should delete that as well.
So be prepared to not see the "HTTP" or the "favicon.i" in the serial monitor.
If you have not already: leave the serial debug line I offered above in your code.

Let us save 'strcmp' for discussions on buffer security issues. You do not need that for this purpose at all.

Also look at every occurance of 'PinD' you need them all to match when it comes to the case of the text.

Last edited by techhelpbb : 06-08-2013 at 16:58.
  #35   Spotlight this post!  
Unread 06-08-2013, 17:47
jwallace15's Avatar
jwallace15 jwallace15 is offline
What am I going to do with my life?
AKA: Wally
FRC #0068 (Truck Town Thunder)
Team Role: College Student
 
Join Date: Aug 2012
Rookie Year: 2013
Location: Michigan
Posts: 435
jwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud of
Re: Arduino + Ethernet Shield Help

I no longer see HTTP or favicon.i.

I commented out the line saying if(client.find"/").

Whenever I click a button on the webpage the LED still does not work. However, the serial monitor displays "POST" when I click either button, and then about a second later is displays "GET".

The "I saw the post and toggled the pin" still does not display though.

EDIT: I saw you said make sure the case of PinD matches everywhere and looked and saw it didn't everywhere. Now the debug line prints on the serial monitor (I saw the POST and toggled the pin!)

However, no LED.

ANOTHER EDIT: I forgot that I changed one of the lines to say;

Code:
client.println(" value='LOW'><input type='submit' value='On'/></form>");
client.println(" value='HIGH'><input type='submit' value='On'/></form>");
I changed it back to 0 and 1, and it finally worked!!!
__________________
J Wallace IV
Truck Town Thunder
Just a college student now.

Last edited by jwallace15 : 06-08-2013 at 17:56.
  #36   Spotlight this post!  
Unread 06-08-2013, 18:11
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,624
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: Arduino + Ethernet Shield Help

Fantastic

Post up your Arudino code because if you Google around you'll discover that this book and that example has had quite a few people scratching their heads.

Just remember: this is no Microsoft Internet Information Server or Apache web server. It is more like the old SitePlayer (only SitePlayer was a lot more polished):
http://www.netmedia.com/siteplayer/webserver/sp1.html

It has no SSL. It has no authentication as you are using it.
If the browsers change dramatically you will need to alter that code.
Make sure you test that with all the browsers you need to use it with.
  #37   Spotlight this post!  
Unread 06-08-2013, 18:31
jwallace15's Avatar
jwallace15 jwallace15 is offline
What am I going to do with my life?
AKA: Wally
FRC #0068 (Truck Town Thunder)
Team Role: College Student
 
Join Date: Aug 2012
Rookie Year: 2013
Location: Michigan
Posts: 435
jwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud of
Re: Arduino + Ethernet Shield Help

Here is the final working code;

Code:
#include <SPI.h>
#include <Ethernet.h>

byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[] = { 192,168,1,130 };

const int MAX_PAGENAME_LEN = 8;
char buffer[MAX_PAGENAME_LEN+1];

EthernetServer server(80);

void setup()
{
  Serial.begin(9600);
  Ethernet.begin(mac, ip);
  server.begin();
  delay(2000);
}

void loop()
{
  EthernetClient client = server.available();
  if (client)
  {
    int type = 0;
    while (client.connected())
    {
      if (client.available())
      {
        memset(buffer,0, sizeof(buffer));
        //if(client.find("/"))
          if(client.readBytesUntil('/', buffer,sizeof(buffer)))
          {
            Serial.println(buffer);
            if(strcmp(buffer,"POST ") == 0)
            {
              client.find("\n\r");
              while(client.findUntil("PinD", "\n\r"))
              {
                int pin = client.parseInt();
                int val = client.parseInt();
                pinMode(pin, OUTPUT);
                digitalWrite(pin, val);
              }
            }
            sendHeader(client,"Post example");
            client.println("<h2>Click buttons to turn pin 8 on or off</h2>");
            client.print(
            "<form action='/' method='POST'><p><input type='hidden' name='PinD8'");
            client.println(" value='0'><input type='submit' value='Off'/></form>");
            client.print(
            "<form action='/' method='POST'><p><input type='hidden' name='PinD8'");
            client.println(" value='1'><input type='submit' value='On'/></form>");
            client.println("</body></html>");
            client.stop();
          }
          break;
        }
      }
      delay(1);
      client.stop();
    }
  }
void sendHeader(EthernetClient client, char *title)
{
  client.println("HTTP/1.1 200 OK");
  client.println("Content-Type: text/html");
  client.println();
  client.print("<html><head><title>");
  client.print(title);
  client.println("</title><body>");
}
__________________
J Wallace IV
Truck Town Thunder
Just a college student now.
  #38   Spotlight this post!  
Unread 08-08-2013, 22:37
jwallace15's Avatar
jwallace15 jwallace15 is offline
What am I going to do with my life?
AKA: Wally
FRC #0068 (Truck Town Thunder)
Team Role: College Student
 
Join Date: Aug 2012
Rookie Year: 2013
Location: Michigan
Posts: 435
jwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud of
Re: Arduino + Ethernet Shield Help

Alright, this thread will now derail from programming to electrical.

The relay board seems to not be functioning.

First I tried hooking up the output for a sole relay (with a transistor) on pin 8 to test it with the existing code posted above. No cigar. I flipped the direction of the transistor in hopes I placed it backwards. Nothing. (keep in mind the VCC and ground pins were indeed hooked up to the +5V and GND pins of the Arduino).

Then I tried hooking that relay's input pin directly to the Arduino's +5V pin (using the + on a breadboard). Nothing then, either.

I then proceeded to hook all of the inputs from the relay board to the +5V, and none of them worked.

(if needed, this is the link to the manufacturer's website and my product)
__________________
J Wallace IV
Truck Town Thunder
Just a college student now.
  #39   Spotlight this post!  
Unread 08-08-2013, 22:53
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,624
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: Arduino + Ethernet Shield Help

Quote:
Originally Posted by jwallace15 View Post
Then I tried hooking that relay's input pin directly to the Arduino's +5V pin (using the + on a breadboard). Nothing then, either.

I then proceeded to hook all of the inputs from the relay board to the +5V, and none of them worked.

(if needed, this is the link to the manufacturer's website and my product)
System ground the input to turn it on. I will test in the morning.

Yes I quickly tested with DMM. Grounded input lights LED at input.
Testing with a 5V 3A supply reveals that ground on input energizes contact.
NPN transistor in photocoupler to NPN transistor on PCB with 500 Ohm resistor bias.

Input circuit is LED .... opto-isolator LED ... 1k resistor ... Vcc

I bought one cause I could

Watch the jumper in the lower left BTW.
JD-Vcc should be jumpered to Vcc.
Do not put the jumper between GND and Vcc (bad design makes you think that is a storage position).
I guess the plus side is that would be a wonderful place to put an emergency stop button.

Now that I actually have a unit to examine, all the numbers on the drawing and documentation at the Amazon link are wrong. There was no documentation with the board when I got it. The box contains no useful information.

R1, R3, R5, R7, R9, R11, (yes the next 2 are even I have no idea why), R12, R14 are all 1k Ohm on my board.
Make sure to measure yours to be sure.
That limits the current you must sink to turn on a relay to 2.5mA each.
So all 8 inputs activating relays will only sink 20mA.
They get away with this because of the amplifier at the output of the opto-isolator.
So this should operate just fine straight from the Arduino digital I/O pins.

With all the inconsistencies here be sure to check before you assume these boards are identical!

Last edited by techhelpbb : 09-08-2013 at 10:32.
  #40   Spotlight this post!  
Unread 09-08-2013, 11:36
jwallace15's Avatar
jwallace15 jwallace15 is offline
What am I going to do with my life?
AKA: Wally
FRC #0068 (Truck Town Thunder)
Team Role: College Student
 
Join Date: Aug 2012
Rookie Year: 2013
Location: Michigan
Posts: 435
jwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud of
Re: Arduino + Ethernet Shield Help

The resistors you mentioned were all about 990-995. Close enough.

I don't remember grounding the inputs when I tested it the first time. I will now add a 10K ohm resistor on all the inputs to ground.

(edit)

It's behaving very strangely. When I plugged it in, IN6 activated. All of the LED's on the board itself were lit, but IN6 fired. I went to post example and "turned the LED on". It turned off the IN2 (what pin 8 is hooked up to). Then I "turned the LED off and it fired IN2.

Oh, and the LED for IN1 no longer works. But I think I may have damaged it with a crowbar when I was trying to extract the nails holding it to my train table to bring it upstairs... but all of the other ones are intact. (Another Edit: actually I just looked at it again and how I extracted it, and I didn't use the crowbar on that nail, I pulled it off by accident.. But the LED looks flatter than the other 7 working ones.. not sure how it broke though)
__________________
J Wallace IV
Truck Town Thunder
Just a college student now.

Last edited by jwallace15 : 09-08-2013 at 12:01.
  #41   Spotlight this post!  
Unread 09-08-2013, 12:18
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,624
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: Arduino + Ethernet Shield Help

Quote:
Originally Posted by jwallace15 View Post
The resistors you mentioned were all about 990-995. Close enough.
+/-5% = 50 Ohms max from value of resistor for 1k Ohm resistor
Well within spec even if it was only 2%.

Quote:
I don't remember grounding the inputs when I tested it the first time. I will now add a 10K ohm resistor on all the inputs to ground.
1. Take the relay board off the Arduino.
2. Provide the relay board 5V power.
3. Simply short any of the input pins to ground.

LED should light and relay should energize.

Quote:
It's behaving very strangely. When I plugged it in, IN6 activated. All of the LED's on the board itself were lit, but IN6 fired. I went to post example and "turned the LED on". It turned off the IN2 (what pin 8 is hooked up to). Then I "turned the LED off and it fired IN2.

Oh, and the LED for IN1 no longer works. But I think I may have damaged it with a crowbar when I was trying to extract the nails holding it to my train table to bring it upstairs... but all of the other ones are intact. (Another Edit: actually I just looked at it again and how I extracted it, and I didn't use the crowbar on that nail, I pulled it off by accident.. But the LED looks flatter than the other 7 working ones.. not sure how it broke though)
This is not exactly a fine piece of engineering here LOL.
However I would advise not hitting it with a hammer - just yet

Follow my steps above.
Don't get ahead of yourself.
If the board is damaged you might need to do some repairs.

Once you get my suggestion above working...test all the relays.
Post back with the results.
  #42   Spotlight this post!  
Unread 09-08-2013, 12:26
jwallace15's Avatar
jwallace15 jwallace15 is offline
What am I going to do with my life?
AKA: Wally
FRC #0068 (Truck Town Thunder)
Team Role: College Student
 
Join Date: Aug 2012
Rookie Year: 2013
Location: Michigan
Posts: 435
jwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud of
Re: Arduino + Ethernet Shield Help

All of them work when shorted to ground (did a continuity test just to double check). Except relay 1. But it isn't that big of a deal, I probably won't even need to use it. There's only about 4 things I want to control, my Dad just got the one with 8 relays just in case.

Now, should I just eliminate the 10K ohm resistors?
__________________
J Wallace IV
Truck Town Thunder
Just a college student now.

Last edited by jwallace15 : 09-08-2013 at 12:33.
  #43   Spotlight this post!  
Unread 09-08-2013, 12:29
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,624
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: Arduino + Ethernet Shield Help

Quote:
Originally Posted by jwallace15 View Post
All of them work when shorted to ground (did a continuity test just to double check). Except relay 1. But it isn't that big of a deal, I probably won't even need to use it. There's only about 4 things I want to control, my Dad just got the one with 8 relays just in case.

Now, should I just eliminate the 10K ohm resistors?
Here's what you should have:

>Vcc should be connected to a 5V power supply (not the Arduino power).
>Gnd should be connected to the same 5V power supply system ground and the Arduino ground.
>IN2-8 should be connected to whatever Arduino digital I/O you wish...directly.
>IN1 on your board is damaged do not connect it anywhere.
>You Arduino power input can be connected to the USB port for power or the relay board power supply (not the relay board but the same power source it gets power from), your choice.

Since the relay turns on when the digital I/O is driven to ground you probably want to reverse your code so 'On' is low and 'Off' is high.
  #44   Spotlight this post!  
Unread 09-08-2013, 12:35
jwallace15's Avatar
jwallace15 jwallace15 is offline
What am I going to do with my life?
AKA: Wally
FRC #0068 (Truck Town Thunder)
Team Role: College Student
 
Join Date: Aug 2012
Rookie Year: 2013
Location: Michigan
Posts: 435
jwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud of
Re: Arduino + Ethernet Shield Help

For some reason IN6 is being written upon, but not entirely. The LED is lit, but the relay isn't thrown.

Edit: It isn't IN6, it's pin 4 on my arduino. It's producing about .18 to .2 volts.

Another Edit: Also, I added into the code on/off buttons for the 7 different relays. Now it can't process the request fast enough. In other words, I go to Post Example and don't get a response. The RX led on the ethernet shield blinks and the WLAN and Ethernet Port 1 LED's on my router/bridge blink (the ethernet shield is plugged into ethernet port 1). It doesn't work on Chrome or IE.
__________________
J Wallace IV
Truck Town Thunder
Just a college student now.

Last edited by jwallace15 : 09-08-2013 at 12:48.
  #45   Spotlight this post!  
Unread 09-08-2013, 12:57
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,624
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: Arduino + Ethernet Shield Help

Quote:
Originally Posted by jwallace15 View Post
For some reason IN6 is being written upon, but not entirely. The LED is lit, but the relay isn't thrown.

Edit: It isn't IN6, it's pin 4 on my arduino. It's producing about .18 to .2 volts.

Another Edit: Also, I added into the code on/off buttons for the 7 different relays. Now it can't process the request fast enough. In other words, I go to Post Example and don't get a response. The RX led on the ethernet shield blinks and the WLAN and Ethernet Port 1 LED's on my router/bridge blink (the ethernet shield is plugged into ethernet port 1). It doesn't work on Chrome or IE.
Start with what you know.
Then explore what you don't know.

Put the working example code you just had in your Arduino.
Then connect just one relay to the digital I/O pin 8.

Does that work?
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 14:57.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi