Using an ATOM with Ethernet Module - PLEASE HELP ME!

Hello,

Full disclosure, I’m not an expert but I’m trying my best!
To explain in very simple terms - i want to be able to read the value of a temperature sensor, remotely from the internet, using the Basic ATOM.
More specifically, i would like to post this temperature value to a database on a server (to be read by a website) for example.

I have been looking at the ENC28J60 Ethernet Module. It uses a serial IO to communicate via the internet.
I have looked extensively on the internet for some example code and even trawled through the datasheet looking for serial parameters to send to the ENC28J60.
But nothing.

I have found people using this module with Arduino but I cannot stand the language and would prefer to use the ATOM.

Can someone PLEASE help me out with either some example code, or perhaps suggest a different module to use?

I would really appreciate your help!
Thankyou

Hi,

Unfortunately, the ATOM modules are discontinued (only available in production quantities) and therefore very little support is offered at this point by anyone.
One possible option available to you at this point would be to look at the existing libraries in other languages and translate it to the ATOM language.
A quick search online revealed the following sources as a starting point:

  1. github.com/jcw/ethercard
  2. github.com/ntruchsess/arduino_uip
    Please note that neither of those are a complete solution for your situation and will require a substantial amount of work to make it functional.
    Also, please check the ENC28J60 datasheet for more details on the protocol (usually SPI).

You should also check the ATOM manual and reference guide for more details on the commands used for SPI with it.

Hope this helps,

Thankyou for your reply and help.

I want to avoid using libraries. I’m looking for the raw serial commands but cannot find them anywhere (if there are any).
The other option i thought of was to ‘sniff’ the RX/TX of the Arduino and see what serial data is being sent.
By doing this - I’d be able to get the Arduino to do what I need and copy the serial to the ATOM.

I understand this is a dated technology, but were there any specific modules that allowed Ethernet connectivity for the ATOM?
I’m not set on using the ENC, it was just something that I had lying around.

Thanks in advance,
George

Hi George,

While sniffing packets from the Arduino is possible, please realize that this is a rather complicated approach when the full set of SPI commands for the module are available in the datasheet of the ENC28J60 here. Check the table contents to know where to find the memory layout of the chip, the SPI interface requirements and all the information required to read & send packets.

We recommended looking at existing libraries to save you time in learning how to initialize and use this module since other people already did it and documented their work. You do not have to actually use the libraries themselves but this could save you many hours of reading the module’s datasheet.

We do not know of any Ethernet modules or add-on specifically for the ATOM. In theory, any modules made for Arduino can be used with an ATOM if it uses any of the standard interfaces like UART, SPI (like the ENC28J60), I2C, 2-wire, 1-wire, etc. The only problem is that you will have to rewrite the code require to use those modules from scratch (from the information in the datasheets of the modules) or adapt the code base from the Arduino libraries for those modules.

Sincerely,

Thankyou for your help scharette :slight_smile: