0

I have searched this question but could not find an answer on this site.

There was a related question - Latest Ethernet shield - used pins, how to bypass restrictions on arduino forums, but, I was unable to understand what the answer meant.

The background of my project:

My project requires

| S.No. | IO Type | IO Qty |
|-------+---------+--------|
| 1     | AI      |     11 |
| 2     | DI      |      9 |
| 3     | DO      |     11 |  

I intend to connect this arduino board via ethernet shield to a network. I want to receive data over the network for display and storage purposes on a PC.

Questions:

  1. What Arduino board should I select?
  2. Will ESP8266 be compatiable with the suggested model?
  3. Are there any pitfalls that should be considered when making the selection for this design.

P.S: I have raised the same question on the arduino forum. If I get an answer- I will share my answer here as well

4
  • @Juraj. I understand that [Mega2560] has the most number of IO's. 16-AI and 54 DI/DO. Should that be ok?
    – Prasanna
    Commented Feb 5, 2018 at 17:56
  • click the link to the "related question" and you will find that it invalid.
    – jsotola
    Commented Feb 5, 2018 at 18:03
  • @jsotola Its funny, that the link broke. Fixed it
    – Prasanna
    Commented Feb 5, 2018 at 18:06
  • instead of posting the same thing on two websites, post a description here of what you do not understand. ... someone here may be able to give you an explanation. ... the way things are, you may get an answer, but your understanding will still be unclear.
    – jsotola
    Commented Feb 5, 2018 at 18:10

1 Answer 1

2

You should use a Mega if you really need so many gpio pins.

Arduino Ethernet and WiFi shields and their clones use 3 GPIO pins with SPI function with connection on ICSP header. Next they use the Slave Select signaling pin 10 and the SD card Slave Select signaling pin 4. The shields are compatible with Mega. So you should still have enough pins.

esp8266 can be connected to SPI. then it uses the same pins like the Ethernet shield except of the SD card slave select pin.

if you connect esp8266 to Serial port, then all the pins are free. Mega has 4 Serials.

esp8266 is cheaper but you need to connect it with level shifters and have a good power supply. there is no good esp8266 shield for now. The Mega + WiFi board from Robotdyn has the esp8266 on board with Serial connection.

1
  • 1
    SPI function is on pins 11, 12, 13 on Uno and 50, 51, 52 on Mega. the Slave Select (SS) pin is SPI function if Atmega is SPI slave. 10 on Uno and 53 on Mega. If Atmega is master, then the SS pin must be set as output. So it is good to use it for signaling to SS pin of one of the slaves.
    – Juraj
    Commented Feb 5, 2018 at 18:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.