Fork + Relay
w5500
2
Project description
Will be necessary for the circuit:
- Fork;
- Breadboard;
- Relay;
- Set of wires.
Note – As a source of +5 V I used the power supply and DC/DC converter, with a possibility of the output voltage adjustment. Any other source of +5 V is also acceptable.
Assembled a circuit to test the relay at idle.
All commands are sent in the browser address bar.
To check the link, I enter the command
http://192.168.0.205/control?DI0http://192.168.0.205/control?DO0=1http://192.168.0.205/control?DI0This time the fork gives 1. Everything is connected correctly.
In order to automate the relay switching process, I wrote a script in javascript that will switch relays in automatic mode and check the result. If a switch occurs, the script will increment the counter. Otherwise, we would see an error message and process would stop. Also, the script will constantly display the counter value. LINK.
Set the number of switches to 100 at 2 Hz.
Started the process. For the test, I simulate the sticking of the relay by disconnecting one wire from Fork. I see that the process has stopped at the point of 7th iteration. I can also see an error message.
Now I will set up 100,000 switches and then start the process.
We’ll have to wait about 14 hours.
In 14 hours I will see a “success” notification. The relay has completed 100,000 switches.
I will proceed to step 2 and assemble the current load circuit.
In this case, we will also be needing:
– Power supply unit 12В/10А;
– Load resistor 1.5 Ohm 100 W;
– Wire set with section 0.75 mm2;
– Two resistors rated 6.8 kOhm and 4 kOhm.
Note – as a load I used 3 resistors rated 4.7 ohms, connected in parallel. Equivalent resistance is 1.56 ohms, which corresponds to a current of 7.65 A.
http://192.168.0.205/control?DI0http://192.168.0.205/control?DO0=1http://192.168.0.205/control?DI0I run a script.
The relay again has completed 100,000 switches at a load current of 8 Amperes.
I proceed to stage 3. In addition to the 8А load in parallel, I connected an electrolytic capacitor at 50 V and 330 μF, to simulate the start-up current of some tool. I also increased relay switching frequency to 4 Hz.
Here is the circuit.
It was necessary to replace Fork’s digital input with analog input to detect the state of the relay.
To verify, I enter the command
http://192.168.0.205/control?DO0=1http://192.168.0.205/control?AI1