Moteino USB + ethernet shield W5100

Started by livio.merola, August 30, 2015, 09:11:21 PM

livio.merola

Dear all I need your support

first of all I'm sorry for my english (it's not so good)..
the questions are:

1) how to connect moteino USB with an ethernet shield for arduino uno?
I already try to connect with wires using spi interface and using moteino
pin 8 instead of 10 (pin 7 on moteino connected to pin 10 of eth shield)
and powering the shield with 5v DC but the code that work correctly with
arduino uno doesn't work with moteino...

2) second question is... it is possible to use arduino uno with ethernet
shield connected to moteino usb using only radio transceiver and how to wire it?

thanks a lot for your support.


Livio





livio.merola

Thanks TomWs

I already saw the post...

maybe my questions are not clear and I'm not expert on electronic issues....



NSS --> 8
SCK --> 13
MI -->  11(MO)
MO --> 12 (MI)
RST --> not connected
pin D10 have to be set to LOW in order to disable RF, it's correct?

but it is not necessary to connect also a logic level converter to convert 5v of eht shield to 3.3v of moteino USB??

what about the second question?
use arduino uno with eht shield and connect them to a moteino usb for using only RF module

Thanks a lot for your help.

Regards

Livio



TomWS

Quote from: livio.merola on August 31, 2015, 09:49:53 AM
Thanks TomWs

I already saw the post...

maybe my questions are not clear and I'm not expert on electronic issues....



NSS --> 8
SCK --> 13
MI -->  11(MO)
MO --> 12 (MI)
RST --> not connected
pin D10 have to be set to LOW in order to disable RF, it's correct?
No, D10 MUST be set HIGH to disable the radio during Ethernet access.  Use the following code sequence in your setup code:
  digitalWrite(10,HIGH);
  pinMode(10,OUTPUT);


Quote
but it is not necessary to connect also a logic level converter to convert 5v of eht shield to 3.3v of moteino USB??
No, the W5100 uses 3.3V signalling, just like the Moteino but it 5V tolerant for the UNO.  The shield has its own 3.3V regulator on board so you need to connect the Moteino USB PWR/Vin pin to the 5V input of the shield.
Quote

what about the second question?
use arduino uno with eht shield and connect them to a moteino usb for using only RF module
I don't understand this.  It is not written as a question.

However, you must read all of the two posts I referenced.  You need to update your Ethernet Library to use pin 8 as an SS pin.  Also you MUST NOT have Flash installed on the Moteino USB.  If you do, you need to pick another pin than pin 8 (Flash uses pin 8 ).

Tom

livio.merola

#4
Great TomWS thanks a lot for help me about ehternet shield....

concerning the second question I'm going to explain better....

I want to connect (if it's possible) Arduino uno + ethernet shield with a moteino USB for using only the radio transceiver

The idea is to use Arduino Uno + Ethernet shield to drive scketch and internet connection and connect them to moteino USB for using only the radio component  (the question is: it's possible and if yes how to wire it?)....
and if the answer is "yes It's possible" the next question is:

I have to change also the NSS pin in my code?






TomWS

Quote from: livio.merola on August 31, 2015, 11:03:20 AM
Great TomWS thanks a lot for help me about ehternet shield....

concerning the second question I'm going to explain better....

I want to connect (if it's possible) Arduino uno + ethernet shield with a moteino USB for using only the radio transceiver

The idea is to use Arduino Uno + Ethernet shield to drive scketch and internet connection and connect them to moteino USB for using only the radio component  (the question is: it's possible and if yes how to wire it?)....
and if the answer is "yes It's possible" the next question is:

I have to change also the NSS pin in my code?
If I understand your application, you want to use an Arduino Uno with an Arduino Ethernet Shield connected to your wired network.  Correct?
Further, you want to have a wireless network support using a Moteino RFM69 radio, is this also correct?

Are you thinking of connecting directly to the RFM69 radio using the Moteino pins?  If so, I do NOT recommend this unless you are prepared to do a lot of new software work. 

Is there a reason you want to use this combination of hardware? 

Are you open to using a different combination of hardware?

Tom

livio.merola

Ho Tom

Correct...but if a Lot of work is nedeed it's not the solution ..

So to use eth shield with moteino the Steps are:
1)Use a modifica rfm69 library  that allow to select the pin (the one in The Previous post of forum)
2) connect to pin 7 instead of 10
Use the two rows of code into setup part of the sketch. .

Where I can find a Basic example of code to connect moteino to eth? ?

Thanks again

livio