I want to connect a number of external sensors (temperature sensor,pressure sensor , etc..) to an android mobile. What are the different ways for this? How do I read data from these sensors? Thanks in advance
You need device like Arduino to connect sensors to android, which then connected via network and can communicate with each other.
You could use a cheap Arduino Nano from China, with a cheap HC-06 BlueTooth module, also from China.
Then read the values in a 10 mt range.
Or you could use a networked solution, to read values all over the Web.
Probably a bit late for this, but you should really try the IOIO-OTG board. Its purpose is to do exactly what you asked for: connect Android devices to sensors and actuators. The Android device can connect to the IOIO-OTG board via Bluetooth or USB/OTG cable. The programming is made in JAVA ( e.g. by using Eclipse ADT). Just google IOIO-OTG for more details or ask here and I can help you.
Have fun!
Related
I'm using arduino Mega ADK and RedBear BLE shield.
The goal is to make arduino send sensordata to androidphone(nexus 7) via bluetooth. Sensor should be accelerometer/Gyro type.
I have used RedBears SimpleChat as a starting point to get understanding how this is suppose to work, but i'm having some problems. When i use RedBears own app from google play store and the examples that they distribute, everything works just fine. App finds arduino and i can connect to it that way.
But i can't connect to arduino without the app, it just... rejects it. I have tried changing my tablet settings anyway possible but that just doesn't seem possible.
Additionaly if i run any other code(not from the redbear i mean) to arduino, tablet cant find arduino from bluetooth connections anymore and neither can any app that has BT finding properties.
So what i'm trying to figure out is:
A way to connect my tablet to arduino without redBear app.
Does the redBear BLE shield somehow prevent other codes to be passable?
Does the redBear have some kind of BT method that is better than others?
Any help, examples or answers are much appreciated.
Sorry for the bad English -_-
Here is a SDK provided by RedBearLab for Android https://github.com/RedBearLab/Android. It also contains examples.
I want to connect two android phones via Bluetooth low energy but, I dont know how to create characteristic uuids and service uuid in android; I Googled a lot that I could connect the two android phones via Bluetooth low energy but, could not find useful stuff.
Please guide me that how could I solve the issue. I would be very thankful for this act of kindness. Thanks in advance.
From what i understood:
Upload BluetoothChat sample codes to both devices using Eclipse or Android studio
Pair them
Open BluetoothChat sample app
Connect to each other
Bingo, you are connected and even can chat in a range.
Regards
My company wants to develop an Apple or Android app to tackle with an external sensor device, lets say the temperature of milk via a temperature sensor. The external device is tbd and currently under investigation, could be using a connector or WIFI or Bluetooth.
Do we need to apply for Apple MFI program to get access to the protocols used for that?
Since we do not want to implement the external device, i guessMFI license is not needed. But where do we get ressources to learn how to connect?
For Android you could do this using an Arduino Module
You can do this using Bluetooth / WiFi as your need!
Then make an Android app and communicate with the Arduino Module to get your data via Bluetooth / WiFi
For Ios/Apple
A Plus side of using Arduino
You can use Arduino for Iphone As Well as For Android
How? here you go ----> http://www.raywenderlich.com/38841/arduino-tutorial-temperature-sensor
If you really need to Know the temperature of milk via a temperature sensor here is a Full Tutorial
Which uses a Temperature sensor to find the Temperature and Query it to your Iphone
1 All the Requirements are given.
2 Cost Of all the parts with links
3 Source Code is also provided
4 Working
5 Circuit Diagrams
6 Step by Step Guide to code
7.Libraries are provided
8 Everything needed is provided for free (Software part)
Know everything About Arduino http://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CCsQFjAA&url=http%3A%2F%2Fwww.arduino.cc%2F&ei=K344UpiFCo2yrgfXi4CACQ&usg=AFQjCNENSvy_VhDmp9YsE0x0X702I5teeQ&sig2=utVrSYYIMBFAFStVGq--RQ&bvm=bv.52164340,d.dGI
Tutorials :-
http://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=5&cad=rja&ved=0CFEQtwIwBA&url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DkS5C5Xhsv24&ei=g3w4UrDcLsOQkQWA44DQAQ&usg=AFQjCNHED0FWP8FpK29uEnUzxDeyh6751g&sig2=2rfcYp4Zqx5dt-KVri5sfw&bvm=bv.52164340,d.dGI
http://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=6&cad=rja&ved=0CFgQtwIwBQ&url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DY9R5O0mbvME&ei=g3w4UrDcLsOQkQWA44DQAQ&usg=AFQjCNHSbk25-B0KJTejgr4QewfK5aNivw&sig2=YZCyYJb_AVmvgmXVoAWLLw&bvm=bv.52164340,d.dGI
http://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CCsQFjAA&url=http%3A%2F%2Fblog.arduino.cc%2F2013%2F07%2F09%2Flet-your-arduino-talk-to-your-android-phone-without-any-android-programming%2F&ei=g3w4UrDcLsOQkQWA44DQAQ&usg=AFQjCNHRdHAkS8MBau7hN3Bv5HtN-fvU0A&sig2=lboevloczOpc28XwVM9cmQ&bvm=bv.52164340,d.dGI
http://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&ved=0CDMQFjAB&url=http%3A%2F%2Fforum.arduino.cc%2Findex.php%3Ftopic%3D168329.0&ei=g3w4UrDcLsOQkQWA44DQAQ&usg=AFQjCNGQE5LOB60XfXmuiJdNYbIxqAqgJw&sig2=yk3dGNYeUOitvr6a4S8DkQ&bvm=bv.52164340,d.dGI
Just to expand a little more on Metalhead's answer. If you go the Arduino route, you will need to buy an Ethernet Shield or a Wifi Shield to use Ethernet or WiFi respectively. You can use Bluetooth if you are close enough to the sensor; you will still need to buy a Shield
One advantage of using the Wifi or Ethernet Shields is that you can use MQTT to remotely monitor your sensors over the Internet.
You can also look into a Raspberry Pi. It has more processing power than the Arduino and it comes with a built-in Ethernet card. If you are a Java programmer, you can install Java in a Raspberry Pi; you can't in an Arduino.
Android also gives you the option of using Android Open Accessory if you want to communicate and control the Arduino using USB or Bluetooth. You will have to be connected to the board directly via a USB cable (if using USB to communicate) since it needs the 5V from your phone to operate.
I am new to embedded programming and I am given a project to establish Bluetooth communication between an Android tablet and an ARM development board with Bluetooth capabilities.
Please tell me whether this project can be done or not ??
If it can be done then how should I approach it ??
Thanks
Check out this page: http://www.amarino-toolkit.net/
They are using the arduino board with a bluetooth component to connect to android. You can check the source code of their library to see how they establish and use the connection here:
http://code.google.com/p/amarino/
If what you want is a simple and robust communication method over Bluetooth then SPP is definitely the way to go.
The only issue could be the bandwidth, but if the throughput of a traditional serial cable connection is enough for your application then there certainly won't be any problems there. IIRC then most modules have > 1 Mbit throughput using SPP.
Some information about using SPP on Android is here.
But we need a little bit more information to give suggestions about what you need to do on your ARM kit. Maybe you could post a few details about its type, which Bluetooth module is in use there, how it is connected to the ARM MCU etc.
If you're lucky then your kit's BT module can function as a serial cable replacement and you can treat it as if the Android device is connected to your MCU's UART. Of course prior to that, some configuration is needed over some interface (could be the same UART, depending on module type) to establish a Bluetooth connection.
Oh and to answer your first question: yes, it certainly can be done :)
I haven't worked with Android to ARM board via bluetooth but I have done some work communicating between an Android device and an Arduino using bluetooth. I tried to document what I learned in a series of examples. There are several that might be helpful.
http://digitalhacksblog.blogspot.com/2012/05/arduino-to-android-basic-bluetooth.html
http://digitalhacksblog.blogspot.com/2012/05/arduino-to-android-turning-led-on-and.html
http://digitalhacksblog.blogspot.com/2012/05/android-example-bluetooth-simple-spp.html
The first two examples show how to setup communication via bluetooth from an Android device to an Arduino with a bluetooth board. I would expect that to get some initial connectivity between the Android and the ARM the Android side of things would be the same.
The third example shows how to setup a simple spp client and server between an Android device and a PC running windows.
Hope this helps.
I'm working on a course project. We are making a circuit board, which has a LMX9838 chip connected to a ARM-based MCU. I want to make an application on Android to connect the smartphone to our board using bluetooth featured on the smartphone and LMX9838 Bluetooth controller. My app will be able to send command from the smartphone to the MCU via LMX9838 and it will be able to transfer data (e.g files) between the phone and the MCU too.
That's what I want to do. But I wonder if it is possible to connect bluetooth on the smartphone and the LMX9838 bluetooth controller? And if it is possible, how can I make it? I know my question is very unspecific but you guys could give me some hints about the basic step, please. Because I've never worked with bluetooth technology so my experience in it is nearly zero.
Anyone have any suggestion? Thanks in advance!