GithubHelp home page GithubHelp logo

ralphbacon / 196-bluetooth-serial-comms-for-arduino Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 178 KB

Wireless comms using two, cheap Bluetooth modules is easy and stable

License: MIT License

C++ 96.12% C 3.88%

196-bluetooth-serial-comms-for-arduino's Introduction

196 Bluetooth Serial Comms for Arduino (and other micro controllers)

Wireless comms using two, cheap Bluetooth modules is easy and stable

See video in my YouTube channel https://www.youtube.com/ralphbacon

Direct link to video: https://youtu.be/U8ogrhu3qWo

JLCPCB Only $2 for PCB Prototype and Assembly any colour https://jlcpcb.com/

AS part of a bigger project I need one-way comms between two Arduinos, as if they were connected together via the RX and TX pins. If required it also supports two-way, wireless comms.

Here I show you the basics of doing that but more importantly I go through Martyn Currey's instructions on how to pair two Bluetooth devices (eg an HC05 and HC06 or just two HC05s) so that they will only connect to each other (automatically) upon power up.

Note that you can't use two HC06s because an HC06 cannot act as an initiator, only a responder.

A complete list of the commands you need for both Initiator and Responder are included in my GitHub to save you the bother of finding each command.

INFORMATION

Martyn Currey's website
http://www.martyncurrey.com/connecting-2-arduinos-by-bluetooth-using-a-hc-05-and-a-hc-06-pair-bind-and-link/

Guide to all AT commands
https://www.itead.cc/wiki/Serial_Port_Bluetooth_Module_(Master/Slave)_:_HC-05

Full list of AT commands and ERROR CODES
http://www.martyncurrey.com/arduino-with-hc-05-bluetooth-module-at-mode/

HARDWARE COMPONENTS

Single HC-05 Wireless Bluetooth Serial Transceiver Module (UK, USA and China warehouses)
https://www.banggood.com/HC-05-Wireless-Bluetooth-Serial-Transceiver-Module-Slave-And-Master-p-908621.html?p=FQ040729393382015118&utm_campaign=25129675&utm_content=3897

3Pcs HC-05 Wireless Bluetooth Serial Transceiver Module (China, USA and UK warehouses)
https://www.banggood.com/3Pcs-HC-05-Wireless-bluetooth-Serial-Transceiver-Module-p-1011725.html?p=FQ040729393382015118&utm_campaign=25129675&utm_content=3897

CP2102 USB To TTL/Serial Module (This has 3V and 5V) $2.99 + shipping (same as mine)
https://www.banggood.com/CP2102-USB-To-TTLSerial-Module-Downloader-p-970993.html?p=FQ040729393382015118&utm_campaign=25129675&utm_content=3897

3Pcs FT232RL FTDI USB To TTL Serial Converter Adapter Module (from China, USA and UK)
https://www.banggood.com/3Pcs-FT232RL-FTDI-USB-To-TTL-Serial-Converter-Adapter-Module-p-959210.html?p=FQ040729393382015118&utm_campaign=25129675&utm_content=3897

List of all my videos

(Special thanks to Michael Kurt Vogel for compiling this)
http://bit.ly/YouTubeVideoList-RalphBacon

If you like this video please give it a thumbs up, share it and if you're not already subscribed please consider doing so and joining me on my Arduinite journey

My channel, GitHub and blog are here:

196-bluetooth-serial-comms-for-arduino's People

Contributors

ralphbacon avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.