Page 1 of 1

Ethernet Shield and BBB

Posted: Sat Feb 27, 2010 9:04 pm
by BobW
Paul:

I was looking at the ethernet shields described at http://www.arduino.cc/en/Main/ArduinoEthernetShield

The digital pins on this item have a space (.05"?) between digital pins 7 and 8 as does the Diecemilanova boards.

Your BBB boards do not have this space between pins 7 and 8.

Can the above ethernet shield be made to mate with a BBB ?

Or will I need to buy a Diecemilanova to use with such a shield.

Thank you.

Bob W

Re: Ethernet Shield and BBB

Posted: Mon Mar 01, 2010 8:16 am
by oz
Bob,

The answer is that the BBB can be made to mate with these shields but it takes a little bit of work.

Most shields don't use the analog pins (but be sure and check this - the I2C pins are on the analog block too). A simple way to mate the board then is to put the BBB on top (since it's smaller) The ethernet shield has stacking headers, so you just need to remodel the pins of a BBB. This is only really possible is you have some extra length to work with - so either buy some stacking headers or double height male headers and remodel them for the "lane change".

We do this successfully with Lady Ada's Wave shield board. You'll also need to hook up a power pin. This can usually be done by stubbing in a wire with one female socket on the end of digital pins. You can grab a 5V power connection from the underside of the shield on the power block of the ethernet shield. If you want a more robust looking application you can hot glue or epoxy the extra header to the end of the BBB's digital block (next to pin 0) or just let it hang off and insert it manually after mating the rest of the board. I have several shields that work fine that way.

Note that either the BBB or shield can be provided power as long as they have a connections for ground and +5V


Paul

Re: Ethernet Shield and BBB

Posted: Thu Mar 18, 2010 8:55 pm
by BobW
OK. My new Ethernet shield came today.
I put male pins on BBB pins 8-13 plus ground.
That's all I should need - right? (Plus power line)
Plugged it into shield.
Also connected +5V on Shield to BBB.

Shield powers up.

Loaded Example Chat Server pde.
Lights on board blink periodically.

From Windows cmd.exe window, ran "telnet 10.0.0.177"
(see code of pde)

Got "Connect Failed".

Pinging also fails.

Question: What is the absolute *SIMPLEST* way to demonstrate that this hardware works.?

Thank you.
BobW

Re: Ethernet Shield and BBB

Posted: Fri Mar 19, 2010 7:43 am
by BobW
OK - I'm up and running.
Last thing that was holding me back from success was the
"byte gateway() = ... " statement

I put in the WAN IP address of my network (instead of 192.168.0.1) and now it works.
I don't understand why, but it does.

I wonder if there's a way around this, so Ethernet Shield doesn't go offline when my ISP changes my IP address.

BobW

Re: Ethernet Shield and BBB

Posted: Fri Mar 19, 2010 7:46 am
by oz
BobW,

Get out your board schematic and have a look around. If you don't have a board schematic then get out your meter and use it on the "beep" (continuity) setting if it has one to confirm the pins that are connected. I haven't used an Ethernet shield so can' t comment too much on detais - I would check these pins on the Ethernet shield / Arduino digital pins as being usual suspects - pins 2 & 3 (interrupts), pins 0&1 (serial port connections)

Also check things like the power pins on all the chips. This is easily done be checking some datasheets.
We found a weird problem on Lady Ada's Wave shield with the ground - there were two sections of ground - only connected through two different Arduino ground pins - so we had to spice in a wire to connect the grounds on our hack.

If you want to post the schematic or a link to one, I'll have a look.

Paul

Re: Ethernet Shield and BBB

Posted: Sat Mar 20, 2010 8:52 am
by BobW
Paul:

Thanks.
I'm up and running OK now.
See http://thatsgoodbob.dyndns.org:8246 for example of code running on your BBB with Ethernet Shield.

I'm wondering if my initial problem had to do with the fact that I have the Ethernet Shield *under* the BBB. The shield has rather long pins that might have made contact with the metal mounting panel on the back of the Protoboard that it is stuck into. Thus creating a short. I can't tell if the holes in the Protoboard go all the way through, and I'm not about to unmount the board from the base.

Anyway all is well.

I just now had my brother-in-law in Buffalo toggle the state of some LEDs on the board on my bench here in Rochester. "It's good!"

Bob