SlideShare una empresa de Scribd logo
1 de 12
Descargar para leer sin conexión
4 Channel Relay Board -Bluetooth
www.researchdesignlab.com Page 1
4 CHANNEL RELAY
BOARD-
BLUETOOTH
4 Channel Relay Board -Bluetooth
www.researchdesignlab.com Page 2
Table of Contents
OVERVIEW..................................................................................................................................................... 3
FEATURES.................................................................................................................................................. 3
APPLICATION DIAGRAM............................................................................................................................ 4
Bluetooth Module HC 05 .............................................................................................................................. 5
SPECIFICATION.......................................................................................................................................... 5
APPLICATION............................................................................................................................................. 5
CIRCUIT DIAGRAM ........................................................................................................................................ 6
EXPERIMENTAL SETUP .................................................................................................................................. 7
RELAY SHIELD ARDUINO CODE ................................................................................................................. 8
4-RELAY SWITCH BOARD ANDROID APPLICATION..................................................................................11
RELATED PRODUCTS ................................................................................................................................... 12
4 Channel Relay Board -Bluetooth
www.researchdesignlab.com Page 3
OVERVIEW
Bluetooth technology is a short distance communication technology used by almost all phones
including smart phones and all laptops. This technology find very wide uses including that of Home &
Industrial automation.
The Relay shield is capable of controlling 4 relays. The max switching power could be
12A/250VAC or 15A/24VDC. It could be directly controlled by Arduino through digital IOs.
FEATURES
• 4-channel Relay.
• With Bluetooth wireless interface.
• Arduino compatible.
• 4 SPDT Relay channels (10A 277VAC,10A
120VAC, 5A 250VAC).
• Power supply:5VDC 1AMP
• Current consumption: 400 mA.
• LED indication for relay & power supply.
• Design based on highly proven IC ULN2803
as driver.
• High quality PCB FR4 Grade with FPT
Certified.
4 Channel Relay Board -Bluetooth
www.researchdesignlab.com Page 4
APPLICATION DIAGRAM
front view
4 Channel Relay Board -Bluetooth
www.researchdesignlab.com Page 5
back view
Bluetooth Module HC 05
Serial port Bluetooth, Drop-in replacement for wired serial connections, transparent usage. You can use
it simply for a serial port replacement to establish connection between MCU and GPS, PC to your
embedded project and etc.
SPECIFICATION
• Bluetooth protocol: Bluetooth Specification v2.0+EDR
• Frequency: 2.4GHz ISM band
• Modulation: GFSK(Gaussian Frequency Shift Keying)
• Emission power: =4dBm, Class 2
• Sensitivity: =-84dBm at 0.1% BER
• Speed: Asynchronous: 2.1Mbps(Max) / 160 kbps, Synchronous: 1Mbps/1Mbps
• Security: Authentication and encryption
• Profiles: Bluetooth serial port
• Power supply: +3.3VDC 50mA
• Working temperature: -20 ~ +75 Centigrade
• Dimension: 26.9mm x 13mm x 2.2 mm
APPLICATION
• Computer and peripheral devices
• GPS receiver
• Industrial control
4 Channel Relay Board -Bluetooth
www.researchdesignlab.com Page 6
• MCU projects
CIRCUIT DIAGRAM
4 Channel Relay Board -Bluetooth
www.researchdesignlab.com Page 7
EXPERIMENTAL SETUP
Note: remove USB after uploading the code, DC 12V 1A must be plugged in.
4 Channel Relay Board -Bluetooth
www.researchdesignlab.com Page 8
RELAY SHIELD ARDUINO CODE
/*
Software serial multiple serial test
Receives from the hardware serial, sends to software serial.
Receives from software serial, sends to hardware serial.
The circuit:
* RX is digital pin 10 (connect to TX of other device)
* TX is digital pin 11 (connect to RX of other device)
Note:
Not all pins on the Mega and Mega 2560 support change interrupts,
so only the following can be used for RX:
10, 11, 12, 13, 50, 51, 52, 53, 62, 63, 64, 65, 66, 67, 68, 69
Not all pins on the Leonardo support change interrupts,
so only the following can be used for RX:
8, 9, 10, 11, 14 (MISO), 15 (SCK), 16 (MOSI).
Software serial multple serial test
Receives from the hardware serial, sends to software serial.
Receives from software serial, sends to hardware serial.
The circuit:
* RX is digital pin 2 (connect to TX of other device)
* TX is digital pin 3 (connect to RX of other device)
SENDING DATA FORMAT
1N TO ON RELAY1
1F TO OFF RELAY1
2N TO ON RELAY2
2F TO OFF RELAY2
3N TO ON RELAY3
3F TO OFF RELAY3
4N TO ON RELAY4
4F TO OFF RELAY4
This example code is in the public domain.
*/
4 Channel Relay Board -Bluetooth
www.researchdesignlab.com Page 9
#include <SoftwareSerial.h>
SoftwareSerial mySerial(2, 3); // RX, TX
int rec;
void setup()
{
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
mySerial.begin(9600);
}
void loop() // run over and over
{
while(!mySerial.available());
rec=mySerial.read();
if(rec=='1')
{
while(!mySerial.available());
rec=mySerial.read();
if(rec=='N')
digitalWrite(4, HIGH);
else if(rec=='F')
digitalWrite(4, LOW);
}
else if(rec=='2')
{
while(!mySerial.available());
rec=mySerial.read();
if(rec=='N')
digitalWrite(5, HIGH);
else if(rec=='F')
digitalWrite(5, LOW);
}
else if(rec=='3')
{
while(!mySerial.available());
rec=mySerial.read();
if(rec=='N')
digitalWrite(6, HIGH);
4 Channel Relay Board -Bluetooth
www.researchdesignlab.com Page 10
else if(rec=='F')
digitalWrite(6, LOW);
}
else if(rec=='4')
{
while(!mySerial.available());
rec=mySerial.read();
if(rec=='N')
digitalWrite(7, HIGH);
else if(rec=='F')
digitalWrite(7, LOW);
}
}
4 Channel Relay Board -Bluetooth
www.researchdesignlab.com Page 11
4-RELAY SWITCH BOARD ANDROID APPLICATION
4 Channel Relay Board -Bluetooth
www.researchdesignlab.com Page 12
SOFTWARE DOWNLOAD LINK
https://drive.google.com/folderview?id=0BzrGD4zr88GnSkt5aUJMZ3Y0dnM&usp=sharing#
RELATED PRODUCTS
RDL UNO ATMEGA- 328 12V-2A DC ADAPTER
DEVELOPMENT BOARD
FT232 BREAKOUT BOARD Bluetooth Module HC 05

Más contenido relacionado

La actualidad más candente

Building a Converged Infrastructure based on FCoE, Dell Blades and Force10 sw...
Building a Converged Infrastructure based on FCoE, Dell Blades and Force10 sw...Building a Converged Infrastructure based on FCoE, Dell Blades and Force10 sw...
Building a Converged Infrastructure based on FCoE, Dell Blades and Force10 sw...
juet-y
 

La actualidad más candente (16)

What is huawei quidway s5300 gigabit switches
What is huawei quidway s5300 gigabit switchesWhat is huawei quidway s5300 gigabit switches
What is huawei quidway s5300 gigabit switches
 
OSPF 2
OSPF 2OSPF 2
OSPF 2
 
Building a Converged Infrastructure based on FCoE, Dell Blades and Force10 sw...
Building a Converged Infrastructure based on FCoE, Dell Blades and Force10 sw...Building a Converged Infrastructure based on FCoE, Dell Blades and Force10 sw...
Building a Converged Infrastructure based on FCoE, Dell Blades and Force10 sw...
 
Day 5.3 routercomponents
Day 5.3 routercomponentsDay 5.3 routercomponents
Day 5.3 routercomponents
 
Socionext ARMv8 server SoC chipset demo
Socionext ARMv8 server SoC chipset demoSocionext ARMv8 server SoC chipset demo
Socionext ARMv8 server SoC chipset demo
 
HPE ProLiant DL360 Gen9 Server Data Sheet
HPE ProLiant DL360 Gen9 Server Data SheetHPE ProLiant DL360 Gen9 Server Data Sheet
HPE ProLiant DL360 Gen9 Server Data Sheet
 
Rack
RackRack
Rack
 
Microcontroller part 1
Microcontroller part 1Microcontroller part 1
Microcontroller part 1
 
4.1.2.9 packet tracer documenting the network instructions
4.1.2.9 packet tracer   documenting the network instructions4.1.2.9 packet tracer   documenting the network instructions
4.1.2.9 packet tracer documenting the network instructions
 
Microcontroller part 9_v1
Microcontroller part 9_v1Microcontroller part 9_v1
Microcontroller part 9_v1
 
HPE ProLiant DL380 Gen9 Server Data Sheet
HPE ProLiant DL380 Gen9 Server Data SheetHPE ProLiant DL380 Gen9 Server Data Sheet
HPE ProLiant DL380 Gen9 Server Data Sheet
 
OSPF 3
OSPF 3OSPF 3
OSPF 3
 
Linux networking
Linux networkingLinux networking
Linux networking
 
CCNA part 4 routers
CCNA part 4 routersCCNA part 4 routers
CCNA part 4 routers
 
SPI Interface
SPI InterfaceSPI Interface
SPI Interface
 
Huawei s5700-28-p-pwr-li-ac datasheet
Huawei s5700-28-p-pwr-li-ac datasheetHuawei s5700-28-p-pwr-li-ac datasheet
Huawei s5700-28-p-pwr-li-ac datasheet
 

Similar a 4 Channel Relay Board 5V-Bluetooth Compatible for Arduino

CodeWarrior, Linux; OrCad and Hyperlynx; QMS Tools
CodeWarrior, Linux; OrCad and Hyperlynx; QMS ToolsCodeWarrior, Linux; OrCad and Hyperlynx; QMS Tools
CodeWarrior, Linux; OrCad and Hyperlynx; QMS Tools
djerrybellott
 
Sphericall BranchHub Data Sheet
Sphericall BranchHub Data SheetSphericall BranchHub Data Sheet
Sphericall BranchHub Data Sheet
Alok Vasudeva
 
데이타로직 Datalogic DS6300 1D 산업용 고정식 바코드스캐너 레이저스캐너 매뉴얼
데이타로직 Datalogic DS6300 1D 산업용 고정식 바코드스캐너 레이저스캐너 매뉴얼데이타로직 Datalogic DS6300 1D 산업용 고정식 바코드스캐너 레이저스캐너 매뉴얼
데이타로직 Datalogic DS6300 1D 산업용 고정식 바코드스캐너 레이저스캐너 매뉴얼
HION IT
 
Microprocesador ESP32 manual de uso y programacion
Microprocesador ESP32 manual de uso y programacionMicroprocesador ESP32 manual de uso y programacion
Microprocesador ESP32 manual de uso y programacion
ArturoYanezSG
 
Wireless Catalog - Inter. Clouds 2016
Wireless Catalog - Inter. Clouds 2016Wireless Catalog - Inter. Clouds 2016
Wireless Catalog - Inter. Clouds 2016
Sharon Cheung
 
허니웰스캐너 Honeywell MS3580 QuantumT 1D 무지향성 고정식바코드스캐너 고정식스캐너온카운터 매뉴얼
허니웰스캐너 Honeywell MS3580 QuantumT 1D 무지향성 고정식바코드스캐너 고정식스캐너온카운터 매뉴얼허니웰스캐너 Honeywell MS3580 QuantumT 1D 무지향성 고정식바코드스캐너 고정식스캐너온카운터 매뉴얼
허니웰스캐너 Honeywell MS3580 QuantumT 1D 무지향성 고정식바코드스캐너 고정식스캐너온카운터 매뉴얼
HION IT
 

Similar a 4 Channel Relay Board 5V-Bluetooth Compatible for Arduino (20)

CodeWarrior, Linux; OrCad and Hyperlynx; QMS Tools
CodeWarrior, Linux; OrCad and Hyperlynx; QMS ToolsCodeWarrior, Linux; OrCad and Hyperlynx; QMS Tools
CodeWarrior, Linux; OrCad and Hyperlynx; QMS Tools
 
Sphericall BranchHub Data Sheet
Sphericall BranchHub Data SheetSphericall BranchHub Data Sheet
Sphericall BranchHub Data Sheet
 
Esp32 datasheet
Esp32 datasheetEsp32 datasheet
Esp32 datasheet
 
데이타로직 Datalogic DS6300 1D 산업용 고정식 바코드스캐너 레이저스캐너 매뉴얼
데이타로직 Datalogic DS6300 1D 산업용 고정식 바코드스캐너 레이저스캐너 매뉴얼데이타로직 Datalogic DS6300 1D 산업용 고정식 바코드스캐너 레이저스캐너 매뉴얼
데이타로직 Datalogic DS6300 1D 산업용 고정식 바코드스캐너 레이저스캐너 매뉴얼
 
Microprocesador ESP32 manual de uso y programacion
Microprocesador ESP32 manual de uso y programacionMicroprocesador ESP32 manual de uso y programacion
Microprocesador ESP32 manual de uso y programacion
 
esp32_datasheet_en.pdf
esp32_datasheet_en.pdfesp32_datasheet_en.pdf
esp32_datasheet_en.pdf
 
MC13202.pdf
MC13202.pdfMC13202.pdf
MC13202.pdf
 
Wireless Catalog - Inter. Clouds 2016
Wireless Catalog - Inter. Clouds 2016Wireless Catalog - Inter. Clouds 2016
Wireless Catalog - Inter. Clouds 2016
 
Sphericall Voice Internetworking Multiplexer (VIM)
Sphericall Voice Internetworking Multiplexer (VIM)Sphericall Voice Internetworking Multiplexer (VIM)
Sphericall Voice Internetworking Multiplexer (VIM)
 
Cisco router 1941 series datasheet
Cisco router 1941 series datasheetCisco router 1941 series datasheet
Cisco router 1941 series datasheet
 
BRKRST-3068 Troubleshooting Catalyst 2K and 3K.pdf
BRKRST-3068  Troubleshooting Catalyst 2K and 3K.pdfBRKRST-3068  Troubleshooting Catalyst 2K and 3K.pdf
BRKRST-3068 Troubleshooting Catalyst 2K and 3K.pdf
 
Aruba 2920 Switch Series Data Sheet
Aruba 2920 Switch Series Data SheetAruba 2920 Switch Series Data Sheet
Aruba 2920 Switch Series Data Sheet
 
American Fibertek RT-946C-SL Data Sheet
American Fibertek RT-946C-SL Data SheetAmerican Fibertek RT-946C-SL Data Sheet
American Fibertek RT-946C-SL Data Sheet
 
American Fibertek RT-946C Data Sheet
American Fibertek RT-946C Data SheetAmerican Fibertek RT-946C Data Sheet
American Fibertek RT-946C Data Sheet
 
Serial 8 Channel AC 230V SSR and Dimmer Bluetooth Interface
Serial 8 Channel AC 230V SSR and Dimmer  Bluetooth InterfaceSerial 8 Channel AC 230V SSR and Dimmer  Bluetooth Interface
Serial 8 Channel AC 230V SSR and Dimmer Bluetooth Interface
 
Specification skt cna ssx2-rc 20160821
Specification skt cna ssx2-rc 20160821Specification skt cna ssx2-rc 20160821
Specification skt cna ssx2-rc 20160821
 
Webinar: BlueNRG-LP - Bluetooth 5.2 de longo alcance para aplicações industriais
Webinar: BlueNRG-LP - Bluetooth 5.2 de longo alcance para aplicações industriaisWebinar: BlueNRG-LP - Bluetooth 5.2 de longo alcance para aplicações industriais
Webinar: BlueNRG-LP - Bluetooth 5.2 de longo alcance para aplicações industriais
 
Aruba 207 Series Access Point Data Sheet
Aruba 207 Series Access Point Data SheetAruba 207 Series Access Point Data Sheet
Aruba 207 Series Access Point Data Sheet
 
허니웰스캐너 Honeywell MS3580 QuantumT 1D 무지향성 고정식바코드스캐너 고정식스캐너온카운터 매뉴얼
허니웰스캐너 Honeywell MS3580 QuantumT 1D 무지향성 고정식바코드스캐너 고정식스캐너온카운터 매뉴얼허니웰스캐너 Honeywell MS3580 QuantumT 1D 무지향성 고정식바코드스캐너 고정식스캐너온카운터 매뉴얼
허니웰스캐너 Honeywell MS3580 QuantumT 1D 무지향성 고정식바코드스캐너 고정식스캐너온카운터 매뉴얼
 
Msp430
Msp430Msp430
Msp430
 

Más de Raghav Shetty

Más de Raghav Shetty (20)

Xbee X-CTU Software
Xbee X-CTU SoftwareXbee X-CTU Software
Xbee X-CTU Software
 
Digitla Vibration Sensor
Digitla Vibration SensorDigitla Vibration Sensor
Digitla Vibration Sensor
 
Thermal Printer
Thermal PrinterThermal Printer
Thermal Printer
 
Digital Soil Moisture Sensor
Digital Soil Moisture SensorDigital Soil Moisture Sensor
Digital Soil Moisture Sensor
 
Micro SD Memory Card Interface for 5V MCU
Micro SD Memory Card Interface for 5V MCUMicro SD Memory Card Interface for 5V MCU
Micro SD Memory Card Interface for 5V MCU
 
Micro SD Memory Card Interface for 3.3V MCU
Micro SD Memory Card Interface for 3.3V MCUMicro SD Memory Card Interface for 3.3V MCU
Micro SD Memory Card Interface for 3.3V MCU
 
Regulated Power Supply
Regulated Power Supply Regulated Power Supply
Regulated Power Supply
 
PIC Project Board
PIC Project BoardPIC Project Board
PIC Project Board
 
8 Channel Bi Directional Logic Level Converter
8 Channel Bi Directional Logic Level Converter8 Channel Bi Directional Logic Level Converter
8 Channel Bi Directional Logic Level Converter
 
LCD Keypad Shield
LCD Keypad ShieldLCD Keypad Shield
LCD Keypad Shield
 
L298 Motor Driver
L298 Motor DriverL298 Motor Driver
L298 Motor Driver
 
Joystick Shield
Joystick ShieldJoystick Shield
Joystick Shield
 
Force Sensor
Force SensorForce Sensor
Force Sensor
 
Plastic REED Float Switch
Plastic REED Float SwitchPlastic REED Float Switch
Plastic REED Float Switch
 
Flex Sensor
Flex SensorFlex Sensor
Flex Sensor
 
Serial EEPROM
Serial EEPROMSerial EEPROM
Serial EEPROM
 
DTMF Decoder Shield for Arduino
DTMF Decoder Shield for ArduinoDTMF Decoder Shield for Arduino
DTMF Decoder Shield for Arduino
 
Digital Dimmer Module
Digital Dimmer ModuleDigital Dimmer Module
Digital Dimmer Module
 
Bluetooth Module HC-06
Bluetooth Module HC-06Bluetooth Module HC-06
Bluetooth Module HC-06
 
Barometric Digital pressure Sensor BMP085
Barometric Digital pressure Sensor BMP085Barometric Digital pressure Sensor BMP085
Barometric Digital pressure Sensor BMP085
 

Último

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Último (20)

TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 

4 Channel Relay Board 5V-Bluetooth Compatible for Arduino

  • 1. 4 Channel Relay Board -Bluetooth www.researchdesignlab.com Page 1 4 CHANNEL RELAY BOARD- BLUETOOTH
  • 2. 4 Channel Relay Board -Bluetooth www.researchdesignlab.com Page 2 Table of Contents OVERVIEW..................................................................................................................................................... 3 FEATURES.................................................................................................................................................. 3 APPLICATION DIAGRAM............................................................................................................................ 4 Bluetooth Module HC 05 .............................................................................................................................. 5 SPECIFICATION.......................................................................................................................................... 5 APPLICATION............................................................................................................................................. 5 CIRCUIT DIAGRAM ........................................................................................................................................ 6 EXPERIMENTAL SETUP .................................................................................................................................. 7 RELAY SHIELD ARDUINO CODE ................................................................................................................. 8 4-RELAY SWITCH BOARD ANDROID APPLICATION..................................................................................11 RELATED PRODUCTS ................................................................................................................................... 12
  • 3. 4 Channel Relay Board -Bluetooth www.researchdesignlab.com Page 3 OVERVIEW Bluetooth technology is a short distance communication technology used by almost all phones including smart phones and all laptops. This technology find very wide uses including that of Home & Industrial automation. The Relay shield is capable of controlling 4 relays. The max switching power could be 12A/250VAC or 15A/24VDC. It could be directly controlled by Arduino through digital IOs. FEATURES • 4-channel Relay. • With Bluetooth wireless interface. • Arduino compatible. • 4 SPDT Relay channels (10A 277VAC,10A 120VAC, 5A 250VAC). • Power supply:5VDC 1AMP • Current consumption: 400 mA. • LED indication for relay & power supply. • Design based on highly proven IC ULN2803 as driver. • High quality PCB FR4 Grade with FPT Certified.
  • 4. 4 Channel Relay Board -Bluetooth www.researchdesignlab.com Page 4 APPLICATION DIAGRAM front view
  • 5. 4 Channel Relay Board -Bluetooth www.researchdesignlab.com Page 5 back view Bluetooth Module HC 05 Serial port Bluetooth, Drop-in replacement for wired serial connections, transparent usage. You can use it simply for a serial port replacement to establish connection between MCU and GPS, PC to your embedded project and etc. SPECIFICATION • Bluetooth protocol: Bluetooth Specification v2.0+EDR • Frequency: 2.4GHz ISM band • Modulation: GFSK(Gaussian Frequency Shift Keying) • Emission power: =4dBm, Class 2 • Sensitivity: =-84dBm at 0.1% BER • Speed: Asynchronous: 2.1Mbps(Max) / 160 kbps, Synchronous: 1Mbps/1Mbps • Security: Authentication and encryption • Profiles: Bluetooth serial port • Power supply: +3.3VDC 50mA • Working temperature: -20 ~ +75 Centigrade • Dimension: 26.9mm x 13mm x 2.2 mm APPLICATION • Computer and peripheral devices • GPS receiver • Industrial control
  • 6. 4 Channel Relay Board -Bluetooth www.researchdesignlab.com Page 6 • MCU projects CIRCUIT DIAGRAM
  • 7. 4 Channel Relay Board -Bluetooth www.researchdesignlab.com Page 7 EXPERIMENTAL SETUP Note: remove USB after uploading the code, DC 12V 1A must be plugged in.
  • 8. 4 Channel Relay Board -Bluetooth www.researchdesignlab.com Page 8 RELAY SHIELD ARDUINO CODE /* Software serial multiple serial test Receives from the hardware serial, sends to software serial. Receives from software serial, sends to hardware serial. The circuit: * RX is digital pin 10 (connect to TX of other device) * TX is digital pin 11 (connect to RX of other device) Note: Not all pins on the Mega and Mega 2560 support change interrupts, so only the following can be used for RX: 10, 11, 12, 13, 50, 51, 52, 53, 62, 63, 64, 65, 66, 67, 68, 69 Not all pins on the Leonardo support change interrupts, so only the following can be used for RX: 8, 9, 10, 11, 14 (MISO), 15 (SCK), 16 (MOSI). Software serial multple serial test Receives from the hardware serial, sends to software serial. Receives from software serial, sends to hardware serial. The circuit: * RX is digital pin 2 (connect to TX of other device) * TX is digital pin 3 (connect to RX of other device) SENDING DATA FORMAT 1N TO ON RELAY1 1F TO OFF RELAY1 2N TO ON RELAY2 2F TO OFF RELAY2 3N TO ON RELAY3 3F TO OFF RELAY3 4N TO ON RELAY4 4F TO OFF RELAY4 This example code is in the public domain. */
  • 9. 4 Channel Relay Board -Bluetooth www.researchdesignlab.com Page 9 #include <SoftwareSerial.h> SoftwareSerial mySerial(2, 3); // RX, TX int rec; void setup() { pinMode(4, OUTPUT); pinMode(5, OUTPUT); pinMode(6, OUTPUT); pinMode(7, OUTPUT); mySerial.begin(9600); } void loop() // run over and over { while(!mySerial.available()); rec=mySerial.read(); if(rec=='1') { while(!mySerial.available()); rec=mySerial.read(); if(rec=='N') digitalWrite(4, HIGH); else if(rec=='F') digitalWrite(4, LOW); } else if(rec=='2') { while(!mySerial.available()); rec=mySerial.read(); if(rec=='N') digitalWrite(5, HIGH); else if(rec=='F') digitalWrite(5, LOW); } else if(rec=='3') { while(!mySerial.available()); rec=mySerial.read(); if(rec=='N') digitalWrite(6, HIGH);
  • 10. 4 Channel Relay Board -Bluetooth www.researchdesignlab.com Page 10 else if(rec=='F') digitalWrite(6, LOW); } else if(rec=='4') { while(!mySerial.available()); rec=mySerial.read(); if(rec=='N') digitalWrite(7, HIGH); else if(rec=='F') digitalWrite(7, LOW); } }
  • 11. 4 Channel Relay Board -Bluetooth www.researchdesignlab.com Page 11 4-RELAY SWITCH BOARD ANDROID APPLICATION
  • 12. 4 Channel Relay Board -Bluetooth www.researchdesignlab.com Page 12 SOFTWARE DOWNLOAD LINK https://drive.google.com/folderview?id=0BzrGD4zr88GnSkt5aUJMZ3Y0dnM&usp=sharing# RELATED PRODUCTS RDL UNO ATMEGA- 328 12V-2A DC ADAPTER DEVELOPMENT BOARD FT232 BREAKOUT BOARD Bluetooth Module HC 05