- Saved searches
- Use saved searches to filter your results more quickly
- License
- pu2clr/bluetooth_remote_control
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- Удаленное управление между Android-девайсами через Bluetooth
- О программе
- Инструкция
- Управление компьютером через Андроид: Видео
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Smartphone Remote Control for Arduino receiver projects
License
pu2clr/bluetooth_remote_control
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
This project is an extension of the Arduino library projects for: SI4735; AKC6959 and KT0915.
It is a simple example that shows a way to use your smartphone as a remote control via Bluetooth. In order to follow the steps presented here, I am assuming that you have some knowledge in development for mobile devices. Also, you will need to be familiar with the Javascript programming language.
The development environment used by this project is the Apache Cordova. Cordova is a open-source mobile development framework that allows you to develop cross-platform applications. That means you can code once and deploy the application in many system, including iOS and Android. Cordova provides an easy way to develop for iOS and Android.
This project can be freely distributed using the MIT Free Software model.
Copyright (c) 2020 Ricardo Lima Caratti
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the «Software»), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED «AS IS», WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE ARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
The video below shows you this project working.
This example uses an old iPhone 5C. However, you can use your current iOs or Android device to run it. Thanks to Cordova development environment, you can do it with no code changes.
The screenshot below shows the mobile application interface.
Arduino Shield Bluetooth (HM10 — HMSOft TineSine)
The Bluetooth 4.0 used here is the HM10 (TinySine). It is very similar to the famous HC-05. The photos below show the HM10 Bluetooth. This kind of Bluetooth works well on iOs and Android based device. You also can use the HC-05 Bluetooth device. However, the HC-05 will not work on iOS devices.
Bluetooth Arduino Library
The Arduino sketch of this example uses the SoftwareSerial library. You have to download and install this library on your Arduino enviroment.
The photos below show the Arduino, SI4735 and the Bluetooth devices connections.
The photo below shows a homebrew version of the SI4735-D60 citcuit with all basic components connected on a SSOP24 board adapter. You need 3 wires to connect the Arduino to the Si4735 board (SDIO, SCLK and RESET). You also can use the Arduino board to power the homebrew SI4745 shield.
SI4735 homebrew shield and Arduino Pro Mini/3.3V/8MHz
The tables below show the wire and pin connections between the Arduino Board and SI4735 and Bluetooth shields.
Si4735 pin | Arduino Pin |
---|---|
RESET (pin 15) | 12 |
SDIO (pin 18) | A4 |
SCLK (pin 17) | A5 |
Bluetooth shield and Arduino Pro Mini/3.3V/8MHz
The schematic below shows a very simple Arduino, SI4735 and Bluetooth shield setup.
You can use the HC-05 or HC-07 Bluetooth devices instead HM10 on Android based mobile devices. However, these devices will not work on iOS devices.
Compiling de Deploying the Mobile Application
Copy this example folder to a local folder and follow the steps bellow.
For Android, is recommended to install Android Studio on your computer to compile and deploy this application.
For iOS (iPhone or iPad), is recommended to install Xcode on your Mac computer to compile and deploy this application.
This applications was build using the Apache Cordova. Click here to see more about Apache Cordova.
Before star installing Cordova you have to install npm (Node.js Package Manager and Installer).
Install Platform and Plugin
$ cordova platform add android $ cordova platform add ios $ cordova plugin add cordova-plugin-bluetooth-serial
Compile and run the application
$ cordova run android --device
More Arduino Projects by author
- PU2CLR Si4735 Library for Arduino. This library was built based on “Si47XX PROGRAMMING GUIDE; AN332” and it has support to FM, AM and SSB modes (LW, MW and SW). It also can be used on all members of the SI47XX family respecting, of course, the features available for each IC version;
- PU2CLR SI4844 Arduino Library. This is an Arduino library for the SI4844, BROADCAST ANALOG TUNING DIGITAL * DISPLAY AM/FM/SW RADIO RECEIVER, IC from Silicon Labs. It is available on Arduino IDE. This library is intended to provide an easier interface for controlling the SI4844.
- PU2CLR AKC695X Arduino Library. The AKC695X is a family of IC DSP receiver from AKC technology. The AKC6955 and AKC6959sx support AM and FM modes. On AM mode the AKC6955 and AKC6959sx work on LW, MW and SW. On FM mode they work from 64MHz to 222MHz.
- PU2CLR KT0915 Arduino Library. The KT0915 is a full band AM (LW, MW and SW) and FM DSP receiver that can provide you a easy way to build a high quality radio with low cost.
- PU2CLR BK108X. The BK1086 and BK1088 are DSP receivers from BAKEN. The BK1088 is a BROADCAST FM and AM (LW, MW and ) RECEIVER and BK1086 is a subset of the BK1088 (it does not have LW and SW acording to the Datasheet).
- PU2CLR RDA5807 Arduino Library. The RDA5807 is a FM DSP integrated circuit receiver (50 to 115MHz) with low noise amplifier support. This device requires very few external components if compared with other similar devices. It also supports RDS/RBDS functionalities, direct auto gain control (AGC) and real time adaptive noise cancellation function.
- PU2CLR SI470X Arduino Library. It is a Silicon Labs device family that integrates the complete functionalities for FM receivers, including RDS (Si4703).
- PU2CLR MCP23008. It is an Arduino Library to control the MCP23008/MCP23S08 8-Bit I/O Expander. The MCP23008 device provides 8-bit, general purpose, parallel I/O expansion. It can be controlled via I2C bus applications. It is a great and inexpensive device that allow you to add more devices to be controlled by your Arduino board via I2C protocol.
- PU2CLR — PCF8574 Arduino Library. It is an Arduino Library to control the PCF8574 8-Bit I/O Expander. The PCF8574 device provides 8-bit, general purpose, parallel I/O expansion. It can be controlled via I²C bus applications. It is a great and inexpensive device that allow you to add more peripherals to be controlled by your Arduino board via I²C protocol.
- Multipurpose signal generator with SI5351. It is a multipurpose signal generator controlled by Arduino. This project uses the SI5351 from Silicon Labs. The Arduino sketch is configured to control the SI5351 with three channels from 32.768KHz to 160MHz and steps from 1Hz to 1MHz.
- Shortwave Arduino Transmiter. This project is about a shortwave transmitter from 3 MHz to 30 MHz. It uses the SI5351 oscillator from Silicon Labs controlled by Arduino. Also, you can use it with a crystal oscillator. In this case, you will not need the SI5351 device and Arduino.
- Band Pass Filter controlled by Arduino. It is a HF band pass filter controlled by Arduino. It is designed for HF receivers. With this project, you can use a set of up to four HF bandpass filters that can be selected by Arduino. To do that you will need just two digital Arduino pins.
Удаленное управление между Android-девайсами через Bluetooth
Иногда бывает, что нужно с помощью одного Android-устройства производить удаленное управление другим, например, при демонстрации слайдов с планшета на проектор проводя презентацию, нужно переключать слайды. Это можно сделать с помощью своего смартфона и специальной программы из разряда Bluetooth remote для телефона на Android, о чем дальше и пойдет речь.
О программе
Данный софт также будет полезен в тех случаях, где вам нужно что-то сделать с одного устройства на втором, когда прямого доступа к нему у вас нет. Также один из примеров подобной ситуации — использование смартфона в качестве пульта от планшета, который подключен к TV по HDMI и транслирует какое-то видео. В таком случае вы сможете управлять мультимедийным контентом с телефона, не вставая с дивана.
Так же, как и аналогичные программы удаленного доступа, установить нужно Bluetooth remote control для телефона на Android и для планшета отдельно. То есть обе копии должны быть на обоих аппаратах.
Эта программа называется Tablet Remote; из названия видно, что приложение разрабатывалось больше для управления планшетом. Но оно также хорошо работает, если установить Bluetooth remote control для планшета на Androidв качестве пульта, чтобы у вас был удаленный доступ с вашей «таблетки» к вашему смартфону. Смысла в этом большого мы не видим, но ситуации у каждого бывают свои.
Программа находится в бесплатном доступе в Google Play.
Инструкция
- Установите программу на оба девайса, которые будете связывать для удаленного управления.
- Запустите Tablet Remote на телефоне и сразу перейдите на вкладку «Connection».
- Далее откройте приложение на планшетном компьютере. Должны увидеть анимированный интерфейс.
- Выберите иконку «Setup».
- Поставьте галочки на всех опциях, которые есть в данном окне. Соглашайтесь со всеми вопросами, что может задать система. Это нужно для правильно работы приложения.
- Выберите изображение радара. Этим действием вы дадите разрешение смартфону найти ваш планшет.
- В списке устройств найдите имя телефона и выберите его для сопряжения двух девайсов.
На этом вся настройка произведена, можно приступать к управлению.
- На смартфоне вернитесь в главное меню и выберите вкладку «Remote» для отображения органов управления.
Интерфейс с кнопками управления выполнен компактно и интересно. В книжной ориентации экрана доступны следующие функции:
В альбомной ориентации весь интерфейс превращается в геймпад для игр. Расположение клавиш аналогично геймпаду от Playstation – DualShock — только без аналоговых стиков. Для геймеров это будет приятной находкой. Теперь можно играть в любимые мобильные игры на большом телевизоре, управляя со своего телефона.
Мы показали, как можно управлять со смартфона планшетным ПК; если вам нужно сделать действие наоборот, повторите данную инструкцию, только там, где мы указывали действия для планшета, делайте это на смартфоне и наоборот. Приятного пользования.