How to connect the 2 relay module to bolt


#1

there are 7 pins to connect “JD-VCC,VCC,GND,GND,IN,IN2,VCC”


#2

You can use other GPIOs on Bolt. For more VCCs and Grounds you can use a breadboard.


#3

I want to on the first relay sir for that if I give the IN1 to the gpio pins and the GND To gnd on the bolt is it correct sir???..


#4

That seems to be correct.
Note: Be extreamly careful with relay experiment as you are working with 240V.


#5

i got the output sir but when i am giving the “high” state to the pin bulb is going off and when i’m giving the “low” state it bulb is going on


#6

That depends on your circuit connection. Just check which pins are connected to ground and which pins to VCC. That will solve it for you. BTW do share a video of your output.

Note: you can not upload videos directly on this forum. Upload on youtube and embed the link.


#7

output


#8

Awesome work @gowthamkrishnateja


#9

I hope that was because your NO & NC was interconnected, am I rite @gowthamkrishnateja


#10

yes due to the interconnection between NO and NC this is happens.
when i’m giving the “HIGH state” it is connecting to “NO”
when i’m giving the “LOW state” it is connecting to “NC”

we can change its behavior by changing the connection on relay.


#11

@ppv in the experiment above, the module uses a simple amplifier circuit using transistor to power up the relay, but in tutorial, relay is directly connected to BOLT, is it advisable?

Is it done just for teaching only, and for long run, I think we need a amplifier, am I correct, please confirm!


#12

Yes it , advisable to drive relays with a transistor , but with the modules recommended here Recommended Relay Module For Home Automation applications using Bolt

You can safely drive these with the 40mA output current that bolt can drive through its output pins.


#13

That’s cool!!

Just gone through the post of yours.

Thanks.


#14

[UPDATE]
Hi, @mariarichy and @gowthamkrishnateja!

The relay board uses an optocoupler to isolate your embedded device from the high voltage appliances being controlled. It is ok to use the Bolt’s VCC to power the relay(JD-VCC) but it would be counter productive. Instead, you can connect a different power supply for powering up the relay. Follow this guide https://arduino-info.wikispaces.com/RelayIsolation.