Method to Connect Arduino to Mobile Phone Using TinyWifi Shield - android

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.

Related

How to pair bluetooth HC-05 module to a website

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.

Android to Android Communication over USB

Basically I need to build an APP to communicate between two android devices, send and receive data, in the safest way without Internet.
I could use WiFi, but they are prone to hacks and Jamming. My first question is
if Local WiFi Hot Spot connection could be made fully secured to public?
I am looking into wired communication between android devices using OTG USB serial communication. My second question is
Are there ways to communicate between android devices over OTG-USB using serial ports?
As Android supports both USB gadget and USB host interface, it is definitely possible to make communication between two devices over USB OTG. In this case, your one device will become USB Host which will initiate connection. And the other will become USB gadget device. And you will have to write application considering that.

Can multiple phones be connected to same Arduino via Bluetooth using MIT App Inventor?

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

Sending serial data from android to a PICAXE microcontroller with usb cable

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

Connecting a Raspberry-Pi to Android phone wirelessly

I am trying to wirelessly connect my android phone to a Raspberry-Pi, so I can then make a controller app to interact with the RPi.
I have just bought a dongle, as I was thinking of using Wifi-Direct. However this doesn't look as simple as I originally thought.
There's not much information out there on how to do this, and I am completely new to RPis.
I have found the odd tutorial like this: https://www.youtube.com/watch?v=6GPv8TfZqe4
But it seems overly complicated and I am not sure if they applicable to my dongle.
I am thinking there must be a more simple way to do this(e.g. through wpa_gui on Raspbian)
Any suggestions on how I could achieve this?
You can try:
SSH to raspberry Pi with given credentials (if both devices are connected to the network... but that may not always be doable)
Setup web API/app on RPi and use it via browser on Android (like https://github.com/NeonHorizon/berryio )
Use Bluetooth UART: Adafruit has a full blown Bluetooth UART board, and Chinese make many slave (or master) UART serial boards. This way you could open a serial connection from the phone - and with luck you would get the terminal which by default is cloned to UART in RPi (or it would get your script running on Pi and handling incoming UART messages).

Categories

Resources