Codementor Events

Relay-Module Controller

Published Mar 30, 2020
Relay-Module Controller

The toolbar was made so you can configure connection parameters (IP Address, TCP Port and connection password). On the left with the power buttons, you have the 8 relays. Each relay is represented a number representing the channel board in the relay module.

On the right, you have the zone/trigger functions. The custom trigger is linked to your connected module. It will let you define a set of conditions (hardware & software defined), and you can send specific commands to the relay module.
For the zone sensors, the triggers zone allows you to add external sensors to your connected module (up to four). A sensor can be either analog or digital. Each sensor is identified by an I/O port.

I also gave permission to edit the setting communication modes for the 4 ports, such as A/B/C/D and so on. You are able to change port type, even a digital port. I also allowed certain modes for everyone's liking.. such as Pert-Mode, which allows you to provide minValue and maxValue parameters. The value will be calculated as follows : displayed value (%) = 100 *(read value - minValue) / maxValue.

There is also a custom mode, where I allow you to have full range of using the public C# functions I enabled, so you are able to control what gets passed in each argument.

(Panel was made in C#, source will be released within 2 weeks, objective serial stance is having minor issues with some boards, I am adding compatibility with UTFT)

Discover and read more posts from Logan Guiden
get started
post commentsBe the first to share your opinion
Show more replies