[fpc-pascal] Ethernet Relays

James Richters james at productionautomation.net
Mon Sep 14 23:45:54 CEST 2020


I put my project to control these ethernet relays on Git Hub at https://github.com/Zaaphod/Ethernet-HTTP-Relays/  

I thought I would post it here so if someone comes across this while searching for information about them they will find it.

This is a library to control Ethernet Relays that use web browser commands similar to:

* http://192.168.1.4/30000/00 : Relay-01 OFF 
* http://192.168.1.4/30000/01 : Relay-01 ON 
* http://192.168.1.4/30000/02 : Relay-02 OFF 
* http://192.168.1.4/30000/03 : Relay-02 ON 
* http://192.168.1.4/30000/04 : Relay-03 OFF 
* Http://192.168.1.4/30000/05 : Relay-03 ON 
* ... 
* http://192.168.1.4/30000/30 : Relay-16 OFF 
* http://192.168.1.4/30000/31 : Relay-16 ON 
* http://192.168.1.4/30000/41 : Enter 
* http://192.168.1.4/30000/40 : Exit 
* http://192.168.1.4/30000/42 : Next Page 
* http://192.168.1.4/30000/43 : Next Page 


These Relays are inexpensive and come either with a relay board or made to attach to common relay boards

It was tested with these boards:
--------------------------------
* 16 Relay:  https://www.amazon.com/gp/product/B00NDS9LBK (Controller) With https://www.amazon.com/gp/product/B07Y2X4F77 (Relay Board)
*  8 Relay:  https://www.amazon.com/gp/product/B076CNJNFH (comes with both the controller and the relay board)
 

It allows you to turn any relay on or off programmatically without using a web browser
It also deciphers the pages provided by the board's web server to all you to programmatically get the status of each relay
It can control multiple relay boards at the same time, they are referenced by their IP Address


James



More information about the fpc-pascal mailing list