I have compiled the sketch but have not tried it out yet. As an Arduino newcomer I am not 100% sure I am doing the right thing and was hoping someone could review the procedure I am following. I can contribute with a PR for a README file with these compile instructions once completed and reviewed. I have a DIN Rail Energy Monitor with a single ATM90E26 (bought during the CrowdSupply campaign a while ago). I am compiling on Arch Linux and use the standard Arduino IDE. Here are the steps I've followed:
Search for ESP8266 in Tools > Board > Board manager and install
Install additinional libraries via Tools > Manage libraries:
ArduinoJson version 5.13.5 (it probably only requires minor changes but the current implementation of the sketch returned errors with version 6.10.1 due to API changes)
U8g2 for the OLED driver (I installed the latest version 2.25.10)
Set the correct compile target under Tools > Board to the LOLIN(WEMOS) D1 MINI Pro, see also https://docs.wemos.cc/en/latest/d1/d1_mini_pro.html. Note that the documentation is for v2.0.0 of the board, while the DIN rail module seems to have v1.1.0
I have the following remaining questions regarding some of the other compile options:
What CPU Frequency is recommended, 80 or 160 MHz? Or is that just a matter of what to expect from the performance/energy consumption of the device?
Any other recommendations for the other compile options (such as Flash size, Erase Flash, etc), or just leave everything to its defaults?
EDIT: the original issue incorrectly indicated the compile target for the board was a LOLIN(WEMOS) D1 R2 & MINI.
I have compiled the sketch but have not tried it out yet. As an Arduino newcomer I am not 100% sure I am doing the right thing and was hoping someone could review the procedure I am following. I can contribute with a PR for a
README
file with these compile instructions once completed and reviewed. I have a DIN Rail Energy Monitor with a single ATM90E26 (bought during the CrowdSupply campaign a while ago). I am compiling on Arch Linux and use the standard Arduino IDE. Here are the steps I've followed:ESP8266
libraries as instructed on https://arduino-esp8266.readthedocs.io/en/latest/installing.htmlFile > Preference > Additional Board URLs
fieldTools > Board > Board manager
and installTools > Manage libraries
:ArduinoJson
version 5.13.5 (it probably only requires minor changes but the current implementation of the sketch returned errors with version 6.10.1 due to API changes)U8g2
for the OLED driver (I installed the latest version 2.25.10)energyic_SPI.cpp
andenergyic_SPI.h
from https://github.com/whatnick/ATM90E26_Arduino in the working directoryTools > Board
to theLOLIN(WEMOS) D1 MINI Pro
, see also https://docs.wemos.cc/en/latest/d1/d1_mini_pro.html. Note that the documentation is forv2.0.0
of the board, while the DIN rail module seems to havev1.1.0
I have the following remaining questions regarding some of the other compile options:
CPU Frequency
is recommended, 80 or 160 MHz? Or is that just a matter of what to expect from the performance/energy consumption of the device?Flash size
,Erase Flash
, etc), or just leave everything to its defaults?EDIT: the original issue incorrectly indicated the compile target for the board was a
LOLIN(WEMOS) D1 R2 & MINI
.