Click on the flag below to change the language of the text on these pages.
find-out-more



Stats Box -
eXTReMe Tracker


nfc-controlled-relay HostChoice.net
HostChoice.net: nfc-controlled-relay
Posted in: HowTo | by HostChoice.net | 2016 Nov 05
Hello all,
I am currently working on a project that uses relays, a little different than the one found in your article here.

http://waihung.net/bluetooth-controlled-relay/

I've attached a picture below of both the relay module and the bluetooth (JY-MCU HC 05). I am using the Arduino Uno as of now and the IN1 and IN2 from the relay module are in pins 6 and 7 respectfully. I modified the code that was provided in order to control 2 relays instead of one. I've attached the code also.

As of now, I can get the IN1 connected relay to turn on and off but not the 2nd relay, I am wondering what I am missing in my code that would make this work.

Additionally, I had to split the wires leading from both the relay module and the bluetooth module in order to connect both to the 5V pin on the Arduino. Is there a better way to do this? because both need a source of power.

Thanks!
Code: [Select]


We at HostChoice.net believe the internet should be fun and safe.

Thank you for choosing HostChoice.net...
code

All Rights Reserved. All Images and Programming are Copyright 2024 by HostChoice.net. Site Map