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!
Related
I have mostly a general question, so I'm sorry if this is too broad. But I am working on plan for a robot and I wanna connect devices together.
Basically, I want to have an Android device connect to an Arduino Uno via Bluetooth, and then the Android Device connect to either another Android, or to a Bluetooth controller. The reason for this is that I want the main Android device to be used as a controller, and feed instructions to the Android device connected to the arduino, and that device to the arduino, and carry out that instruction. But is that even possible? If not, how can I work around it? And if it is possible, any examples?
Summary:
*Android Device to Android Device to Arduino via Bluetooth
*First device as a controller, second as a brain to arduino
*First communicates with second, second communicates with arduino
Yepp bro it's possible i did with some other development board other than arduino
but the important thing is concept and it's same for all developement boards.
In my project i created a connection between an android mobile & robot and then controlled its movement through an App like picking up an object using robotic arm and its motion.
I'm quite knowledgeable of as3 and writing programs/apps in flash cs6. I've also played around with my arduino uno, which I've read is psuedo-java. Very little knowledge of c languages.
I've seen people using Bluetooth to connect to an arduino with adobe air. I have an xbee shield but not the little BT adapter with it. I don't want to rely on BT connection anyway. I want it plugged in directly to my spare android phone's USB port.
I have used a usbhost program to connect thumb drives and game controllers, so I know that USB hosting is possible. Tried it with arduino and i get lights. I want to write a flash/as3 program to control the arduino while taking advantage of the phone's capabilities, such as camera, WiFi, bt and also the graphical interface that I can create flash. How do I go about this? I haven't found an ane for this.
I have tested it and success with Arduino uno using blink example.Check this out if you interested in.
https://github.com/GIGATeam/UsbExtension
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.
First of all, I want to understand if is possible plug an external micro USB WiFi antenna like this to an android phone and drive it through application to communicate with another android device that have same antenna plugged.
I'm able to detect plugged external antenna in my application using USB Host API of android as specified here and establish an USB connection with it.
In this page there is also a sample that explains how to send commands to an external usb device sending data via connection like "1" "turn left", "2" "turn right".
How can I know what commands (methods/interface/api or data byte stream) I have to send to use device features?
I understand that there is the possibility that I'm saying a lot of stupid things !!! but be patient please!
I also read about this but i cant figure if it is the right way!
I have seen on youtube a Drone driven by an android phone with same antenna plugged through Andropilot application! see video here
There is some guide or tutorial to point me to the right way?
For something like the drone radio you probably saw, you would use the Android Open Accessory protocol to talk to devices over USB. You can prototype and experiment using boards like the Android ADK or the IOIO. Here's a page comparing those boards that has more information: http://forum.xda-developers.com/showthread.php?t=1371750
And here's a simple tutorial showing how to use the ADK to control LEDs via USB: http://www.instructables.com/id/Arduino-ADK-LED-Lighting/
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!