Hi ACC community,
Backstory: In our industry at work, we have been using old boards that have no changed in about 30 years. The components very standard industrial in nature including EEPROM for storage, old tractor like IC's and RS232 communication between components (thus requiring rs232 to ttl converters for translations). Where is also a dedicated board called the "relay board", which contains a set of mechanical relays to trigger actions to start at other physical places. When we have a fault with any of the boards, we send them offshore to be "serviced". The last service I had done on our relay board seems to have not improved the board at all, nor do i see any evidence of them replacing any components from when I sent the board. So I've decided to take the matter into my own hands to see if I can find a good solution to analyze these boards, in particular the relay board, myself.
This thread will be regarding the relay board, and a specific output area of the board which is simply comprises of mechanical relays (and flyback diodes to block reverse voltage when the coils open)
Firstly, testing the coil heath is fairly easy by performing an ohm test on the coil. In the case of this board it can simply be done without de-soldering the relay.
So my question is basically how do we diagnose if a mechanical relay contact surface is degraded. This means perhaps the first 50 engages work perfectly fine, perhaps the first 100 or even 400 engages work fine but the 401th attempt do not make a good enough contact and thus produce contact resistance which is going to effect TTL down the line (thus not seeing the signal as valid)
This degradation test needs to be performed with the relays soldered in for convenience. If you wonder why the solder them in opposed to socketing in, it my be due to vibration concerns or most probablly to make it harder for us to relay ourselves. Thus asking me to send it in for an expensive service all the time.
I talk a little about a method I have thought about in my head to try test the health of the relays:
Firstly, the relays are Axicom D2n* 24V DC operated coils, they have 6 pin, 2 for coil, 2 for N/O, 2 for N/C. With the relay board dissconnected all pins are open circuit in the outside world (other than a fyback diode on one of the coil legs)
Basically the method I thought would be useful to test the relay on the bench would be to turn each relay on about 200 times about a half a second apart, as Im in no rush, and why the coil voltage is applied I would calculate the resistance between the N/O pins. (Im ignoring the N/C pins for now as I believe our system do not even utilize them). Once I have recorded all ohm values for the 200 tests I could then compare the results against a brand new healthy relay board to see if there is even severe deviations that could effect TTL.
For the actual build, I had in my mind a spare Arduino Leonardo board (5V TTL) to handle both activating these relays via a mosfet for each mechanical relay to switch on and off repeatedly, and to record the ohm resistance values of these contacts.
The later would be achieved by utilizing the analog pins on the board. This is the most important part of the test, the sensing mechenism. So lets break it down.
The analog pins do not directly record the resistance (of course). They sense the voltage at the pin via a sample and hold capacitor I believe. I've read its 14pF so it wont have much effect on our readings given our tests wont be on quick transient spikes but a prolonged signal at about 0.5s. So the basic idea is we will have a 1Kohm pull up resistor to 5V DC at a particular analog pin which is pared with a mechanical relay I am testing. At this along pin there will also be a path going to one N/O contact on the relay the other N/O contact will go to GND. This means we will have created a voltage divider and the analog pin will be between the 1K ohm resistor and the [contact resistance of the relay]. 5V and Gnd will be the end voltages of this divider.
So, when the relay is off, the analog pin should read 5V (or close). When the relay is on, the analog pin should read very close to 0V. However, if there is some contact resistance, it will show a non 0V result - probablly a very small milli volt value. Then using ohms law the arduino can calculate the ohm value of the contact resistance.
The calculation can be performed with: R_contact = (V_out * 1k_ohm) / (5v - V_out)
Where - R_contact is contact resistant of relay
- Vout of voltage divider output
- 1k_ohm is reference resistance of voltage divider
- 5v is the analong voltage we are pulling up to. In software we can get this exact value sensed before relay is on but will be close to 5V
Ok so this is the general idea. I wrote up this post to see what you guys think and am open to suggestions if anyone could chime in some beneficial experience or knowledge that could help me out on my endevor. It would be appeciated as I amvery motivated to make I really enjoy learning something new. Thanks. Regards, Tom

Backstory: In our industry at work, we have been using old boards that have no changed in about 30 years. The components very standard industrial in nature including EEPROM for storage, old tractor like IC's and RS232 communication between components (thus requiring rs232 to ttl converters for translations). Where is also a dedicated board called the "relay board", which contains a set of mechanical relays to trigger actions to start at other physical places. When we have a fault with any of the boards, we send them offshore to be "serviced". The last service I had done on our relay board seems to have not improved the board at all, nor do i see any evidence of them replacing any components from when I sent the board. So I've decided to take the matter into my own hands to see if I can find a good solution to analyze these boards, in particular the relay board, myself.
This thread will be regarding the relay board, and a specific output area of the board which is simply comprises of mechanical relays (and flyback diodes to block reverse voltage when the coils open)
Firstly, testing the coil heath is fairly easy by performing an ohm test on the coil. In the case of this board it can simply be done without de-soldering the relay.
So my question is basically how do we diagnose if a mechanical relay contact surface is degraded. This means perhaps the first 50 engages work perfectly fine, perhaps the first 100 or even 400 engages work fine but the 401th attempt do not make a good enough contact and thus produce contact resistance which is going to effect TTL down the line (thus not seeing the signal as valid)
This degradation test needs to be performed with the relays soldered in for convenience. If you wonder why the solder them in opposed to socketing in, it my be due to vibration concerns or most probablly to make it harder for us to relay ourselves. Thus asking me to send it in for an expensive service all the time.
I talk a little about a method I have thought about in my head to try test the health of the relays:
Firstly, the relays are Axicom D2n* 24V DC operated coils, they have 6 pin, 2 for coil, 2 for N/O, 2 for N/C. With the relay board dissconnected all pins are open circuit in the outside world (other than a fyback diode on one of the coil legs)
Basically the method I thought would be useful to test the relay on the bench would be to turn each relay on about 200 times about a half a second apart, as Im in no rush, and why the coil voltage is applied I would calculate the resistance between the N/O pins. (Im ignoring the N/C pins for now as I believe our system do not even utilize them). Once I have recorded all ohm values for the 200 tests I could then compare the results against a brand new healthy relay board to see if there is even severe deviations that could effect TTL.
For the actual build, I had in my mind a spare Arduino Leonardo board (5V TTL) to handle both activating these relays via a mosfet for each mechanical relay to switch on and off repeatedly, and to record the ohm resistance values of these contacts.
The later would be achieved by utilizing the analog pins on the board. This is the most important part of the test, the sensing mechenism. So lets break it down.
The analog pins do not directly record the resistance (of course). They sense the voltage at the pin via a sample and hold capacitor I believe. I've read its 14pF so it wont have much effect on our readings given our tests wont be on quick transient spikes but a prolonged signal at about 0.5s. So the basic idea is we will have a 1Kohm pull up resistor to 5V DC at a particular analog pin which is pared with a mechanical relay I am testing. At this along pin there will also be a path going to one N/O contact on the relay the other N/O contact will go to GND. This means we will have created a voltage divider and the analog pin will be between the 1K ohm resistor and the [contact resistance of the relay]. 5V and Gnd will be the end voltages of this divider.
So, when the relay is off, the analog pin should read 5V (or close). When the relay is on, the analog pin should read very close to 0V. However, if there is some contact resistance, it will show a non 0V result - probablly a very small milli volt value. Then using ohms law the arduino can calculate the ohm value of the contact resistance.
The calculation can be performed with: R_contact = (V_out * 1k_ohm) / (5v - V_out)
Where - R_contact is contact resistant of relay
- Vout of voltage divider output
- 1k_ohm is reference resistance of voltage divider
- 5v is the analong voltage we are pulling up to. In software we can get this exact value sensed before relay is on but will be close to 5V
Ok so this is the general idea. I wrote up this post to see what you guys think and am open to suggestions if anyone could chime in some beneficial experience or knowledge that could help me out on my endevor. It would be appeciated as I amvery motivated to make I really enjoy learning something new. Thanks. Regards, Tom
