I recently bought a Maple board for a technology project and I was wondering what is necessary to get the Arduino Ethernet Shield working in terms of circuit design and programming. I've read that the Ethernet Shield was compatible with the Maple and I've seen a thread on the forums about an Ethernet shield library, but I'm not too sure if the Ethernet Shield is plug-and-play or if there's a circuit that I need to build. Thanks in advance!
Arduino Ethernet Shield
(19 posts) (8 voices)-
Posted 2 years ago #
-
Just to let you know, I'll have an answer for you in a day or so. I'll need to do some research to ensure, but I believe you can plug in the shield and just use the library, but I cannot be sure until I take a look at the schematics.
Posted 2 years ago # -
The Arduino Ethernet shield uses a 6-pin female ICSP connector, that connects to the 6-pin male header on Arduino. Since maple doesn't have the same header, the board probably won't connect properly - both mechanically, and in principle since the Ethernet shield uses the ICSP header's SPI pins. Maple does support SPI though, so I imagine it wouldn't be too hard to connect it using jumper wires... but you'd also have to change the Ethernet library to account for differences in the syntax of Maple's hardware SPI library.
Posted 2 years ago # -
All of the above, except if you have version 1 (or 0) of the Ethernet shield in which there was no ICSP connector.
I have one of those, but haven't gotten 'round to do anything with it and maple. I'm using it to tell me when the next bus is arriving. :)
Posted 2 years ago # -
Hey guys, thanks for the responses. From what I understand from what you all have said is that I can use the ICSP for SPI communications between the Maple and the Ethernet Shield. To do this I would have to take the "Master In Slave Out(MISO)", "Master Out Slave In (MOSI)" and "Serial Clock (SCK)" pins on the Ethernet shield's ICSP port and hook them up to the SPI pins of the Maple board. As well as VCC and Ground on the ICSP port to VCC and Ground pins on the Maple of course. Is this correct?
Also, is the Reset pin necessary as well or can I just leave it as it is?
Thanks!
Edit: Crenn, I saw your code with the Ethernet Shield and you mentioned it have errors in it. I'm just wondering what can your code currently do "as is" right now?
Posted 2 years ago # -
trevorshiwnath - I'd expect the SPI pins + power and ground to be the minimum pins to connect.
Would you post a link to the schematic of the Ethernet shield you intend to get, so somebody may be able to check out RESET? There are two different reasons I can think of for connecting RESET, and their may be more, so a schematic may help.
(Full disclosure: I am not a member of LeafLabs staff.)
Posted 2 years ago # -
Electrically, you just need SPI (including CS pins), 3.3V, 5V and GND. As for the state of my library, I believe it didn't compile last I checked, I'll have to look into it again and try to get it working, I can't promise a working library since I don't have an ethernet shield to play with, but I can try to at least get it compiling. I'll post back here either when I've ported it again or when I've run into a problem I can't work around.
Posted 2 years ago # -
Progress is being made... slowly:
http://www.crennsmind.com/Code/Maple/Libraries/Ethernet/Ethernet_v0.3_Errors.txtPorting the library included with Arduino IDE v1.0.3.
Posted 2 years ago # -
I have an olimexino and the ethernet shield without the ICSP pins, so I can actually mount it on top of the processor board.
The issue is that I am currently in South Korea where it seems to be extremely difficult to get a wired internet connection to test it out. :|
I had been thinking about converting the Arduino libraries to the Maple IDE, but other things got in the way. If you need someone to test it out, let me know. Once I get home on the next 13th I can give it a try.
Posted 2 years ago # -
A tester would be good, not sure when the library will be ready though. Got to work out why the errors are occurring and solve them.
Posted 2 years ago # -
As I said, I'll probably only have time and wired internet availability mid next month and even then I'll be moving in to a new house so you don't need to rush. I'll also be giving the finishing touches on my bus arrival gizmo (with an Arduino though).
I haven't looked into the differences from W5200 to W5100 and as far as I know the big difference is the buffer size for each socket, but because Wiznet now also makes these little WizIO modules maybe it would be good to think about adding support for them as it seems to be impossible to find the first version shields in the market and the latest aren't hardware compatible with Maple.
I had a ping method already implemented for Arduino that I can try to find here for you to add and a method for performing a SW reset on the W5100 would be a bonus. :)
Let me know where you are with it and I'll test it when possible.
Posted 2 years ago # -
For the moment, I think the core functionality is what should be concentrated on, however, if you could find the links or documentation, it's something I could look into the future when expanding the library. One of the things I've had to do while working with the new Ethernet library (not sure if the dependencies were there in previous versions) is copy a lot of files in the Arduino 'base' code that the Ethernet library relies on. Moving forward is possible going to find anything AVR specific and remove it for the moment.
Posted 2 years ago # -
I've a couple of WIZ820io's which I can test the library on, just post it here when ready...
Posted 2 years ago # -
Yes, I think the basic functionality is the starting point, but doing so while having information about the differences, some times allows you to at the very least leave a comment in the code regarding a necessary change to adapt the library to the W5200.
One important difference between both platforms is the DMA on the Maple, which can simplify the write/print functions in the library.
But as you said, one thing at a time. :)
Posted 2 years ago # -
I've run into a small problem which is actually a small brick wall. The problem now is that there is no String class included with the IDE. It's possible to work around this problem, but it's an annoyance and the idea of having to write a String class doesn't thrill me (or could be because it's past midnight).
If I can't find another solution or work around, then I'll write a String class.
Posted 2 years ago #
Reply »
You must log in to post.