SlideShare a Scribd company logo
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

More Related Content

What's hot

Transfer of energy in human body
Transfer of energy in human bodyTransfer of energy in human body
Transfer of energy in human body
ankitashinde25
 
THERAPEUTIC ULTRASOUND.pptx
THERAPEUTIC ULTRASOUND.pptxTHERAPEUTIC ULTRASOUND.pptx
THERAPEUTIC ULTRASOUND.pptx
PriyankaBhusal2
 
Therapeutic massage
Therapeutic massageTherapeutic massage
Therapeutic massage
Nursing Hi Nursing
 
Aerobic and anaerobic
Aerobic and anaerobicAerobic and anaerobic
Aerobic and anaerobic
amrit kaur
 
Physics & Basic Electrical Equipments.pptx
Physics & Basic Electrical Equipments.pptxPhysics & Basic Electrical Equipments.pptx
Physics & Basic Electrical Equipments.pptx
SaritaMahindrakar
 
Low Frequency Therapeutic Currents
Low Frequency Therapeutic CurrentsLow Frequency Therapeutic Currents
Low Frequency Therapeutic Currents
AVANIANBAN CHAKKARAPANI
 
Classification of movement
Classification of movementClassification of movement
Classification of movement
Dr. Satish Pimpale
 
Physiotherapy in pcos
Physiotherapy in pcosPhysiotherapy in pcos
Physiotherapy in pcos
Dr. Akshita Duha Juneja (PT)
 
Electrotherapy in wound healing
Electrotherapy in wound healing Electrotherapy in wound healing
Electrotherapy in wound healing
Sreeraj S R
 
Use Of Fundamental & Derived Position.
Use Of Fundamental & Derived Position.Use Of Fundamental & Derived Position.
Use Of Fundamental & Derived Position.
Jinnah Post Graduate Medical Centre (J.P.M.C)
 
ATP Energy System
ATP Energy SystemATP Energy System
ATP Energy System
Umer Asad
 
Ergonomic aspect of exercise on oxygen
Ergonomic aspect of exercise on oxygenErgonomic aspect of exercise on oxygen
Ergonomic aspect of exercise on oxygen
aakankshabajpai2
 
Stretching Exercises
Stretching ExercisesStretching Exercises
Stretching Exercises
malli shan
 
Laws governing radiation
Laws governing radiationLaws governing radiation
Laws governing radiation
RAJESH MANI
 
Constant galvanic current
Constant galvanic currentConstant galvanic current
Constant galvanic current
Riaz Ahmed
 
microwave diathermy
microwave diathermy microwave diathermy
microwave diathermy
Prashanth Kumar
 
Ergogenic aids for exercise and sports performance
Ergogenic aids for exercise and sports performanceErgogenic aids for exercise and sports performance
Ergogenic aids for exercise and sports performance
willeycoyote
 
Bioenergetics of Exercise
Bioenergetics of ExerciseBioenergetics of Exercise
Bioenergetics of Exercise
Matt Sanders
 
Biophysics Basics in Electrotherapy
Biophysics Basics in ElectrotherapyBiophysics Basics in Electrotherapy
Biophysics Basics in Electrotherapy
AVANIANBAN CHAKKARAPANI
 
Modified galvanic current
Modified galvanic currentModified galvanic current
Modified galvanic current
Riaz Ahmed
 

What's hot (20)

Transfer of energy in human body
Transfer of energy in human bodyTransfer of energy in human body
Transfer of energy in human body
 
THERAPEUTIC ULTRASOUND.pptx
THERAPEUTIC ULTRASOUND.pptxTHERAPEUTIC ULTRASOUND.pptx
THERAPEUTIC ULTRASOUND.pptx
 
Therapeutic massage
Therapeutic massageTherapeutic massage
Therapeutic massage
 
Aerobic and anaerobic
Aerobic and anaerobicAerobic and anaerobic
Aerobic and anaerobic
 
Physics & Basic Electrical Equipments.pptx
Physics & Basic Electrical Equipments.pptxPhysics & Basic Electrical Equipments.pptx
Physics & Basic Electrical Equipments.pptx
 
Low Frequency Therapeutic Currents
Low Frequency Therapeutic CurrentsLow Frequency Therapeutic Currents
Low Frequency Therapeutic Currents
 
Classification of movement
Classification of movementClassification of movement
Classification of movement
 
Physiotherapy in pcos
Physiotherapy in pcosPhysiotherapy in pcos
Physiotherapy in pcos
 
Electrotherapy in wound healing
Electrotherapy in wound healing Electrotherapy in wound healing
Electrotherapy in wound healing
 
Use Of Fundamental & Derived Position.
Use Of Fundamental & Derived Position.Use Of Fundamental & Derived Position.
Use Of Fundamental & Derived Position.
 
ATP Energy System
ATP Energy SystemATP Energy System
ATP Energy System
 
Ergonomic aspect of exercise on oxygen
Ergonomic aspect of exercise on oxygenErgonomic aspect of exercise on oxygen
Ergonomic aspect of exercise on oxygen
 
Stretching Exercises
Stretching ExercisesStretching Exercises
Stretching Exercises
 
Laws governing radiation
Laws governing radiationLaws governing radiation
Laws governing radiation
 
Constant galvanic current
Constant galvanic currentConstant galvanic current
Constant galvanic current
 
microwave diathermy
microwave diathermy microwave diathermy
microwave diathermy
 
Ergogenic aids for exercise and sports performance
Ergogenic aids for exercise and sports performanceErgogenic aids for exercise and sports performance
Ergogenic aids for exercise and sports performance
 
Bioenergetics of Exercise
Bioenergetics of ExerciseBioenergetics of Exercise
Bioenergetics of Exercise
 
Biophysics Basics in Electrotherapy
Biophysics Basics in ElectrotherapyBiophysics Basics in Electrotherapy
Biophysics Basics in Electrotherapy
 
Modified galvanic current
Modified galvanic currentModified galvanic current
Modified galvanic current
 

Viewers also liked

7ª Pesquisa Eleitoral Registrada / 2014
7ª Pesquisa Eleitoral Registrada / 20147ª Pesquisa Eleitoral Registrada / 2014
7ª Pesquisa Eleitoral Registrada / 2014
Durango 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 BLE
sanamsupraja12
 
IoT-Stockholm-Intro_to_BLE
IoT-Stockholm-Intro_to_BLEIoT-Stockholm-Intro_to_BLE
IoT-Stockholm-Intro_to_BLE
Shahzada Hatim
 
Bluetooth low energy
Bluetooth low energyBluetooth low energy
Bluetooth low energy
Saptadeep Pal
 
Bluetooth, RFID and WiMAX Technologies
Bluetooth, RFID and WiMAX TechnologiesBluetooth, RFID and WiMAX Technologies
Bluetooth, RFID and WiMAX Technologies
Mukesh Chinta
 
Wireless tv audio transmitter
Wireless tv audio transmitterWireless tv audio transmitter
Wireless tv audio transmitter
Vikram 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 Study
FReeze 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 TECHNOLOGY
Vikas 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 Presentation
guest664c3f
 
Bluetooth technology presentation
Bluetooth technology presentationBluetooth technology presentation
Bluetooth technology presentation
Krishna Kumari
 
IoT architecture
IoT architectureIoT architecture
IoT architecture
Sumit Sharma
 

Viewers also liked (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 to 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 manual
MUSAAB 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 board
AURELIO 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 board
AURELIO 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 Introduction
Erin 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_b
Dien Ha The
 
Adtran 1200167L1
Adtran 1200167L1Adtran 1200167L1
Adtran 1200167L1
savomir
 
Commisioning.pptx
Commisioning.pptxCommisioning.pptx
Commisioning.pptx
MdAlamgirHossain790134
 
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
3c 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-USB
Raghav 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 sample
Faisal 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.pptx
VenuVenupk1431
 
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
scooby_doo
 
Day 13.1..1 catalyst switch
Day 13.1..1 catalyst switchDay 13.1..1 catalyst switch
Day 13.1..1 catalyst switch
CYBERINTELLIGENTS
 
Tp link extender setup
Tp link extender setupTp 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
sivakumar D
 

Similar to 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
 

Recently uploaded

Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 

Recently uploaded (20)

Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 

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); } } }