We start from the module HL-58S:
The form is signed HL-58S V1.2: we see how to activate a relay. For the circuit uses the input signal must be active low: it means that when the output of the Arduino will have the logic value 0 (0 Volt), the relay will be activated. It deactivates the logic signal 1 (5 volts).Just be careful in writing the sketch in this particular and everything will work. There remains the problem of the electric current voltage of 5 volts which is better not to take directly from the integrated controller on the ticket Arduino UNO R3. A special note is the yellow jumper on the right: if you take away, the relays are not activated and the LEDs light up only. It can be used to provide an 'auxiliary power supply to 5 volts dc. The sketchthat I made as an example, is not deliberately complicated: need to become familiar with the circuit. It has an initial delay of 10 seconds before turning on in sequence the various relays. This cycle is continuously repeated with activations of each relay for 1 second with a pause of 2 seconds.
Note, in Fig. 3 and Fig. 4, the controller 5 volts which feeds the module only HL-58S.
Warning: remember to connect the GND wire to form HL-58S and Arduino UNO R3, otherwise the relay does not energize. The relays are not appropriate , in my view, to switch loads to the supply voltage (for instance, with voltages above 24 volts ), so pay close attention.
For the moment everything: good job from the Blog Waiting for the bus!
Post a Comment