Please excuse the crazy title. This picture probably tells you more:
And that’s all you need to create a webserver!
Here’s a sample screen (yep, it’s been running for almost 12 hours):
And here’s the code for it:
It presents a self-refreshing page with the “uptime”, i.e. how long the server has been running since power-up.
The code is available as “rbbb_server.pde” example sketch in the EtherCard library and is a simplified adaptation of the etherNode sketch, omitting the RF12 driver and calls, of course. It compiles to 6 Kb of code.
As with the etherNode sketch, the MAC address and IP address have to be set to suitable values in the source code before uploading it to the RBBB.
BTW… did you notice anything?
The RBBB is running at 5V. And it works. Because the Ether Card is compatible with 3.3V and 5V signals!
Which also means that the Ether Card can be used with any Arduino board. It’s not specific to JeeNodes and it’s not limited to being used with the Carrier Board, either.
The generic software for the Ether Card is contained in the “EtherCard” library, listed on the software page in the Café. It doesn’t depend on Ports or RF12 libraries, so this thing really is a completely independent product.
It just “happens” to fit gorgeously into a box alongside a JeeNode :)
So there you have it – the Ether Card can be used with just about any microcontroller setup. All it needs is a power supply of 3.6V or more, 4 SPI I/O pins, and the proper software to make it sing of course…