Home / myESP01-Relay
Name Modified Size InfoDownloads / Week
Parent folder
ASCOM SWITCH DRIVER 2023-10-19
Windows Application 2021-03-28
ASCOM TEST APP 2021-03-28
Firmware 2021-03-28
myESP01-Relay-005.pdf 2023-10-19 3.8 MB
README.md 2021-03-28 4.2 kB
Totals: 6 Items   3.8 MB 13

myESP01-Relay Board suitable for ESP32 and ESP8266 myFP2ESP Controllers

(c) Robert Brown and Holger Manz, 2019-2021. All rights reserved.
The myESP01-Relay Board is designed to provide additional features to the following projects on Sourceforge.

  • myDCP4ESP32
  • myFP2ESP
  • mySQM+

This board provides a relay for implementation of a switch (ON/OFF). The board is supported by a range of applications, drivers and firmware.

BASIC FEATURES

The myESP01-Relay board provides

  • a single relay using an ESP01-5C relay module
  • improved firmware
  • ESPNOW, JSON and Web interfaces
  • Suitable for remote usage via Network, Wifi or ESPNOW

TYPICAL USAGE

  • turn on/off light panel for taking flats
  • shutter control for Canon camera
  • dome close/open
  • fan used for cooling mirror on Newtonian
  • turn off/on hardware devices such as hubs etc

APPLICATIONS

  • The Windows application myESP01-Relay provides TCP/IP control of the myESP01-Relay board.
  • The Linux application and source code is found on Sourceforge.
  • The ASCOM driver myASCOMRELAY provides an ASCOM control of the myESP01-Relay board.
  • The ASCOM test application myASCOMRELAYTESTAPP provides a client ASCOM tester for the myESP01-Relay board.

FIRMWARE

The firmware is found here. Download as a zip file then extract the zip file to access the library files and firmware.
https://sourceforge.net/projects/myesp-boards/files/myESP01-Relay/Firmware/

PDF

To get a clear understanding of myFP2ESP features and options, it is essential to read the PDF.
https://sourceforge.net/projects/myesp-boards/files/myESP01-Relay/

Compiling for ESP8266

Compiling the source code requires Arduino IDE v1.8.13 with the ExpressIF ESP8266 Arduino extensions. You will need to add the JSON file for the ESP8266 library by using the File->Preferences menu of the Arduino IDE and add the location for the library into the board manager http://arduino.esp8266.com/stable/package_esp8266com_index.json

Once specified, open the board manager, scroll down to ESP8266 and install version v2.7.4. Then you can specify the target board as Node MCU v1.0 (ESP-12E) with Flash Size set to 4M (1MB SPIFFS) and upload speed of 115200.

Note: Additional JSON files are separated in board manager by using a comma ,

Note1:

Additional JSON files are separated in board manager by using a comma ,

Note2:

When installed the folder C:\Program Files (x86)\Arduino\libraries\WiFi prevents compiling of ESP8266 firmware so move the WIFI folder to C:\Program Files (x86)\Arduino\libraries.old\WiFi

Additional JSON library Needed

Make sure you install the library ArduinoJson into the Arduino IDE else firmware will not compile. The latest version is at https://github.com/bblanchon/ArduinoJson/releases

Additional Libraries which must be downloaded and installed

To compile this firmware you need to ensure that you have installed a number of "library" files into the Arduino environment. For each of the links below, you need to DOWNLOAD the ZIP file first.

OneWire https://github.com/PaulStoffregen/OneWire

ESP8266 LittleFS Data uploader https://github.com/earlephilhower/arduino-esp8266littlefs-plugin

After downloading the zip files, you then need to install these into the Arduino IDE environment. To do that, start the Arduino IDE, select Sketch, Include Library, Add .Zip library, then navigate to where the ZIP files are stored and select them (you can only load 1 zip file at a time so please repeat this for all ZIP files).

The Sketch Data uploader requires a different method for installing. The install instructions are found in the download pages and require copying the files into a special folder of the Arduino program installation.

Once you have done this, you can start programming the controller.

boardconfig.h

Configuration information about the controller is specified in the boardconfig.h file. This is where you specify the controller options ACCESSPOINT or STATIONMODE.

Notes:

You will require a special programmer adapter to upload firmware to the ESP01. Details are provided in the main PDF file.

Source: README.md, updated 2021-03-28