Arduino relay timer code11/28/2023 ![]() IN1: controls the first relay (it will be connected to an Arduino digital pin). ![]() The connections between the relay module and the Arduino are really simple: That configuration physically isolates the relays from the Arduino with the module’s built-in optocoupler. Without the jumper cap, you need to provide an independent power source to power up the relay’s electromagnet through the JD-VCC pin. ![]() That means the relay electromagnet is directly powered from the Arduino’s power pin, so the relay module and the Arduino circuits are not physically isolated from each other (this is the configuration we’ll use). With the jumper cap on, the VCC and JD-VCC pins are connected. The jumper cap allows you to choose whether the circuit is physically connected to the Arduino circuit or not, and you can choose to have it on or not. Note: notice that the module has a jumper cap connecting the VCC and JD-VCC pins the one shown here is blue, but yours may be a different color. The JD-VCC pin powers the electromagnet of the relay. The second set of pins consists of GND, VCC, and JD-VCC pins. The set at the right consists of VCC and GND to power up the module, and input 1 ( IN1) and input 2 ( IN2) to control the bottom and top relays, respectively. The low-voltage side has a set of four pins and a set of three pins. If you just want to light up a lamp occasionally, it is better to use a normally-open circuit configuration.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |