November 23, 2024, 07:45:20 AM

MOD-IO relay status

Started by marcbas2, February 10, 2013, 03:16:35 PM

Previous topic - Next topic

marcbas2

Hi,
I can drive relays on MOD-IO borad, it works fine.
Is there a way to read the status of relays?

Thanks,
Marc

selfbg

Hi Marc,

There is no direct way to do that. You could make some hardware magic to use digital inputs.

Best regards,
Stefan/Olimex

marcbas2


veseo

The way that I'm using is to assign a byte into my program area that is written an relay command, so that this byte contain the status of the relays.

You can get wrong information if you reset only one of your boards, to solve this you can periodically force the relay state via I2C and reset them in the begin() of your application.

This should let you have consistent information.

Regards,
Dario.
Have a look at Souliss [url="//www.souliss.net"]www.souliss.net[/url] for Internet of Things and Home Automation, working to be compatible with Olimex modules.