To start of, i'm REALY new to this so i'm going to need a in depth explanation.
I'm trying to connect my Arduino through Bluetooth to a website. To do this, i'm trying to use the HC-05 bluetooth module. I got the module to work with a app builder and the app bluetooth terminal. I can send text and data to my Arduino.
Now i want to connect it to a website with a pairing button. When clicked, it won't show the device under the pairing tab. I assume this is because it doesn't recognize my module as a pair-able device. Can anyone explain to me how pairing works and if i can get it to connect?
You probably use the Web Bluetooth API on your website, which states (emphasis mine):
The Web Bluetooth API provides the ability to connect and interact with Bluetooth Low Energy peripherals.
Your HC-05 is a Bluetooth Classic device and can not be found using the Web Bluetooth API, which only allows connecting to Bluetooth Low Energy devices. Other adapters will enable you to use BLE with your Arduino; the HM-10 is one of them. Another option would be to switch boards entirely and use something like an ESP32 that already comes with BLE.
Related
I am currently working on a project in MIT App Inventor, where I am connecting an Android device to an Arduino via Bluetooth.
Is it possible to connect multiple Android phones to this Arduino, and is there a procedure by which an Arduino could distinguish between them?
I assume, that you are using a serial bluetooth device, such as HC-06 or HC-05. As I know, even the master module HC-05 can only connect to one client at a time (which makes sense, since the serial connection on the other side is the same)(despite the fact, that bluetooth in principle allows handling multiple clients at a time, though it's a rather complex task). This means, that you would have to use one serial bluetooth module for each phone, you want to connect at the same time.
When using more than one bluetooth module, you have to connect them to the Arduino over serial, but only one device can use the serial connection at a time. Depending on the number of phones, you want to connect, you can use either the SoftwareSerial library to emulate more than one serial connection (so every connection can be identified by its own SoftwareSerial object), or you have to multiplex your data lines between the different serial bluetooth devices (so that you control the serial connection to the devices with for example setting digital pins). For the last mentioned possibilities, I'm not sure about the property limits in the serial connection. Maybe you can multiplex just only with a few transistors.
If you want not only distinguish between the different connections but directly between different phones (for example to remember special settings for only your phone, not the others) you would have to send an identification over bluetooth to the Arduino (for example the MAC adress of the phone).
For more help, you should state you question in a better way and telling more details
I am working on a project that including an android phone that sends simple serial messages to a picaxe microcontroller(14m2) like '1','2','a' etc.
I searched alot on the web, and I only found a way that the android smartphone first "connecting" to the device and "discover" it, the problem is that PICAXE microcontroller is NOT a 'USB' device, and it can't be discoverd by the android, that means the android will not be able to send serial messages to the PICAXE.
if theres any way to send simple pulses from android to PICAXE, please let me know about it.
EDIT: There's any way to do that by connecting the AXE027 download cable with OTG?
I do some project with communicating over serial port. You can use chineese bluetooth adapters (see on ebay arduino bluetooth), those communicate with controllers via Usart and connect to phone by bluetooth. There is sample project Bluetooth chat from google about how to use bluetooth on android. On hardware iside, you can use arduino for receiving data by bluetooth and converting it in format of your controller. You wont have to use any wires
I'm new to Arduino development. My device is TinyDuino from TinyCircuits. I'm looking for a way that will allow me connect my Arduino device to my Android phone (Android app) , via TinyWifi shield. Yet all the methods I found are for specific module or specific shield. I'm looking for some way that works with my device or something general that could be modified to work with any shield.
Depends on what actions you want to do after you connect with your phone.
If you only want manual exchange of simple data, you can use term apps. For WiFi, find WiFi Term. For Bluetooth (Tinycircuit's BLE module), find BLE term. There are many available.
If you need more complicated action, you need to write your own app for it.
My applications connects my Android phone to a health device. The health device is capable of connecting using either Bluetooth SPP or HDP profile while my app can only support SPP.
The health device's documentation states that I have to send a special command to the it during the pairing process to make sure that Bluetooth communication uses SPP profile instead of HDP.
Note that I'm not concerned about connection after pairing at all. I need to:
Separate the pairing process from the connections after pairing - I don't mind if users have to authorise pairing through a popup
Be able to send some data to the health device during the pairing process (so that following connections will actually happen)
The Android documentation seems to imply that pairing is implicitly handled as an integrated part of the Bluetooth connections as you call connect() or accept(). However, this and this gives me some hope.
I'd like to support as many devices as possible but 4.0 and above are more important. The health device I'm using supports Bluetooth 2.1 so no worries about PIN.
I'm attempting to create an Android and iOS app that utilizes Bluetooth to detect proximity to an object and have the app perform some action. The only thing I need to do is pair so that my app can know you are near the source, not actually perform any additional communication or have the Bluetooth receiver communicate with any hardware.
I was able to flash a BLED112 USB Dongle (BLE) and get that working with the iOS SDK when plugged into a cigarette usb car adapter, but could not find an equivalent Classic Bluetooth Dongle that would allow for the same functionality. Does anyone know of a small classic Dongle that either includes a dummy host controller or allows you to pair without a host controller which would allow for the functionality I'm trying to achieve? I need to support Classic Bluetooth for many Android phones to work since BLE isn't well supported across Android.
Thank you in advance