1 Ardu Mega Server 2 Ardu Uno Clients EThernet I/O ctrl

Well the Unos were cheap and clumsy slow works on model railroad vintage turnout control. Added Ethernet shields to report to the main console Mega the Uno input statuses. Looking for I/O control sketch examples via local Ethernet connection.
Found bits and pieces for Ehternet and I/O. Struggling to merge them for the UNO R3 and MEGA 2560 use.
No code example found to run Ethernet shield and IO sketches together.

What voltage and current is available and where did you connect it.

Yes that is where the code writing becomes necessary. Purchase the Arduino Cookbook and read it cover to cover, in the process you will find your solution.

Many thanks.

what ethernet modules are you using? e.g. arduino-ethernet-shield-2

have you tested connectivity using example code? e.g. from File>Examples>Ethernet

how are the Ethernet modules connected? e.g. using a router

how do you want the overall system to work? e.g. central server controlling remote clients?

here I have a sketch to control pins via Ethernet:

Ok Hurricane Helene cleanup kept me busy.

So I use a after market Ethernet Shield with no MAC sticker.

The hole idea is to have a long my RR block tracks of 1.5 m lengths Arduino Unos for the IR sensors, signal, turnouts and DC power operation.

Each Arduino Uno does the 1.5 meter track zone control for the IR sensors automatically.
Each zone overlaps so the train only stops if an ahead zone is occupied.

The main operator console has Arduino Megas for the track layout LEDs and turnout, signal toggle oeperation swiches.

Their MEGA inputs shall than go via Ethernet shield to the RR track block different Arduinos.

No outside web connection. All local 192.168. x.x NW.

Yes I red Purdum and Margolis cookbooks. All sketch examples were Internet focused.

The Arduino Forum is my only hope. Otherwise it goes back to a web of good old console wiring.

With a 8 m wide and 16 m long layout I would need at 70 another lifetime.

I was a field service engineer. So PLC and human interface, HTML and C, ++ language knowledge is basically still in my old brain. LOL

Ooopsy
I have also these:

ENC28J60 LAN Ethernet Network Board
Module for arduino 25MHZ Crystal AVR 51
LPC STM32 3.3V
Features:
ENC28J60 LAN Ethernet Network Board Module 25MHZ Crystal AVR 51
LPC STM32 3.3V Network Module
PCB Size: approx. 4.8 x 1.8cm/ 1.89" x 0.71"
Chip: ENC28J60/SS
Crystal oscillator: 25MHZ
NI: HR911105A
Row pin power: 3.3V
Port: SPI
The ENC28J60 Ethernet Module uses the Microchip ENC28J60 Stand￾Alone Ethernet Controller IC featuring a host of features to handle most of
the network protocol requirements

DHCP capable router 192.168.1.1 cfg address. After that 100 Mbs Ethernet 8 port hub

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.