This page logs my setup and ongoing experimentation for development of 'Internet of Things'.
The information is frequently 'borrowed' from other web sources (hopefully with
proper acknowledgement) and may change as my experience advances.
It does not claim to be up to my normal Professional Engineering standards,
but is just for experimentation in what is a 'very exciting field'.
Creating an Arduino Ethernet MQTT Client:
This section will explain how to wire up and program an "Arduino Nano" module with an "ENJ28J60 EtherCard Module", and an OLED display.
- Download the EtherCard drivers from github.com/jcw/ethercard/archive/master.zip
- Unzip the Folder ("ethercard-master.zip") and rename the downloaded folder to "ethercard".
- Move the folder "ethercard" to the "C:\My Documents\Arduino\libraries" directory.
- Run Arduino IDE and check that "ethercard" is under Examples.
- Wire up the ENJ28J60 card with Arduino Nano as per the following drawing....
- Brown wire D12 to SO, Orange wire D11 to ST, Yellow wire D13 to SCK, Green wire D8 to CS.
You must provide a 5 volt supply, and now you need to connect a LAN cable to
the ENJ28J60 module and test that the new Arduino Server can connect and be viewed through a webpage.
The Library files for running MQTT under EtherCard must be downloaded....
- Download the "NanodeMQTT-master" from NanodeMQTT
- Unzip the Folder ("NanodeMQTT-master.zip") and rename the downloaded folder to "NanodeMQTT".
- Move the folder "NanodeMQTT" to the "C:\My Documents\Arduino\libraries" directory.
- Download the pre-requisite "NanodeUNIO-master" from NanodeUNIO
- Unzip the Folder ("NanodeUNIO-master.zip") and rename the downloaded folder to "NanodeUNIO".
- Move the folder "NanodeUNIO-master" to the "C:\My Documents\Arduino\libraries" directory.
- Download the pre-requisite "NanodeUIP-master" from NanodeUIP
- Unzip the Folder ("NanodeUIP-master.zip") and rename the downloaded folder to "NanodeUIP".
- Move the folder "NanodeUIP-master" to the "C:\My Documents\Arduino\libraries" directory.
- Run Arduino IDE and check that "NanodeMQTT" is under Examples.
EtherCard Useful Links...
Last updated: 13-JUL-2016 at 10:45am.
|
|