With this post we open the new category “Test files”, which is a sort of repository for testing and experimenting with Archiduino. Every test file contains the results of real experiments, not just theory. We hope this will be of any help to the growing family of Archiduino (and – why not? – Arduino) users. So, let’s start!

Test file #1 – How to build a small web server using Archiduino and the Ethernet ENC28J60 SnipCard


In order to work properly, an Ethernet interface running on Archiduino (as well as on equivalent Arduino boards) needs some libraries that aren’t too small. This is the first – and thoughest – challenge for the old, dear, (too) small Atmel ATMega32U4. In past months we built a nice Ethernet interface (with ENC28J60) for the Archimede project. Recently we thought: why don’t we use it on Archiduino too? Has the CPU enough resources to drive it? Well, this test file is the answer.

What do we need?

Test file #1 - BOM (Bill of materials)

1CPUArchiduino CPU ATMega32U4Needs hardware configuration (CN10 and JP6, see notes)CPU socket
1BASE BOARDArchiduino Base Board
1ETHERNETEthernet SnipCardM9
1ADCADC SnipCardM7
1LCDLCD Card with keyboardOptional, but usefulLCD socket

Hardware configuration

The CPU needs to be adapted in order to fit the Ethernet interface cable. As you can see in pictures, we have to solder the small Gadgeteer connector on CN10. The orientation notch must be placed towards the ATMega32U4 chip.

JP6 schematic

JP6 schematic

We need to close the jumper JP6 on pins 1-2, with a solder drop. About connector placement and soldering: it’s very small, not everybody has the skills or tools to solder it properly. But… no fear, if you want to run this experiment and you buy Archiduino and SnipCards, we provide – as default – every connector placed and working.

JP6 jumper for ethernet connector

JP6 jumper for ethernet connector


To write the sketch we simply adapted an example found attached to the UIPEthernet libraries. The program reads a voltage regulated by a potentiometer on pin M7A and a photoresistance on pin M7B, via the ADC SnipCard (which has as default two inputs: one designed for analog voltage measurement 0-10VDC, the other for a resistive load like photoresistor, NTC, PT1000 etc.). Both values are displayed on the LCD and  sent to the http web server. The server is configured to work at a fixed IP (in the sketch it is, change it according to your needs). When we open the IP in the browser, we can see the values displayed in the html page.

In the example there is also an alert system which send on the serial port informations about connection ad disconnection. You can obviously adapt it to your environment, or exclude it to save flash space.



After uploading the sketch, the available flash space is just about 2 Kbytes. This could be a problem if we consider to implement a complex firmware. But, if we need to display a set of values coming from Archiduino I/Os, even if they are related to every possible channel of the system, the space is enough to do that.