SlideShare una empresa de Scribd logo
1 de 12
INTERFACING TWO ARDUINO
BOARDS USING RN-42
BLUETOOTH

Presented By:
Sumit chakraborty
Basic Command Sets
STEP- 1:
Cont..
STEP- 2: Connect Your device With bluetooth and pc.
STEP -3 : Change to command mode($$$)
STEP -4: Press D to see your Bluetooth configuration.
Cont..
Some Basic Modes Of Operation
1. Slave Mode(SM,0) – This is default mode.
2. Master Mode(SM,1) – This mode is useful when
the device wants to initiate connection
Command Mode VS Data Mode
Upon power up the device will be in data mode. To
enter command mode, send the characters “$$$”
through the serial port or from the remote
Bluetooth connection.
To exit command mode, send “---<cr>”
HOW TO CHANGE THE Baudrate
Default Baudrate is 115200
To change to 9600 – SU,96

Range of Baudrate the module supports:
{1200, 2400, 4800, 9600, 19.2, 28.8, 38.4,
57.6, 115K, 230K, 460K,
921K },
Program of Master Bluetooth
module
//Master
// Before going forward first Download TextFinder.h
#include <TextFinder.h>
String Remote ="00066649533C"; // Address of slave device
void setup()
{
Serial.begin(9600);
//baudrate
Serial.print("$$$");
// command mode
delay(100);
Serial.println("c,"+ Remote +"r");
// connect to the device
delay(100);
Serial.println("SM,1");
// master
delay(100);
Serial.println("---,"+ Remote +"r");
// exit from command mode and enter data mode
delay(100);

}
Cont..
void loop()
{
Serial.println("L"); // Send ‘L’ in data mode
delay(100);
Serial.println("H"); // Send ‘H’ in data mode
delay(100);
}
Program for Slave Blutooth module
//Slave
#include <TextFinder.h>
String Remote ="0006664953B0"; // Address of master bluetooth
void setup()
{
Serial.begin(9600);
// baudrate
Serial.print("$$$");
// command mode
delay(100);
Serial.println("c,"+ Remote +"r");
// connecting to the slave
delay(100);
Serial.println("SM,0");
// slave mode
delay(100);
Serial.println("---,"+ Remote +"r");
// exit from command mode
delay(100);

}
Cont..
void loop()
{

if(Serial.available() > 0) // Check if data is available
{
char ch = Serial.read(); // read the incoming data
if(ch == 'L')
{
digitalWrite(13,HIGH);
delay(100);
}
else if(ch == 'H')
{
digitalWrite(13,LOW);
delay(100);
}
}
}
Interfacing two arduino boards using rn 42 bluetooth

Más contenido relacionado

La actualidad más candente

Gen ant bil.
Gen ant bil.Gen ant bil.
Gen ant bil.ytaskiran
 
K32. age and sex considerations in exercise
K32. age and sex considerations in exerciseK32. age and sex considerations in exercise
K32. age and sex considerations in exerciseDaniel Rajkumar
 
Carbohydrate and fat utilization during exercise 24 july 16
Carbohydrate and fat utilization during exercise 24 july 16Carbohydrate and fat utilization during exercise 24 july 16
Carbohydrate and fat utilization during exercise 24 july 16Usman Khan
 
Physiological adaptations to strength training visual bee - visualbee
Physiological adaptations to strength training   visual bee - visualbeePhysiological adaptations to strength training   visual bee - visualbee
Physiological adaptations to strength training visual bee - visualbeeWilliam Wayland
 
Basic concepts of Manual Muscle Testing (MMT)
Basic concepts of Manual Muscle Testing (MMT)Basic concepts of Manual Muscle Testing (MMT)
Basic concepts of Manual Muscle Testing (MMT)JebarajFletcher
 
Physiological effect of resistance exercise
Physiological effect of resistance exercisePhysiological effect of resistance exercise
Physiological effect of resistance exerciseRekha Marbate
 
DETRAINING IN RELATION TO SKELETAL MUSCLE
DETRAINING IN RELATION TO SKELETAL MUSCLE DETRAINING IN RELATION TO SKELETAL MUSCLE
DETRAINING IN RELATION TO SKELETAL MUSCLE Dzevad Saric
 
Energy Systems During Exercise
Energy Systems During ExerciseEnergy Systems During Exercise
Energy Systems During ExerciseSprint College
 
Forward head posture
Forward head postureForward head posture
Forward head postureHari Subedi
 
Delayed onset muscle soreness: Relief by topical natural phytochemicals
Delayed onset muscle soreness: Relief by topical natural phytochemicalsDelayed onset muscle soreness: Relief by topical natural phytochemicals
Delayed onset muscle soreness: Relief by topical natural phytochemicalsKevin KF Ng
 
Hip exercise
Hip exerciseHip exercise
Hip exerciseMinalFiza
 
Bioenergetics of Exercise
Bioenergetics of ExerciseBioenergetics of Exercise
Bioenergetics of ExerciseMatt Sanders
 
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISENDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISEwajihahwafa
 
Female Athlete Triad
Female Athlete TriadFemale Athlete Triad
Female Athlete Triadsammie1091
 

La actualidad más candente (20)

Gen ant bil.
Gen ant bil.Gen ant bil.
Gen ant bil.
 
Nutrition and performance
Nutrition and performanceNutrition and performance
Nutrition and performance
 
K32. age and sex considerations in exercise
K32. age and sex considerations in exerciseK32. age and sex considerations in exercise
K32. age and sex considerations in exercise
 
Carbohydrate and fat utilization during exercise 24 july 16
Carbohydrate and fat utilization during exercise 24 july 16Carbohydrate and fat utilization during exercise 24 july 16
Carbohydrate and fat utilization during exercise 24 july 16
 
Exercise in cold
Exercise in coldExercise in cold
Exercise in cold
 
Physiological adaptations to strength training visual bee - visualbee
Physiological adaptations to strength training   visual bee - visualbeePhysiological adaptations to strength training   visual bee - visualbee
Physiological adaptations to strength training visual bee - visualbee
 
Basic concepts of Manual Muscle Testing (MMT)
Basic concepts of Manual Muscle Testing (MMT)Basic concepts of Manual Muscle Testing (MMT)
Basic concepts of Manual Muscle Testing (MMT)
 
Carbohydrate for exercise
Carbohydrate for exercise Carbohydrate for exercise
Carbohydrate for exercise
 
Exercise in heat
Exercise in heatExercise in heat
Exercise in heat
 
Physiological effect of resistance exercise
Physiological effect of resistance exercisePhysiological effect of resistance exercise
Physiological effect of resistance exercise
 
DETRAINING IN RELATION TO SKELETAL MUSCLE
DETRAINING IN RELATION TO SKELETAL MUSCLE DETRAINING IN RELATION TO SKELETAL MUSCLE
DETRAINING IN RELATION TO SKELETAL MUSCLE
 
Systemic adaptations to training
Systemic adaptations to trainingSystemic adaptations to training
Systemic adaptations to training
 
Energy Systems During Exercise
Energy Systems During ExerciseEnergy Systems During Exercise
Energy Systems During Exercise
 
Forward head posture
Forward head postureForward head posture
Forward head posture
 
Delayed onset muscle soreness: Relief by topical natural phytochemicals
Delayed onset muscle soreness: Relief by topical natural phytochemicalsDelayed onset muscle soreness: Relief by topical natural phytochemicals
Delayed onset muscle soreness: Relief by topical natural phytochemicals
 
Hip exercise
Hip exerciseHip exercise
Hip exercise
 
Bioenergetics of Exercise
Bioenergetics of ExerciseBioenergetics of Exercise
Bioenergetics of Exercise
 
exercise in cold
exercise in coldexercise in cold
exercise in cold
 
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISENDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
 
Female Athlete Triad
Female Athlete TriadFemale Athlete Triad
Female Athlete Triad
 

Destacado

7ª Pesquisa Eleitoral Registrada / 2014
7ª Pesquisa Eleitoral Registrada / 20147ª Pesquisa Eleitoral Registrada / 2014
7ª Pesquisa Eleitoral Registrada / 2014Durango Duarte
 
Smart home management system based on BLE
Smart home management system based on BLESmart home management system based on BLE
Smart home management system based on BLEsanamsupraja12
 
IoT-Stockholm-Intro_to_BLE
IoT-Stockholm-Intro_to_BLEIoT-Stockholm-Intro_to_BLE
IoT-Stockholm-Intro_to_BLEShahzada Hatim
 
Bluetooth low energy
Bluetooth low energyBluetooth low energy
Bluetooth low energySaptadeep Pal
 
Bluetooth, RFID and WiMAX Technologies
Bluetooth, RFID and WiMAX TechnologiesBluetooth, RFID and WiMAX Technologies
Bluetooth, RFID and WiMAX TechnologiesMukesh Chinta
 
Wireless tv audio transmitter
Wireless tv audio transmitterWireless tv audio transmitter
Wireless tv audio transmitterVikram Shankar
 
Bluetooth low energy(ble) wireless technology
Bluetooth low energy(ble) wireless technologyBluetooth low energy(ble) wireless technology
Bluetooth low energy(ble) wireless technologyLin Steven
 
Bluetooth Low Energy - A Case Study
Bluetooth Low Energy - A Case StudyBluetooth Low Energy - A Case Study
Bluetooth Low Energy - A Case StudyFReeze FRancis
 
5G Cloud RAN & IoT Architecture
5G Cloud RAN & IoT Architecture5G Cloud RAN & IoT Architecture
5G Cloud RAN & IoT ArchitectureSathiya keerthi
 
An Introduction to BLUETOOTH TECHNOLOGY
An Introduction to BLUETOOTH TECHNOLOGYAn Introduction to BLUETOOTH TECHNOLOGY
An Introduction to BLUETOOTH TECHNOLOGYVikas Jagtap
 
A Reference Architecture for IoT
A Reference Architecture for IoT A Reference Architecture for IoT
A Reference Architecture for IoT WSO2
 
Library management system
Library management systemLibrary management system
Library management systemRaaghav Bhatia
 
Bluetooth Presentation
Bluetooth PresentationBluetooth Presentation
Bluetooth Presentationguest664c3f
 
Bluetooth technology presentation
Bluetooth technology presentationBluetooth technology presentation
Bluetooth technology presentationKrishna Kumari
 

Destacado (16)

7ª Pesquisa Eleitoral Registrada / 2014
7ª Pesquisa Eleitoral Registrada / 20147ª Pesquisa Eleitoral Registrada / 2014
7ª Pesquisa Eleitoral Registrada / 2014
 
Bluetooth Technology
Bluetooth TechnologyBluetooth Technology
Bluetooth Technology
 
Smart home management system based on BLE
Smart home management system based on BLESmart home management system based on BLE
Smart home management system based on BLE
 
IoT-Stockholm-Intro_to_BLE
IoT-Stockholm-Intro_to_BLEIoT-Stockholm-Intro_to_BLE
IoT-Stockholm-Intro_to_BLE
 
Bluetooth low energy
Bluetooth low energyBluetooth low energy
Bluetooth low energy
 
Bluetooth, RFID and WiMAX Technologies
Bluetooth, RFID and WiMAX TechnologiesBluetooth, RFID and WiMAX Technologies
Bluetooth, RFID and WiMAX Technologies
 
Wireless tv audio transmitter
Wireless tv audio transmitterWireless tv audio transmitter
Wireless tv audio transmitter
 
Bluetooth low energy(ble) wireless technology
Bluetooth low energy(ble) wireless technologyBluetooth low energy(ble) wireless technology
Bluetooth low energy(ble) wireless technology
 
Bluetooth Low Energy - A Case Study
Bluetooth Low Energy - A Case StudyBluetooth Low Energy - A Case Study
Bluetooth Low Energy - A Case Study
 
5G Cloud RAN & IoT Architecture
5G Cloud RAN & IoT Architecture5G Cloud RAN & IoT Architecture
5G Cloud RAN & IoT Architecture
 
An Introduction to BLUETOOTH TECHNOLOGY
An Introduction to BLUETOOTH TECHNOLOGYAn Introduction to BLUETOOTH TECHNOLOGY
An Introduction to BLUETOOTH TECHNOLOGY
 
A Reference Architecture for IoT
A Reference Architecture for IoT A Reference Architecture for IoT
A Reference Architecture for IoT
 
Library management system
Library management systemLibrary management system
Library management system
 
Bluetooth Presentation
Bluetooth PresentationBluetooth Presentation
Bluetooth Presentation
 
Bluetooth technology presentation
Bluetooth technology presentationBluetooth technology presentation
Bluetooth technology presentation
 
IoT architecture
IoT architectureIoT architecture
IoT architecture
 

Similar a Interfacing two arduino boards using rn 42 bluetooth

Communication &amp; switching networks lab manual
Communication &amp; switching networks lab manualCommunication &amp; switching networks lab manual
Communication &amp; switching networks lab manualMUSAAB HASAN
 
How to use mmdvm host wif main board
How to use mmdvm host wif main boardHow to use mmdvm host wif main board
How to use mmdvm host wif main boardAURELIO PY5BK
 
How to use mmdvm host - main board
How to use mmdvm host - main boardHow to use mmdvm host - main board
How to use mmdvm host - main boardAURELIO PY5BK
 
Hc 05-at command-set
Hc 05-at command-setHc 05-at command-set
Hc 05-at command-setYang Garcia
 
Android Bluetooth Introduction
Android Bluetooth IntroductionAndroid Bluetooth Introduction
Android Bluetooth IntroductionErin Yueh
 
Cataloge ge 3.control and_automation-26_vat300_e_c6-12_rev_b
Cataloge ge 3.control and_automation-26_vat300_e_c6-12_rev_bCataloge ge 3.control and_automation-26_vat300_e_c6-12_rev_b
Cataloge ge 3.control and_automation-26_vat300_e_c6-12_rev_bDien Ha The
 
Adtran 1200167L1
Adtran 1200167L1Adtran 1200167L1
Adtran 1200167L1savomir
 
Hướng dẫn cài đặt switch planet layer 3
Hướng dẫn cài đặt switch planet layer 3Hướng dẫn cài đặt switch planet layer 3
Hướng dẫn cài đặt switch planet layer 33c telecom
 
GSM GPRS sim900 a modem with stub antenna and sma connector-USB
GSM GPRS sim900 a modem with stub antenna and sma connector-USBGSM GPRS sim900 a modem with stub antenna and sma connector-USB
GSM GPRS sim900 a modem with stub antenna and sma connector-USBRaghav Shetty
 
Development of a Low Cost, Reliable & Scalable Home Automation System.
Development of a Low Cost, Reliable & Scalable Home Automation System.Development of a Low Cost, Reliable & Scalable Home Automation System.
Development of a Low Cost, Reliable & Scalable Home Automation System.imtiyazEEE
 
VoiceBootcamp Ccnp collaboration lab guide v1.0 sample
VoiceBootcamp Ccnp collaboration lab guide v1.0 sampleVoiceBootcamp Ccnp collaboration lab guide v1.0 sample
VoiceBootcamp Ccnp collaboration lab guide v1.0 sampleFaisal Khan
 
438050190-presentation-for-arduino-driven-bluetooth-rc-cr.pptx
438050190-presentation-for-arduino-driven-bluetooth-rc-cr.pptx438050190-presentation-for-arduino-driven-bluetooth-rc-cr.pptx
438050190-presentation-for-arduino-driven-bluetooth-rc-cr.pptxVenuVenupk1431
 
operating and configuring cisco a cisco IOS device
operating and configuring cisco a cisco IOS deviceoperating and configuring cisco a cisco IOS device
operating and configuring cisco a cisco IOS devicescooby_doo
 
03 umts radio path and transmissionnew
03 umts radio path and transmissionnew03 umts radio path and transmissionnew
03 umts radio path and transmissionnewsivakumar D
 

Similar a Interfacing two arduino boards using rn 42 bluetooth (20)

Switching 2
Switching 2Switching 2
Switching 2
 
Communication &amp; switching networks lab manual
Communication &amp; switching networks lab manualCommunication &amp; switching networks lab manual
Communication &amp; switching networks lab manual
 
How to use mmdvm host wif main board
How to use mmdvm host wif main boardHow to use mmdvm host wif main board
How to use mmdvm host wif main board
 
How to use mmdvm host - main board
How to use mmdvm host - main boardHow to use mmdvm host - main board
How to use mmdvm host - main board
 
Hc 05-at command-set
Hc 05-at command-setHc 05-at command-set
Hc 05-at command-set
 
Android Bluetooth Introduction
Android Bluetooth IntroductionAndroid Bluetooth Introduction
Android Bluetooth Introduction
 
Cataloge ge 3.control and_automation-26_vat300_e_c6-12_rev_b
Cataloge ge 3.control and_automation-26_vat300_e_c6-12_rev_bCataloge ge 3.control and_automation-26_vat300_e_c6-12_rev_b
Cataloge ge 3.control and_automation-26_vat300_e_c6-12_rev_b
 
Adtran 1200167L1
Adtran 1200167L1Adtran 1200167L1
Adtran 1200167L1
 
Commisioning.pptx
Commisioning.pptxCommisioning.pptx
Commisioning.pptx
 
Hướng dẫn cài đặt switch planet layer 3
Hướng dẫn cài đặt switch planet layer 3Hướng dẫn cài đặt switch planet layer 3
Hướng dẫn cài đặt switch planet layer 3
 
GSM GPRS sim900 a modem with stub antenna and sma connector-USB
GSM GPRS sim900 a modem with stub antenna and sma connector-USBGSM GPRS sim900 a modem with stub antenna and sma connector-USB
GSM GPRS sim900 a modem with stub antenna and sma connector-USB
 
Development of a Low Cost, Reliable & Scalable Home Automation System.
Development of a Low Cost, Reliable & Scalable Home Automation System.Development of a Low Cost, Reliable & Scalable Home Automation System.
Development of a Low Cost, Reliable & Scalable Home Automation System.
 
VoiceBootcamp Ccnp collaboration lab guide v1.0 sample
VoiceBootcamp Ccnp collaboration lab guide v1.0 sampleVoiceBootcamp Ccnp collaboration lab guide v1.0 sample
VoiceBootcamp Ccnp collaboration lab guide v1.0 sample
 
438050190-presentation-for-arduino-driven-bluetooth-rc-cr.pptx
438050190-presentation-for-arduino-driven-bluetooth-rc-cr.pptx438050190-presentation-for-arduino-driven-bluetooth-rc-cr.pptx
438050190-presentation-for-arduino-driven-bluetooth-rc-cr.pptx
 
Readme
ReadmeReadme
Readme
 
operating and configuring cisco a cisco IOS device
operating and configuring cisco a cisco IOS deviceoperating and configuring cisco a cisco IOS device
operating and configuring cisco a cisco IOS device
 
Day 13.1..1 catalyst switch
Day 13.1..1 catalyst switchDay 13.1..1 catalyst switch
Day 13.1..1 catalyst switch
 
Real to protected_mode
Real to protected_modeReal to protected_mode
Real to protected_mode
 
Tp link extender setup
Tp link extender setupTp link extender setup
Tp link extender setup
 
03 umts radio path and transmissionnew
03 umts radio path and transmissionnew03 umts radio path and transmissionnew
03 umts radio path and transmissionnew
 

Último

Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
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 DiscoveryTrustArc
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
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, Adobeapidays
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
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.pdfsudhanshuwaghmare1
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
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 Takeoffsammart93
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 

Último (20)

Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
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
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
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
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
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
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
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
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 

Interfacing two arduino boards using rn 42 bluetooth

  • 1. INTERFACING TWO ARDUINO BOARDS USING RN-42 BLUETOOTH Presented By: Sumit chakraborty
  • 2.
  • 4. Cont.. STEP- 2: Connect Your device With bluetooth and pc. STEP -3 : Change to command mode($$$) STEP -4: Press D to see your Bluetooth configuration.
  • 5. Cont.. Some Basic Modes Of Operation 1. Slave Mode(SM,0) – This is default mode. 2. Master Mode(SM,1) – This mode is useful when the device wants to initiate connection
  • 6. Command Mode VS Data Mode Upon power up the device will be in data mode. To enter command mode, send the characters “$$$” through the serial port or from the remote Bluetooth connection. To exit command mode, send “---<cr>”
  • 7. HOW TO CHANGE THE Baudrate Default Baudrate is 115200 To change to 9600 – SU,96 Range of Baudrate the module supports: {1200, 2400, 4800, 9600, 19.2, 28.8, 38.4, 57.6, 115K, 230K, 460K, 921K },
  • 8. Program of Master Bluetooth module //Master // Before going forward first Download TextFinder.h #include <TextFinder.h> String Remote ="00066649533C"; // Address of slave device void setup() { Serial.begin(9600); //baudrate Serial.print("$$$"); // command mode delay(100); Serial.println("c,"+ Remote +"r"); // connect to the device delay(100); Serial.println("SM,1"); // master delay(100); Serial.println("---,"+ Remote +"r"); // exit from command mode and enter data mode delay(100); }
  • 9. Cont.. void loop() { Serial.println("L"); // Send ‘L’ in data mode delay(100); Serial.println("H"); // Send ‘H’ in data mode delay(100); }
  • 10. Program for Slave Blutooth module //Slave #include <TextFinder.h> String Remote ="0006664953B0"; // Address of master bluetooth void setup() { Serial.begin(9600); // baudrate Serial.print("$$$"); // command mode delay(100); Serial.println("c,"+ Remote +"r"); // connecting to the slave delay(100); Serial.println("SM,0"); // slave mode delay(100); Serial.println("---,"+ Remote +"r"); // exit from command mode delay(100); }
  • 11. Cont.. void loop() { if(Serial.available() > 0) // Check if data is available { char ch = Serial.read(); // read the incoming data if(ch == 'L') { digitalWrite(13,HIGH); delay(100); } else if(ch == 'H') { digitalWrite(13,LOW); delay(100); } } }