I've been playing a bit with it and I'm afraid I'm using it the wrong way, or else it does not work as expected. Is this the case with my relay module? If so, why do they write in the pin before configuring it as output? Apparently, to ensure no relays turn on in startup or reset, this initialization would be required in the setup method: digitalWrite(relay_pin, 1) I've read that for similar relay modules the inputs IN1 and IN2 are active low. I guess GND and Vcc should be wired to the arduino GND and 5V pins, and IN1 and IN2 control the relays state. My third question is about the second group of pins in the right corner (GND, IN1, IN2, Vcc). How do I know if I need to provide an alternate power source? What current and voltage would be needed, and why is the Arduino not able to provide it? I guess this alternate power source would be used to switch the relays. I've read that these are for an alternative power source so that the arduino only switches the LED in the octocoupler. My second question is about the pins JD-Vcc, Vcc and GND in the left corner, of which JD-Vcc and Vcc already came jumpered. The printed symbol is not enough clear: -\ K1. My main concern is how to wire the relay inputs (Normally Open, Common and Normally Closed). I've been googling and I've found some info for (apparently) similar modules. (I've included the pictures attached as well just in case they remove the links). I've bought a 2-relay module, and as usual it came with no documentation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |