8 Channel Bluetooth Controller Switch//(In Hindi)//(DIY)
ฝัง
- เผยแพร่เมื่อ 16 มี.ค. 2022
- 8 Channel Bluetooth Controller Switch//(In Hindi)//(DIY)
Using Components in this video-
-8Channel relay module
-Arduino Uno
-HC-05 Bluetooth module
-Header Pins (jumper cables)
(Code)
drive.google.com/file/d/1bQ6a...
(Circuit Diagram)
drive.google.com/drive/folder...
(Apps)
play.google.com/store/apps/de...
play.google.com/store/apps/de...
(if you have any problem please comment down bello)
________________________________________________________________________________________________________________________________
So Hello Friends
Bhai ko Follow Karo
Instagram - invitescon...
Your Queries :-
#8channelmodule
#smartswitchboard
#bluetoothswitchboard
(Thanks For Watching This Video)
Vaibhav Gupta
From - Lucknow
Music I used-
1. Last_Summer_[NCS_Release]
• Video
2. JJD_Adventure_[NCS_Release]
• JJD - Adventure | Glit...
________________________________________________________________________________________________________________________________ - วิทยาศาสตร์และเทคโนโลยี
can we use esp8266 in place of arduino
Yes but, other processes or programing required to make this
@@letmindcreative Thanks
#include
SoftwareSerial BTSerial(D5, D6); // RX (HC-05 TX), TX (HC-05 RX)
const int RelayPins[] = {D0, D1, D2, D3};
int activeRelay = -1;
void setup() {
for (int i = 0; i < 4; i++) {
pinMode(relayPins[i], OUTPUT);
digitalWrite(RelayPins[i], HIGH); // Initialize Relays to OFF
}
BTSerial.begin(9600);
}
void loop() {
if (activeRelay >= 0 && activeRelay < 4) {
digitalWrite(RelayPins[activeRelay], HIGH);
activeRelay = -1; // Reset activeRelay
}
if (BTSerial.available()) {
char command = BTSerial.read();
int newRelay = -1; // Initialize to an invalid Relay
switch (command) {
case '1':
newRelay = 0; // Relay 1
break;
case '2':
newRelay = 1; // Relay 2
break;
case '3':
newRelay = 2; // Relay 3
break;
case '4':
newRelay = 3; // Relay 4
break;
default:
// Invalid command
break;
}
// Check if a valid Relay command was received
if (newRelay >= 0 && newRelay < 4) {
// Turn off the currently active Relay (if any)
if (activeRelay >= 0 && activeRelay < 4) {
digitalWrite(RelayPins[activeRelay], HIGH);
}
// Turn on the new Relay
digitalWrite(RelayPins[newRelay], LOW);
activeRelay = newRelay; // Update activeRelay
}
}\
}
}
//@@letmindcreative
Youcan increase the number of relays by changing max loop value to your desired value and adding pins to the *RelayPins[i[={}* section
mera arduino kam nahi kar raha he
How can I help you sir ??
can hc05 rxt pin connect to 5v?
No bro rx pin of hc05 is connected to tx of arduino and tx pin connect to rx of arduino and connect the hc05 to 5v which is provided in arduino board
@@letmindcreativebut the tx pin of arduino is 5v also, so directly connecting may be unsafe?
@@aiyolo2914 no bro use arduino 5v pin to provide 5v to hc05 module and connect rx to to tx and tx to rx of arduino module simple
Bhai aapka app download nahi ho raha hai kya karan hai bhai.. 🙏🏻🙏🏻🙏🏻
Kon sa aap bro
@@letmindcreative Bhai Vahi jo discription me aap ka link diya hai play store se open hota hai par install nahi hota hai kya kare bhai..🙏🏻🙏🏻🙏🏻