Arduino ESP8266 Relay ect.

Hi

hope that some one can help me.

i have this setup:

Pin of Arduino Description
D0 RxD (ESP8266)
D1 TxD (ESP8266)
D2 Xbee Reset
D3 nRF24L01+_IRQ
D4 R0 (Relay0)
D5 R1 (Relay1)
D6 R2 (Relay2)
D7 R3 (Relay3)
D8 nRF24L01+_CE 
D9 nRF24L01+_CS
D10 SD_CS
D11 SPI_MOSI
D12 SPI_MISO
D13 SPI_SCK
A0 AD0
A1 AD1
A2 AD2
A3 AD3
A4 AD4/IIC_SDA
A5 AD5/IIC_SCL

on a "Atmega328"

hope that someone can help me with some code creation.

I have a xml file filed with connection and functions, witch i'l put on the SD card

I want the Atmega328 to read the XML and by thees informations it know how to handle the Input and Outputs

An example of the XML is attached!!

This XML is setup to have:
4 Inputs
4 Outputs
4 Functions

and all the functions are alike:
When "Input0" in momenterely high
it turn ON "Relay0"
When "Input0" in momenterely high
it turn OFF "Relay0"

So this is a simple XML

Can some one help me with this??

RBoard.txt (30.1 KB)

Do you have any code already? If so, please post it.
Or are you looking for someone to write it for you? If so, "gigs & collaborations" is the section you're looking for.

This is by no means "simple" as for starters that xml file is far too big to fit into the Arduino's memory. Even just the data contained in it will be way too big to keep in memory. That's going to be lots of reading from the SD card to get to the strings as needed, or even to analyse the file. XML is not the most machine-friendly format, it's primarily designed to be human readable.
An ESP8266 would work a lot better indeed as it has so much more memory to work with, and at a size as the example it should be able to handle it quite well but it also can't be too much bigger than this.