![]() |
Re: Arduino + Ethernet Shield Help
Quote:
|
Re: Arduino + Ethernet Shield Help
Quote:
The good news is that all except the first relay works and you can drive them properly. The bad news is this is now a programming problem again :D Post your altered code and let's see where the issue(s) are. In the mean time, alter your working code to test each pin you want to use to drive relays one at a time. So change the 2 'PinD8' to for example 'PinD6'. This will at least verify that there's no burnt out pins on your Arduino. We know what the situation with the relay board is. |
Re: Arduino + Ethernet Shield Help
This is the altered code I wrote earlier that wouldn't load:
Code:
#include <SPI.h>I tried deleting all of the lines except for one input/output line and it didn't load. Then I switched back to the original working code that I posted on page 3 and it doesn't work either. I went into CMD and entered "ping 192.168.1.130" and the request timed out. None of the pings made it back to CMD. |
Re: Arduino + Ethernet Shield Help
Quote:
Turn it back on. Load the original working code. Turn off the Arduino system. Turn it back on. Try that? Also if you put an microSD card in the socket remove it. Your example was written on an older shield that did not have the reader. If you put a card in the reader it might lock the ethernet interface on you. |
Re: Arduino + Ethernet Shield Help
My ethernet shield is made by sainsmart as well, and the chip on it gets very hot, so I turned it off in hopes that it simply overheated.
Turning it back on now, along with the router/bridge. Pinged it, and the Arduino replied with all 4 pings. Now testing the outputs. The issue with pin 4? When I tested it the LED was lit. Then I turned it on in post example and it lit and the relay fired. When I pressed off the voltage went to 0 instead of hovering around .19. Correction: It still does it. |
Re: Arduino + Ethernet Shield Help
Quote:
Frankly I would avoid using pin 4. That pin on the Arduino shield with the microSD card reader could shut down your ethernet interface. |
Re: Arduino + Ethernet Shield Help
All of the pins are fine except pin 4. Now for the code...
|
Re: Arduino + Ethernet Shield Help
Quote:
Don't use pin 4 with either shield. You risk sending select to the microSD card and disabling your network interface. Still the interface shouldn't get hot...maybe a bit warm...so let's continue. |
Re: Arduino + Ethernet Shield Help
Ok. Will not use pin 4.
I don't use a Micro SD card in the ethernet shield anyway. Back to the programming. I don't see what is wrong with it, in the book it said adding another line with the same code (just a different D#) would work. Edit: I think I know what I did wrong. I didn't copy a line saying "client.print" on accident. Yes, that was the problem. |
Re: Arduino + Ethernet Shield Help
Quote:
|
| All times are GMT -5. The time now is 16:48. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi