Skip to content

Code for controlling 4 port relay board with ESP8266 from IC Station

License

Notifications You must be signed in to change notification settings

LarsThunberg/antenna-lna-ESP8266WebRelaySwitch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

antenna-lna-ESP8266WebRelaySwitch

switchboard

Desciption

Control of on/off for LNAs and antenna relays using a ESP8266 4 channel relay board via a simple web interface. Can be used to control anything via the relays, just change the names in the HTML part of the code. Part of the HTML code is from Peter (2M0SQL) - https://github.com/magicbug/polarisation-switch

Relay boards used is the following, but similar boards with the same type of serial control of the relays should be possible to use:

Setup

Enter the name and password of your Wifi network:

const char* ssid = "name"; //Enter Wi-Fi SSID
const char* password =  "password"; //Enter Wi-Fi Password

Change the following to your choice of fixed IP address, or just remove/comment all the IPAddress rows if you would like to use dynamic address. See comment in the code.

  IPAddress ip(192, 168, 1, 20);

I have used this for controlling two LNAs and two antenna relays, but change the name of the buttons if you like, look in the different part of the HTML code. Then just flash the ESP8266 with the tool of your choice (I use Arduino IDE for Windows).

Web interface

The result for the web interface, see below. The page is responsive. The relay board starts with all relays to off position.

switchwebinterface

About

Code for controlling 4 port relay board with ESP8266 from IC Station

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages